From faea723de03a031599b6002fec61a8b97eb86a34 Mon Sep 17 00:00:00 2001 From: KAcper Perschke Date: Wed, 13 Nov 2024 19:55:54 +0100 Subject: [PATCH] Minor cosmetics. --- collector/openMetrics.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/collector/openMetrics.go b/collector/openMetrics.go index c8b8f6d..322936e 100644 --- a/collector/openMetrics.go +++ b/collector/openMetrics.go @@ -17,13 +17,11 @@ func (e *Exporter) exportOpenMetrics(ch chan<- prometheus.Metric) error { return err } + openMetricsString := openMetrics.PromMetrics e.logger.Debug( "OpenMetrics from Artifactory util", - "body", openMetrics.PromMetrics, + "body", openMetricsString, ) - - openMetricsString := openMetrics.PromMetrics - parser := expfmt.TextParser{} metrics, err := parser.TextToMetricFamilies(strings.NewReader(openMetricsString)) if err != nil {