Skip to content

Commit

Permalink
update registry
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Ye <[email protected]>
  • Loading branch information
yeya24 committed Dec 28, 2023
1 parent 900e96e commit 67bcda5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/ruler/notifier.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"context"
"flag"
"fmt"
"github.com/prometheus/client_golang/prometheus"
"net/url"
"regexp"
"strings"
Expand Down Expand Up @@ -43,12 +44,12 @@ type rulerNotifier struct {
logger gklog.Logger
}

func newRulerNotifier(o *notifier.Options, l gklog.Logger) *rulerNotifier {
func newRulerNotifier(o *notifier.Options, l gklog.Logger, registerer prometheus.Registerer) *rulerNotifier {
sdCtx, sdCancel := context.WithCancel(context.Background())
return &rulerNotifier{
notifier: notifier.NewManager(o, l),
sdCancel: sdCancel,
sdManager: discovery.NewManager(sdCtx, l, nil),
sdManager: discovery.NewManager(sdCtx, l, registerer),
logger: l,
}
}
Expand Down

0 comments on commit 67bcda5

Please sign in to comment.