We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8a96e8 commit 173be7cCopy full SHA for 173be7c
cmd/xpumanager_sidecar/main.go
@@ -37,6 +37,7 @@ import (
37
38
io_prometheus_client "github.com/prometheus/client_model/go"
39
"github.com/prometheus/common/expfmt"
40
+ "github.com/prometheus/common/model"
41
)
42
43
type invalidEntryErr struct{}
@@ -183,7 +184,7 @@ func processMetricsLabels(labels []*io_prometheus_client.LabelPair, allowNonSubd
183
184
func (xms *xpuManagerSidecar) GetTopologyFromXPUMMetrics(data []byte) (topologyInfos []xpuManagerTopologyMatrixCell) {
185
reader := bytes.NewReader(data)
186
- var parser expfmt.TextParser
187
+ parser := expfmt.NewTextParser(model.LegacyValidation)
188
families, err := parser.TextToMetricFamilies(reader)
189
190
if err != nil {
0 commit comments