mirror of
https://github.com/SigNoz/signoz.git
synced 2025-12-17 15:36:48 +00:00
fix(community): fix injection of alertmanager (#8612)
This commit is contained in:
parent
43706f877a
commit
65018abc4a
@ -86,6 +86,7 @@ func NewServer(config signoz.Config, signoz *signoz.SigNoz, jwt *authtypes.JWT)
|
||||
rm, err := makeRulesManager(
|
||||
reader,
|
||||
signoz.Cache,
|
||||
signoz.Alertmanager,
|
||||
signoz.SQLStore,
|
||||
signoz.TelemetryStore,
|
||||
signoz.Prometheus,
|
||||
@ -164,7 +165,7 @@ func NewServer(config signoz.Config, signoz *signoz.SigNoz, jwt *authtypes.JWT)
|
||||
agentConfMgr,
|
||||
signoz.Instrumentation,
|
||||
)
|
||||
|
||||
|
||||
return s, nil
|
||||
}
|
||||
|
||||
@ -377,6 +378,7 @@ func (s *Server) Stop(ctx context.Context) error {
|
||||
func makeRulesManager(
|
||||
ch interfaces.Reader,
|
||||
cache cache.Cache,
|
||||
alertmanager alertmanager.Alertmanager,
|
||||
sqlstore sqlstore.SQLStore,
|
||||
telemetryStore telemetrystore.TelemetryStore,
|
||||
prometheus prometheus.Prometheus,
|
||||
@ -393,6 +395,7 @@ func makeRulesManager(
|
||||
EvalDelay: constants.GetEvalDelay(),
|
||||
SQLStore: sqlstore,
|
||||
OrgGetter: orgGetter,
|
||||
Alertmanager: alertmanager,
|
||||
}
|
||||
|
||||
// create Manager
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user