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)
|
stdlog.Println("Version:", aboutInfo.FullName)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
var perfmanager mo.PerformanceManager
|
var perfmanager mo.PerformanceManager
|
||||||
err := client.RetrieveOne(ctx, *client.ServiceContent.PerfManager, nil, &perfmanager)
|
err := client.RetrieveOne(ctx, *client.ServiceContent.PerfManager, nil, &perfmanager)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -493,7 +492,8 @@ func (vcenter *VCenter) Query(config Configuration, InfluxDBClient influxclient.
|
|||||||
vmExtraMetrics[vm.Self] = make(map[string]int64)
|
vmExtraMetrics[vm.Self] = make(map[string]int64)
|
||||||
vmExtraMetrics[vm.Self]["uptime"] = int64(vm.Summary.QuickStats.UptimeSeconds)
|
vmExtraMetrics[vm.Self]["uptime"] = int64(vm.Summary.QuickStats.UptimeSeconds)
|
||||||
}
|
}
|
||||||
|
fmt.Println("vDiskDatastore:")
|
||||||
|
spew.Dump(vDiskToDatastore)
|
||||||
// get object names
|
// get object names
|
||||||
objects := []mo.ManagedEntity{}
|
objects := []mo.ManagedEntity{}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user