Use shorted hostname for hostname added by router

This commit is contained in:
Thomas Roehl 2024-12-19 20:38:20 +01:00
parent 83d5ad72fd
commit c6741ba209

View File

@ -162,7 +162,7 @@ func (r *metricRouter) Init(ticker mct.MultiChanTicker, wg *sync.WaitGroup, rout
}
r.mp.SetNormalizeUnits(r.config.NormalizeUnits)
r.mp.AddAddTagsByCondition("true", r.config.HostnameTagName, hostname)
r.mp.AddAddTagsByCondition("true", r.config.HostnameTagName, r.hostname)
// r.config.dropMetrics = make(map[string]bool)
// for _, mname := range r.config.DropMetrics {