Skip to content

Commit 3728911

Browse files
authored
Merge pull request #61754 from bburt-rh/OBSDOCS-185-adjustments-to-sample-code-for-repeat-interval-settings
OBSDOCS-185: changes-to-sample-code-for-repeat-interval-settings
2 parents d4cc286 + aff365b commit 3728911

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

modules/monitoring-applying-custom-alertmanager-configuration.adoc

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ route:
3737
routes:
3838
- matchers:
3939
- "alertname=Watchdog"
40-
repeat_interval: 5m
40+
repeat_interval: 2m
4141
receiver: watchdog
4242
- matchers:
4343
- "service=<your_service>" <4>
@@ -53,11 +53,8 @@ receivers:
5353
----
5454
<1> The `group_wait` value specifies how long Alertmanager waits before sending an initial notification for a group of alerts.
5555
This value controls how long Alertmanager waits while collecting initial alerts for the same group before sending a notification.
56-
The default value is 30 seconds (`30s`).
5756
<2> The `group_interval` value specifies how much time must elapse before Alertmanager sends a notification about new alerts added to a group of alerts for which an initial notification was already sent.
58-
The default is five minutes (`5m`).
5957
<3> The `repeat_interval` value specifies the minimum amount of time that must pass before an alert notification is repeated.
60-
The default is four hours (`4h`).
6158
If you want a notification to repeat at each group interval, set the `repeat_interval` value to less than the `group_interval` value.
6259
However, the repeated notification can still be delayed, for example, when certain Alertmanager pods are restarted or rescheduled.
6360
<4> The `service` value specifies the service that fires the alerts.
@@ -75,7 +72,7 @@ Do not use the `target_match`, `target_match_re`, `source_match`, or `source_mat
7572
+
7673
The following Alertmanager configuration example configures PagerDuty as an alert receiver:
7774
+
78-
[source,yaml,subs=quotes]
75+
[source,yaml]
7976
----
8077
global:
8178
resolve_timeout: 5m
@@ -87,9 +84,9 @@ route:
8784
routes:
8885
- matchers:
8986
- "alertname=Watchdog"
90-
repeat_interval: 5m
87+
repeat_interval: 2m
9188
receiver: watchdog
92-
*- matchers:
89+
- matchers:
9390
- "service=example-app"
9491
routes:
9592
- matchers:
@@ -98,9 +95,9 @@ route:
9895
receivers:
9996
- name: default
10097
- name: watchdog
101-
*- name: team-frontend-page
98+
- name: team-frontend-page
10299
pagerduty_configs:
103-
- service_key: "_your-key_"*
100+
- service_key: "_your-key_"
104101
----
105102
+
106103
With this configuration, alerts of `critical` severity that are fired by the `example-app` service are sent using the `team-frontend-page` receiver. Typically these types of alerts would be paged to an individual or a critical response team.

0 commit comments

Comments
 (0)