From 964678860fb5ecfb83867409bd0fcdae3062814f Mon Sep 17 00:00:00 2001 From: Mitya Eremeev Date: Mon, 22 Jan 2024 19:25:51 +0300 Subject: [PATCH] Failure to get system information is not critical https://github.com/greenpau/ovs_exporter/issues/7 --- pkg/ovs_exporter/ovs_exporter.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkg/ovs_exporter/ovs_exporter.go b/pkg/ovs_exporter/ovs_exporter.go index 87dc580..4c77dd7 100644 --- a/pkg/ovs_exporter/ovs_exporter.go +++ b/pkg/ovs_exporter/ovs_exporter.go @@ -386,7 +386,12 @@ func (e *Exporter) Connect() error { ) if err := e.Client.GetSystemInfo(); err != nil { - return err + level.Error(e.logger).Log( + "msg", "Error occured during GetSystemInfo()", + "error", err.Error(), + "system_id", e.Client.System.ID, + ) + return nil } level.Debug(e.logger).Log(