From aff09c28dc43f11eb119593cafe7894736d8918b Mon Sep 17 00:00:00 2001 From: chengzw Date: Fri, 10 Nov 2023 20:50:33 +0800 Subject: [PATCH] fix label mismatch for alertmanager_notifications_failed_total Signed-off-by: chengzw --- doc/alertmanager-mixin/alerts.libsonnet | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/alertmanager-mixin/alerts.libsonnet b/doc/alertmanager-mixin/alerts.libsonnet index 720e411a..6032d7b4 100644 --- a/doc/alertmanager-mixin/alerts.libsonnet +++ b/doc/alertmanager-mixin/alerts.libsonnet @@ -44,7 +44,7 @@ ( rate(alertmanager_notifications_failed_total{%(alertmanagerSelector)s}[5m]) / - rate(alertmanager_notifications_total{%(alertmanagerSelector)s}[5m]) + ignoring (reason) group_left rate(alertmanager_notifications_total{%(alertmanagerSelector)s}[5m]) ) > 0.01 ||| % $._config, @@ -63,7 +63,7 @@ min by (%(alertmanagerClusterLabels)s, integration) ( rate(alertmanager_notifications_failed_total{%(alertmanagerSelector)s, integration=~`%(alertmanagerCriticalIntegrationsRegEx)s`}[5m]) / - rate(alertmanager_notifications_total{%(alertmanagerSelector)s, integration=~`%(alertmanagerCriticalIntegrationsRegEx)s`}[5m]) + ignoring (reason) group_left rate(alertmanager_notifications_total{%(alertmanagerSelector)s, integration=~`%(alertmanagerCriticalIntegrationsRegEx)s`}[5m]) ) > 0.01 ||| % $._config, @@ -82,7 +82,7 @@ min by (%(alertmanagerClusterLabels)s, integration) ( rate(alertmanager_notifications_failed_total{%(alertmanagerSelector)s, integration!~`%(alertmanagerCriticalIntegrationsRegEx)s`}[5m]) / - rate(alertmanager_notifications_total{%(alertmanagerSelector)s, integration!~`%(alertmanagerCriticalIntegrationsRegEx)s`}[5m]) + ignoring (reason) group_left rate(alertmanager_notifications_total{%(alertmanagerSelector)s, integration!~`%(alertmanagerCriticalIntegrationsRegEx)s`}[5m]) ) > 0.01 ||| % $._config,