1
0
mirror of https://github.com/Oxalide/vsphere-influxdb-go.git synced 2023-10-10 13:36:51 +02:00

Merge pull request #33 from adejoux/master

adding host to datastore tags
This commit is contained in:
Adrian Todorov 2017-09-11 21:12:16 +02:00 committed by GitHub
commit 704f4d20d1

View File

@ -657,7 +657,7 @@ func (vcenter *VCenter) Query(config Configuration, InfluxDBClient influxclient.
"capacity": datastore.Summary.Capacity,
"free_space": datastore.Summary.FreeSpace,
}
datastoreTags := map[string]string{"ds_name": datastore.Summary.Name}
datastoreTags := map[string]string{"ds_name": datastore.Summary.Name, "host": vcName}
pt4, err := influxclient.NewPoint("datastore", datastoreTags, datastoreFields, time.Now())
if err != nil {
errlog.Println(err)