Skip to content

Commit eb74eb5

Browse files
committed
move the metric inc
Signed-off-by: Yijie Qin <[email protected]>
1 parent d5a9fb4 commit eb74eb5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

notify/notify.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -674,8 +674,8 @@ func (r RetryStage) Exec(ctx context.Context, l log.Logger, alerts ...*types.Ale
674674
statusCodeCategory = result
675675
}
676676
}
677+
r.metrics.numTotalFailedNotifications.WithLabelValues(r.integration.Name(), statusCodeCategory).Inc()
677678
}
678-
r.metrics.numTotalFailedNotifications.WithLabelValues(r.integration.Name(), statusCodeCategory).Inc()
679679
return ctx, alerts, err
680680
}
681681

0 commit comments

Comments
 (0)