Skip to content

Commit

Permalink
fix cleaning labels
Browse files Browse the repository at this point in the history
  • Loading branch information
ArthurHlt committed Feb 3, 2021
1 parent dc39084 commit 4ae232b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fetchers/metricsfetcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ func (f MetricsFetcher) cleanMetricLabels(labels []*dto.LabelPair, names ...stri
finalLabels = append(finalLabels, label)
}
}
return labels
return finalLabels
}

func (f MetricsFetcher) scrapeError(route models.Route, err error) map[string]*dto.MetricFamily {
Expand Down

0 comments on commit 4ae232b

Please sign in to comment.