From 8fef4d7a8a53ab2ec1322c392a180b44130244bc Mon Sep 17 00:00:00 2001 From: "Grot (@grafanabot)" <43478413+grafanabot@users.noreply.github.com> Date: Fri, 28 May 2021 12:54:30 -0400 Subject: [PATCH] alerting: fixes per-receiver metric cardinality (#34915) (#34924) (cherry picked from commit cc38613ba4c7ef49e52f4206b4284ac94e320315) Co-authored-by: Owen Diehl --- 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