Skip to content

Commit

Permalink
Minor cosmetics.
Browse files Browse the repository at this point in the history
  • Loading branch information
KacperPerschke committed Nov 13, 2024
1 parent f365027 commit faea723
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions collector/openMetrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit faea723

Please sign in to comment.