Skip to content

Commit

Permalink
Rename rules
Browse files Browse the repository at this point in the history
  • Loading branch information
Marie Roque committed Dec 19, 2023
1 parent 2fe2fa6 commit 09fa7c6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand All @@ -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/
Expand Down
20 changes: 10 additions & 10 deletions test/tests/providers/global/alertmanager.rules.test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand All @@ -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:
Expand All @@ -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

0 comments on commit 09fa7c6

Please sign in to comment.