From eb74eb5a3d2ff99359f96771f30c06b44d83e363 Mon Sep 17 00:00:00 2001 From: Yijie Qin Date: Wed, 12 Oct 2022 15:34:39 -0400 Subject: [PATCH] move the metric inc Signed-off-by: Yijie Qin --- notify/notify.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notify/notify.go b/notify/notify.go index ae7542687e..2fe4f12f96 100644 --- a/notify/notify.go +++ b/notify/notify.go @@ -674,8 +674,8 @@ func (r RetryStage) Exec(ctx context.Context, l log.Logger, alerts ...*types.Ale statusCodeCategory = result } } + r.metrics.numTotalFailedNotifications.WithLabelValues(r.integration.Name(), statusCodeCategory).Inc() } - r.metrics.numTotalFailedNotifications.WithLabelValues(r.integration.Name(), statusCodeCategory).Inc() return ctx, alerts, err }