We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3f8a36f + a321789 commit 57703faCopy full SHA for 57703fa
1 file changed
vsphere-influxdb.go
@@ -719,6 +719,7 @@ func (vcenter *VCenter) Query(config Configuration, InfluxDBClient influxclient.
719
datastoreFields := map[string]interface{}{
720
"capacity": datastore.Summary.Capacity,
721
"free_space": datastore.Summary.FreeSpace,
722
+ "usage": 1.0 - (float64(datastore.Summary.FreeSpace)/float64(datastore.Summary.Capacity)),
723
}
724
datastoreTags := map[string]string{"ds_name": datastore.Summary.Name, "host": vcName}
725
pt4, err := influxclient.NewPoint(config.InfluxDB.Prefix+"datastore", datastoreTags, datastoreFields, time.Now())
0 commit comments