Skip to content

Commit

Permalink
Remove domain from esx name
Browse files Browse the repository at this point in the history
 Domain in esx name can be a problem with influxgraph and grafana.
  • Loading branch information
MicKBfr committed Apr 6, 2018
1 parent 3f8a36f commit 39330e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vsphere-influxdb.go
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ func (vcenter *VCenter) Query(config Configuration, InfluxDBClient influxclient.

// Extra tags per host
hostSummary[host.Self] = make(map[string]string)
hostSummary[host.Self]["name"] = host.Summary.Config.Name
hostSummary[host.Self]["name"] = strings.Replace(host.Summary.Config.Name, config.Domain, "", -1)
hostSummary[host.Self]["cluster"] = hostToCluster[host.Self]

// Extra metrics per host
Expand Down

0 comments on commit 39330e4

Please sign in to comment.