Browse Source

Remove domain from esx name

Domain in esx name can be a problem with influxgraph and grafana.
pull/72/head
MicKBfr 4 years ago
committed by GitHub
parent
commit
39330e4d31
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      vsphere-influxdb.go

2
vsphere-influxdb.go

@ -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

Loading…
Cancel
Save