mirror of
https://github.com/prometheus/node_exporter.git
synced 2025-01-20 15:29:00 +01:00
ethtool-linux: fix entry function
Signed-off-by: t-falconnet <tfalconnet.externe@bedrockstreaming.com>
This commit is contained in:
parent
db87173be0
commit
5c8407b772
@ -446,7 +446,7 @@ func (c *ethtoolCollector) entryWithCreate(key, metricFQName string) *prometheus
|
||||
return c.entries[key]
|
||||
}
|
||||
|
||||
func (c *ethtoolCollector) entry(key) *prometheus.Desc {
|
||||
func (c *ethtoolCollector) entry(key string) *prometheus.Desc {
|
||||
c.entriesMutex.Lock()
|
||||
defer c.entriesMutex.Unlock()
|
||||
return c.entries[key]
|
||||
|
Loading…
Reference in New Issue
Block a user