From 1186bacef45d36dd8d6ffd03c1ca327a74226b0c Mon Sep 17 00:00:00 2001 From: Andrii Shestakov Date: Thu, 2 Mar 2023 22:56:18 +0300 Subject: [PATCH] Decrease log level for unsupported statistics keys Interfaces may have a lot of statistics keys which are unexpected by this exporter. It does not break operation, but causes annoying spam of Error messages in the log. Let's set it to Debug. --- pkg/ovs_exporter/ovs_exporter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/ovs_exporter/ovs_exporter.go b/pkg/ovs_exporter/ovs_exporter.go index 9c31fdb..abde69d 100644 --- a/pkg/ovs_exporter/ovs_exporter.go +++ b/pkg/ovs_exporter/ovs_exporter.go @@ -1120,7 +1120,7 @@ func (e *Exporter) GatherMetrics() { intf.UUID, )) default: - level.Error(e.logger).Log( + level.Debug(e.logger).Log( "msg", "detected malformed interface statistics", "system_id", e.Client.System.ID, "key", key,