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-configuring-notifications-for-default-platform-alerts.adoc
+27-19Lines changed: 27 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -42,37 +42,40 @@ $ oc -n openshift-monitoring get secret alertmanager-main --template='{{ index .
42
42
----
43
43
global:
44
44
resolve_timeout: 5m
45
+
http_config:
46
+
proxy_from_environment: true # <1>
45
47
route:
46
-
group_wait: 30s #<1>
47
-
group_interval: 5m #<2>
48
-
repeat_interval: 12h #<3>
48
+
group_wait: 30s # <2>
49
+
group_interval: 5m # <3>
50
+
repeat_interval: 12h # <4>
49
51
receiver: default
50
52
routes:
51
53
- matchers:
52
54
- "alertname=Watchdog"
53
55
repeat_interval: 2m
54
56
receiver: watchdog
55
57
- matchers:
56
-
- "service=<your_service>" #<4>
58
+
- "service=<your_service>" # <5>
57
59
routes:
58
60
- matchers:
59
-
- <your_matching_rules> #<5>
60
-
receiver: <receiver> #<6>
61
+
- <your_matching_rules> # <6>
62
+
receiver: <receiver> # <7>
61
63
receivers:
62
64
- name: default
63
65
- name: watchdog
64
66
- name: <receiver>
65
-
<receiver_configuration> #<7>
67
+
<receiver_configuration> # <8>
66
68
----
67
-
<1> Specify how long Alertmanager waits while collecting initial alerts for a group of alerts before sending a notification.
68
-
<2> Specify 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.
69
-
<3> Specify the minimum amount of time that must pass before an alert notification is repeated.
69
+
<1> If you configured an HTTP cluster-wide proxy, set the `proxy_from_environment` parameter to `true` to enable proxying for all alert receivers.
70
+
<2> Specify how long Alertmanager waits while collecting initial alerts for a group of alerts before sending a notification.
71
+
<3> Specify 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.
72
+
<4> Specify the minimum amount of time that must pass before an alert notification is repeated.
70
73
If you want a notification to repeat at each group interval, set the `repeat_interval` value to less than the `group_interval` value.
71
74
The repeated notification can still be delayed, for example, when certain Alertmanager pods are restarted or rescheduled.
72
-
<4> Specify the name of the service that fires the alerts.
73
-
<5> Specify labels to match your alerts.
74
-
<6> Specify the name of the receiver to use for the alerts.
75
-
<7> Specify the receiver configuration.
75
+
<5> Specify the name of the service that fires the alerts.
76
+
<6> Specify labels to match your alerts.
77
+
<7> Specify the name of the receiver to use for the alerts.
78
+
<8> Specify the receiver configuration.
76
79
+
77
80
[IMPORTANT]
78
81
====
@@ -89,12 +92,13 @@ Do not use the `match` or `match_re` key names, which are both deprecated and pl
89
92
Do not use the `target_match`, `target_match_re`, `source_match`, or `source_match_re` key names, which are deprecated and planned for removal in a future release.
90
93
====
91
94
+
92
-
The following Alertmanager configuration example configures PagerDuty as an alert receiver:
93
-
+
95
+
.Example of Alertmanager configuration with PagerDuty as an alert receiver
94
96
[source,yaml]
95
97
----
96
98
global:
97
99
resolve_timeout: 5m
100
+
http_config:
101
+
proxy_from_environment: true
98
102
route:
99
103
group_wait: 30s
100
104
group_interval: 5m
@@ -105,7 +109,7 @@ route:
105
109
- "alertname=Watchdog"
106
110
repeat_interval: 2m
107
111
receiver: watchdog
108
-
- matchers:
112
+
- matchers: # <1>
109
113
- "service=example-app"
110
114
routes:
111
115
- matchers:
@@ -117,9 +121,13 @@ receivers:
117
121
- name: team-frontend-page
118
122
pagerduty_configs:
119
123
- service_key: "<your_key>"
124
+
http_config: # <2>
125
+
proxy_from_environment: true
126
+
authorization:
127
+
credentials: xxxxxxxxxx
120
128
----
121
-
+
122
-
With this configuration, alerts of `critical` severity that are fired by the `example-app` service are sent through the `team-frontend-page` receiver. Typically, these types of alerts would be paged to an individual or a critical response team.
129
+
<1> Alerts of `critical` severity that are fired by the `example-app` service are sent through the `team-frontend-page` receiver. Typically, these types of alerts would be paged to an individual or a critical response team.
130
+
<2> Custom HTTP configuration for a specific receiver. If you configure the custom HTTP configuration for a specific alert receiver, that receiver does not inherit the global HTTP config settings.
0 commit comments