Do not register compat metrics in amtool (#3713)

There is no need to register these metrics in amtool, so use
compat.NewMetrics(nil) instead of compat.RegisteredMetrics.

Signed-off-by: George Robinson <george.robinson@grafana.com>
This commit is contained in:
George Robinson 2024-02-07 09:43:03 +00:00 committed by GitHub
parent e1f6a0e7ae
commit 6d02051f2b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ func initMatchersCompat(_ *kingpin.ParseContext) error {
if err != nil { if err != nil {
kingpin.Fatalf("error parsing the feature flag list: %v\n", err) kingpin.Fatalf("error parsing the feature flag list: %v\n", err)
} }
compat.InitFromFlags(logger, compat.RegisteredMetrics, featureConfig) compat.InitFromFlags(logger, compat.NewMetrics(nil), featureConfig)
return nil return nil
} }