Skip to content

Commit

Permalink
adding host to datastore tags
Browse files Browse the repository at this point in the history
  • Loading branch information
Alain Dejoux committed Sep 11, 2017
1 parent 33dc047 commit bf8af7c
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 bf8af7c

Please sign in to comment.