Skip to content

Commit

Permalink
Do not register compat metrics in mimirtool (grafana#7314)
Browse files Browse the repository at this point in the history
This commit does the same as we did for amtool in
prometheus/alertmanager#3713. There is no need to register these
metrics, so we use compat.NewMetrics(nil) instead of
compat.RegisteredMetrics.
  • Loading branch information
grobinson-grafana authored and beatkind committed Feb 13, 2024
1 parent 185c2fe commit 1627df3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/mimirtool/commands/alerts.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ func (a *AlertmanagerCommand) setup(_ *kingpin.ParseContext) error {
if err != nil {
return err
}
compat.InitFromFlags(l, compat.RegisteredMetrics, flags)
compat.InitFromFlags(l, compat.NewMetrics(nil), flags)

cli, err := client.New(a.ClientConfig)
if err != nil {
Expand Down

0 comments on commit 1627df3

Please sign in to comment.