You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/monitoring-applying-custom-alertmanager-configuration.adoc
+18-9Lines changed: 18 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,30 +30,39 @@ $ oc -n openshift-monitoring get secret alertmanager-main --template='{{ index .
30
30
global:
31
31
resolve_timeout: 5m
32
32
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>
36
36
receiver: default
37
37
routes:
38
38
- matchers:
39
39
- "alertname=Watchdog"
40
40
repeat_interval: 5m
41
41
receiver: watchdog
42
42
- matchers:
43
-
- "service=<your_service>" <1>
43
+
- "service=<your_service>" <4>
44
44
routes:
45
45
- matchers:
46
-
- <your_matching_rules> <2>
47
-
receiver: <receiver> <3>
46
+
- <your_matching_rules> <5>
47
+
receiver: <receiver> <6>
48
48
receivers:
49
49
- name: default
50
50
- name: watchdog
51
51
- name: <receiver>
52
52
# <receiver_configuration>
53
53
----
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.
0 commit comments