mirror of
https://github.com/prometheus/node_exporter.git
synced 2024-11-23 12:30:46 +01:00
udp_queues_linux.go: s/upd/udp/ in two error strings
Signed-off-by: Karsten Weiss <knweiss@gmail.com>
This commit is contained in:
parent
8d436bedf5
commit
b9b1d4e369
@ -65,7 +65,7 @@ func (c *udpQueuesCollector) Update(ch chan<- prometheus.Metric) error {
|
||||
if errors.Is(errIPv4, os.ErrNotExist) {
|
||||
level.Debug(c.logger).Log("msg", "not collecting ipv4 based metrics")
|
||||
} else {
|
||||
return fmt.Errorf("couldn't get upd queued bytes: %w", errIPv4)
|
||||
return fmt.Errorf("couldn't get udp queued bytes: %w", errIPv4)
|
||||
}
|
||||
}
|
||||
|
||||
@ -77,7 +77,7 @@ func (c *udpQueuesCollector) Update(ch chan<- prometheus.Metric) error {
|
||||
if errors.Is(errIPv6, os.ErrNotExist) {
|
||||
level.Debug(c.logger).Log("msg", "not collecting ipv6 based metrics")
|
||||
} else {
|
||||
return fmt.Errorf("couldn't get upd6 queued bytes: %w", errIPv6)
|
||||
return fmt.Errorf("couldn't get udp6 queued bytes: %w", errIPv6)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user