From cc38613ba4c7ef49e52f4206b4284ac94e320315 Mon Sep 17 00:00:00 2001 From: Owen Diehl Date: Fri, 28 May 2021 12:31:23 -0400 Subject: [PATCH] alerting: fixes per-receiver metric cardinality (#34915) --- pkg/services/ngalert/notifier/alertmanager.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/services/ngalert/notifier/alertmanager.go b/pkg/services/ngalert/notifier/alertmanager.go index faf5a8e6be4..03b9280b62a 100644 --- a/pkg/services/ngalert/notifier/alertmanager.go +++ b/pkg/services/ngalert/notifier/alertmanager.go @@ -448,7 +448,7 @@ func (am *Alertmanager) buildReceiverIntegrations(receiver *apimodels.PostableAp if err != nil { return nil, err } - integrations = append(integrations, notify.NewIntegration(n, n, r.Name, i)) + integrations = append(integrations, notify.NewIntegration(n, n, r.Type, i)) } return integrations, nil