From b9b1d4e369ad3b451d9e3048390f7af1e5f0f38d Mon Sep 17 00:00:00 2001 From: Karsten Weiss Date: Mon, 29 Jun 2020 14:58:08 +0200 Subject: [PATCH] udp_queues_linux.go: s/upd/udp/ in two error strings Signed-off-by: Karsten Weiss --- collector/udp_queues_linux.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/collector/udp_queues_linux.go b/collector/udp_queues_linux.go index e1b347ed..5e185f15 100644 --- a/collector/udp_queues_linux.go +++ b/collector/udp_queues_linux.go @@ -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) } }