Skip to content

Commit 39330e4

Browse files
authored
Remove domain from esx name
Domain in esx name can be a problem with influxgraph and grafana.
1 parent 3f8a36f commit 39330e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vsphere-influxdb.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ func (vcenter *VCenter) Query(config Configuration, InfluxDBClient influxclient.
443443

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

449449
// Extra metrics per host

0 commit comments

Comments
 (0)