mirror of
https://github.com/Oxalide/vsphere-influxdb-go.git
synced 2023-10-10 13:36:51 +02:00
virtual disk to datastore mapping
This commit is contained in:
parent
d04a66083b
commit
3f8a36f0cf
@ -156,7 +156,6 @@ func (vcenter *VCenter) Init(config Configuration) error {
|
||||
stdlog.Println("Version:", aboutInfo.FullName)
|
||||
}
|
||||
|
||||
|
||||
var perfmanager mo.PerformanceManager
|
||||
err := client.RetrieveOne(ctx, *client.ServiceContent.PerfManager, nil, &perfmanager)
|
||||
if err != nil {
|
||||
@ -192,7 +191,7 @@ func (vcenter *VCenter) Init(config Configuration) error {
|
||||
metricgroup := MetricGroup{ObjectType: mtype, Metrics: []MetricDef{metricd}}
|
||||
vcenter.MetricGroups = append(vcenter.MetricGroups, &metricgroup)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -493,7 +492,8 @@ func (vcenter *VCenter) Query(config Configuration, InfluxDBClient influxclient.
|
||||
vmExtraMetrics[vm.Self] = make(map[string]int64)
|
||||
vmExtraMetrics[vm.Self]["uptime"] = int64(vm.Summary.QuickStats.UptimeSeconds)
|
||||
}
|
||||
|
||||
fmt.Println("vDiskDatastore:")
|
||||
spew.Dump(vDiskToDatastore)
|
||||
// get object names
|
||||
objects := []mo.ManagedEntity{}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user