We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f126fd5 + 6dc1943 commit 6d87134Copy full SHA for 6d87134
test/conformance/tests/test_exporter_metrics.go
@@ -198,7 +198,7 @@ func getMetricsForNode(nodeName string) map[string]*dto.MetricFamily {
198
// Clean the scraped output from carriage returns
199
stdout = strings.ReplaceAll(stdout, "\r", "")
200
201
- var parser expfmt.TextParser
+ parser := expfmt.NewTextParser(model.UTF8Validation)
202
mf, err := parser.TextToMetricFamilies(strings.NewReader(stdout))
203
Expect(err).ToNot(HaveOccurred())
204
0 commit comments