Merge pull request #1769 from knweiss/typos

udp_queues_linux.go: s/upd/udp/ in two error strings
This commit is contained in:
Ben Kochie 2020-06-29 16:39:30 +02:00 committed by GitHub
commit 7ad86f7994
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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