Skip to content

Commit

Permalink
Merge pull request #33 from adejoux/master
Browse files Browse the repository at this point in the history
adding host to datastore tags
  • Loading branch information
sofixa committed Sep 11, 2017
2 parents 33dc047 + bf8af7c commit 704f4d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vsphere-influxdb.go
Expand Up @@ -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)
Expand Down

0 comments on commit 704f4d2

Please sign in to comment.