Skip to content

SigNoz is an open-source, OpenTelemetry-native observability platform for your team and their AI agents. Get logs, metrics, and traces in one tool with features like APM, distributed tracing, log management, infra monitoring, etc. Combined with SigNoz MCP and a native AI teammate (in SigNoz Cloud) it helps you build more resilient apps.

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

Vibhu Pandey65018abc4abf
diff --git a/pkg/query-service/app/server.go b/pkg/query-service/app/server.go
index 0afe28c0c7..cf6a6149f1 100644
--- a/pkg/query-service/app/server.go
+++ b/pkg/query-service/app/server.go
@@ -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