From 20b4428c07dbefd8b08968d662fd12c5a54bd2b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tadas=20Ustinavi=C4=8Dius?= Date: Wed, 11 Oct 2023 11:01:34 +0300 Subject: [PATCH] graphql-exporter: skip only failed metrics --- pkg/prometheus/prometheus.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/prometheus/prometheus.go b/pkg/prometheus/prometheus.go index 5b32221..912a752 100644 --- a/pkg/prometheus/prometheus.go +++ b/pkg/prometheus/prometheus.go @@ -121,7 +121,7 @@ func getMetrics() ([]Metric, error) { metric.Labels, error_in_hash = buildLabelData(val, m) if error_in_hash != nil { log.Printf("Got error: %s", error_in_hash) - break + continue } metric.Name = metric_prepend + strings.Replace(m.Value, ",", "_", -1) metrics = append(metrics, metric)