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
+6-9Lines changed: 6 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,7 +37,7 @@ route:
37
37
routes:
38
38
- matchers:
39
39
- "alertname=Watchdog"
40
-
repeat_interval: 5m
40
+
repeat_interval: 2m
41
41
receiver: watchdog
42
42
- matchers:
43
43
- "service=<your_service>" <4>
@@ -53,11 +53,8 @@ receivers:
53
53
----
54
54
<1> The `group_wait` value specifies how long Alertmanager waits before sending an initial notification for a group of alerts.
55
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
56
<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
57
<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
58
If you want a notification to repeat at each group interval, set the `repeat_interval` value to less than the `group_interval` value.
62
59
However, the repeated notification can still be delayed, for example, when certain Alertmanager pods are restarted or rescheduled.
63
60
<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
75
72
+
76
73
The following Alertmanager configuration example configures PagerDuty as an alert receiver:
77
74
+
78
-
[source,yaml,subs=quotes]
75
+
[source,yaml]
79
76
----
80
77
global:
81
78
resolve_timeout: 5m
@@ -87,9 +84,9 @@ route:
87
84
routes:
88
85
- matchers:
89
86
- "alertname=Watchdog"
90
-
repeat_interval: 5m
87
+
repeat_interval: 2m
91
88
receiver: watchdog
92
-
*- matchers:
89
+
- matchers:
93
90
- "service=example-app"
94
91
routes:
95
92
- matchers:
@@ -98,9 +95,9 @@ route:
98
95
receivers:
99
96
- name: default
100
97
- name: watchdog
101
-
*- name: team-frontend-page
98
+
- name: team-frontend-page
102
99
pagerduty_configs:
103
-
- service_key: "_your-key_"*
100
+
- service_key: "_your-key_"
104
101
----
105
102
+
106
103
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