Skip to content

Commit b711907

Browse files
committed
OBSDOCS-185-definition-for-repeat-interval-parameter
1 parent 87db604 commit b711907

File tree

1 file changed

+18
-9
lines changed

1 file changed

+18
-9
lines changed

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

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,30 +30,39 @@ $ oc -n openshift-monitoring get secret alertmanager-main --template='{{ index .
3030
global:
3131
resolve_timeout: 5m
3232
route:
33-
group_wait: 30s
34-
group_interval: 5m
35-
repeat_interval: 12h
33+
group_wait: 30s <1>
34+
group_interval: 5m <2>
35+
repeat_interval: 12h <3>
3636
receiver: default
3737
routes:
3838
- matchers:
3939
- "alertname=Watchdog"
4040
repeat_interval: 5m
4141
receiver: watchdog
4242
- matchers:
43-
- "service=<your_service>" <1>
43+
- "service=<your_service>" <4>
4444
routes:
4545
- matchers:
46-
- <your_matching_rules> <2>
47-
receiver: <receiver> <3>
46+
- <your_matching_rules> <5>
47+
receiver: <receiver> <6>
4848
receivers:
4949
- name: default
5050
- name: watchdog
5151
- name: <receiver>
5252
# <receiver_configuration>
5353
----
54-
<1> `service` specifies the service that fires the alerts.
55-
<2> `<your_matching_rules>` specifies the target alerts.
56-
<3> `receiver` specifies the receiver to use for the alert.
54+
<1> The `group_wait` value specifies how long Alertmanager waits before sending an initial notification for a group of alerts.
55+
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`).
57+
<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`).
59+
<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`).
61+
If you want a notification to repeat at each group interval, set the `repeat_interval` value to less than the `group_interval` value.
62+
However, the repeated notification can still be delayed, for example, when certain Alertmanager pods are restarted or rescheduled.
63+
<4> The `service` value specifies the service that fires the alerts.
64+
<5> The `<your_matching_rules>` value specifies the target alerts.
65+
<6> The `receiver` value specifies the receiver to use for the alert.
5766
+
5867
[NOTE]
5968
====

0 commit comments

Comments
 (0)