Skip to content

Commit b35c3f2

Browse files
committed
fix ParseReaderMetrics()
1 parent c7d608b commit b35c3f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/integration/prometheus/prometheus.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ func GetMetrics(url string) (map[string]*io_prometheus_client.MetricFamily, erro
3939
}
4040

4141
func ParseReaderMetrics(input io.Reader) (map[string]*io_prometheus_client.MetricFamily, error) {
42-
var parser expfmt.TextParser
42+
parser := expfmt.NewTextParser(model.UTF8Validation)
4343
return parser.TextToMetricFamilies(input) //nolint
4444
}
4545

0 commit comments

Comments
 (0)