Skip to content

Commit

Permalink
Do not register compat metrics in mimirtool
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 committed Feb 7, 2024
1 parent 4916393 commit 9789046
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 9789046

Please sign in to comment.