Skip to content

Commit

Permalink
test: fix metrics parse
Browse files Browse the repository at this point in the history
  • Loading branch information
npdgm committed Apr 5, 2024
1 parent fa1192a commit 5d66d25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/exporter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1014,7 +1014,7 @@ func testRequest(t *testing.T, exporter *Exporter, cb func(metrics []model.Metri
var metric model.MetricFamily
metrics := []model.MetricFamily{}

decoder := expfmt.NewDecoder(res.Body, expfmt.FmtText)
decoder := expfmt.NewDecoder(res.Body, expfmt.NewFormat(expfmt.TypeProtoText))
for {
if err := decoder.Decode(&metric); err != nil {
break
Expand Down

0 comments on commit 5d66d25

Please sign in to comment.