forked from ondrejsika/prometheus-training
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path04_alertmanager.yml
44 lines (41 loc) · 890 Bytes
/
04_alertmanager.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
global:
resolve_timeout: 10s
smtp_from: monitoring@example.com
smtp_smarthost: localhost:1025
smtp_require_tls: false
route:
receiver: all-teams
group_by:
- env
- alertname
- app
group_wait: 10s
group_interval: 10s
repeat_interval: 10m
routes:
- receiver: 'frontend-team'
match:
app: frontend
- receiver: 'backend-team'
match:
app: backend
- receiver: 'db-team'
match:
app: db
receivers:
- name: all-teams
email_configs:
- send_resolved: true
to: alert@example.com
- name: frontend-team
email_configs:
- send_resolved: true
to: alert-frontend@example.com
- name: backend-team
email_configs:
- send_resolved: true
to: alert-backend@example.com
- name: db-team
email_configs:
- send_resolved: true
to: alert-db@example.com