From 6ac7a53f45b9d9865f7f13fdb11bf7c3f983efb1 Mon Sep 17 00:00:00 2001 From: Ben Kochie Date: Thu, 15 Jul 2021 13:45:07 +0200 Subject: [PATCH] Fix conntrack collector log noise Fix un-handled file not found for conntrack stats. Signed-off-by: Ben Kochie --- collector/conntrack_linux.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/collector/conntrack_linux.go b/collector/conntrack_linux.go index 38102697..32f46c0e 100644 --- a/collector/conntrack_linux.go +++ b/collector/conntrack_linux.go @@ -129,7 +129,7 @@ func (c *conntrackCollector) Update(ch chan<- prometheus.Metric) error { conntrackStats, err := getConntrackStatistics() if err != nil { - return err + return c.handleErr(err) } ch <- prometheus.MustNewConstMetric(