From eefac3fcdeba744d9bbd2c3f6d28aa9fc3f511b3 Mon Sep 17 00:00:00 2001 From: Owen Williams Date: Fri, 5 Jan 2024 14:47:19 -0500 Subject: [PATCH] require both a feature flag and a globalconfig flag --- cmd/prometheus/main.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cmd/prometheus/main.go b/cmd/prometheus/main.go index c53726bed..6be8cef78 100644 --- a/cmd/prometheus/main.go +++ b/cmd/prometheus/main.go @@ -228,9 +228,8 @@ func (c *flagConfig) setFeatureListOptions(logger log.Logger) error { config.DefaultGlobalConfig.ScrapeProtocols = config.DefaultProtoFirstScrapeProtocols level.Info(logger).Log("msg", "Experimental created timestamp zero ingestion enabled. Changed default scrape_protocols to prefer PrometheusProto format.", "global.scrape_protocols", fmt.Sprintf("%v", config.DefaultGlobalConfig.ScrapeProtocols)) case "utf8-names": - config.DefaultConfig.GlobalConfig.AllowUTF8Names = true - config.DefaultGlobalConfig.AllowUTF8Names = true model.NameValidationScheme = model.UTF8Validation + level.Info(logger).Log("msg", "Experimental utf8 support enabled") case "": continue case "promql-at-modifier", "promql-negative-offset":