forked from ondrejsika/prometheus-training
-
Notifications
You must be signed in to change notification settings - Fork 1
/
03_alertmanager.yml
34 lines (32 loc) · 900 Bytes
/
03_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
global:
resolve_timeout: 10s
# smtp_from: prom-demo@sikamail.eu
# smtp_hello: alertmanager
# smtp_smarthost: mail.sikamail.eu:587
# smtp_auth_username: prom-demo@sikamail.eu
# smtp_auth_password: somesecretpassword
# smtp_auth_identity: prom-demo@sikamail.eu
# smtp_require_tls: true
smtp_from: monitoring@example.com
smtp_smarthost: localhost:1025
smtp_require_tls: false
route:
receiver: mails
group_by:
- env
- alertname
group_wait: 10s
group_interval: 10s
repeat_interval: 10m
receivers:
- name: mails
email_configs:
- send_resolved: true
to: alert-all@example.com
# tls_config:
# insecure_skip_verify: true
headers:
From: monitoring@example.com
Subject: '{{ template "email.default.subject" . }}'
To: alert-all@example.com
html: '{{ template "email.default.html" . }}'