From 5304c508089be400e5b42ffa7148a601631b7aed Mon Sep 17 00:00:00 2001 From: manuelsaks Date: Sun, 22 Dec 2024 12:05:34 +0100 Subject: [PATCH] implement warn instead of err --- metricbeat/module/pgbouncer/lists/lists.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/metricbeat/module/pgbouncer/lists/lists.go b/metricbeat/module/pgbouncer/lists/lists.go index bd2f29ed9335..b10962c012f8 100644 --- a/metricbeat/module/pgbouncer/lists/lists.go +++ b/metricbeat/module/pgbouncer/lists/lists.go @@ -62,7 +62,8 @@ func (m *MetricSet) Fetch(ctx context.Context, reporter mb.ReporterV2) error { for _, s := range results { listValue, ok := s["list"].(string) if !ok { - return fmt.Errorf("expected string type for 'list' but got something else") + m.Logger().Warnf("warning: expected string type for 'list', but got %T", s["list"]) + continue } resultMap[listValue] = s["items"] }