Fix conntrack collector log noise

Fix un-handled file not found for conntrack stats.

Signed-off-by: Ben Kochie <superq@gmail.com>
pull/2079/head
Ben Kochie 3 years ago
parent 6793e0e5a8
commit 6ac7a53f45
No known key found for this signature in database
GPG Key ID: C646B23C9E3245F1

@ -129,7 +129,7 @@ func (c *conntrackCollector) Update(ch chan<- prometheus.Metric) error {
conntrackStats, err := getConntrackStatistics() conntrackStats, err := getConntrackStatistics()
if err != nil { if err != nil {
return err return c.handleErr(err)
} }
ch <- prometheus.MustNewConstMetric( ch <- prometheus.MustNewConstMetric(

Loading…
Cancel
Save