From 09fa7c6a48bd4001fee72ff84a5b050f0417448e Mon Sep 17 00:00:00 2001 From: Marie Roque Date: Tue, 19 Dec 2023 10:27:38 +0100 Subject: [PATCH] Rename rules --- .../alerting-rules/alertmanager.rules.yml | 4 ++-- .../global/alertmanager.rules.test.yml | 20 +++++++++---------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/helm/prometheus-rules/templates/alerting-rules/alertmanager.rules.yml b/helm/prometheus-rules/templates/alerting-rules/alertmanager.rules.yml index e5c1d5e3d..0ed6bab8d 100644 --- a/helm/prometheus-rules/templates/alerting-rules/alertmanager.rules.yml +++ b/helm/prometheus-rules/templates/alerting-rules/alertmanager.rules.yml @@ -11,7 +11,7 @@ spec: groups: - name: alertmanager rules: - - alert: AlertmanagerPageNotificationsFailing + - alert: AlertmanagerNotifyNotificationsFailing annotations: description: '{{`AlertManager {{ $labels.integration }} notifications are failing.`}}' opsrecipe: alert-manager-notifications-failing/ @@ -26,7 +26,7 @@ spec: team: atlas topic: monitoring cancel_if_outside_working_hours: "true" - - alert: AlertmanagerNotifyNotificationsFailing + - alert: AlertmanagerPageNotificationsFailing annotations: description: '{{`AlertManager {{ $labels.integration }} notifications are failing.`}}' opsrecipe: alert-manager-notifications-failing/ diff --git a/test/tests/providers/global/alertmanager.rules.test.yml b/test/tests/providers/global/alertmanager.rules.test.yml index a2e03f3c6..eb11515f0 100644 --- a/test/tests/providers/global/alertmanager.rules.test.yml +++ b/test/tests/providers/global/alertmanager.rules.test.yml @@ -12,13 +12,13 @@ tests: - series: 'alertmanager_notifications_failed_total{integration="webhook"}' values: "0x60 1+0x15 2+0x15 2+0x15 2+0x15 2+0x15 2+0x15 2+0x15 2+0x15 2+0x120" alert_rule_test: - - alertname: AlertmanagerPageNotificationsFailing + - alertname: AlertmanagerNotifyNotificationsFailing eval_time: 10m - - alertname: AlertmanagerPageNotificationsFailing + - alertname: AlertmanagerNotifyNotificationsFailing eval_time: 90m - - alertname: AlertmanagerPageNotificationsFailing + - alertname: AlertmanagerNotifyNotificationsFailing eval_time: 95m - - alertname: AlertmanagerPageNotificationsFailing + - alertname: AlertmanagerNotifyNotificationsFailing eval_time: 106m exp_alerts: - exp_labels: @@ -31,7 +31,7 @@ tests: exp_annotations: description: "AlertManager slack notifications are failing." opsrecipe: alert-manager-notifications-failing/ - - alertname: AlertmanagerPageNotificationsFailing + - alertname: AlertmanagerNotifyNotificationsFailing eval_time: 240m - interval: 1m input_series: @@ -40,11 +40,11 @@ tests: - series: 'alertmanager_notifications_failed_total{integration="opsgenie"}' values: "0x60 1+0x15 2+0x15 2+0x15 2+0x60 3+0x15 3+0x60" alert_rule_test: - - alertname: AlertmanagerNotifyNotificationsFailing + - alertname: AlertmanagerPageNotificationsFailing eval_time: 10m - - alertname: AlertmanagerNotifyNotificationsFailing + - alertname: AlertmanagerPageNotificationsFailing eval_time: 75m - - alertname: AlertmanagerNotifyNotificationsFailing + - alertname: AlertmanagerPageNotificationsFailing eval_time: 91m exp_alerts: - exp_labels: @@ -56,7 +56,7 @@ tests: exp_annotations: description: "AlertManager opsgenie notifications are failing." opsrecipe: alert-manager-notifications-failing/ - - alertname: AlertmanagerNotifyNotificationsFailing + - alertname: AlertmanagerPageNotificationsFailing eval_time: 180m - - alertname: AlertmanagerNotifyNotificationsFailing + - alertname: AlertmanagerPageNotificationsFailing eval_time: 210m