diff --git a/pkg/querier/stats_renderer_test.go b/pkg/querier/stats_renderer_test.go index 1a2c224a81..04a4f8fa72 100644 --- a/pkg/querier/stats_renderer_test.go +++ b/pkg/querier/stats_renderer_test.go @@ -5,6 +5,7 @@ package querier import ( "context" "fmt" + "github.com/prometheus/common/model" "net/http" "net/http/httptest" "testing" @@ -25,6 +26,11 @@ import ( mimir_stats "github.com/grafana/mimir/pkg/querier/stats" ) +// Mimir doesn't support Prometheus' UTF-8 metric/label name scheme yet. +func init() { + model.NameValidationScheme = model.LegacyValidation +} + func TestStatsRenderer(t *testing.T) { testCases := map[string]struct {