fix(community): fix injection of alertmanager (#8612)

This commit is contained in:
Vibhu Pandey 2025-07-25 13:58:56 +05:30 committed by GitHub
parent 43706f877a
commit 65018abc4a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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