-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathalertmanager.yml
42 lines (35 loc) · 1.22 KB
/
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
# AlertManager config file
route:
# To aggregate alerts
group_by: ["alertname"]
# How long to initially wait to send a notification for a group
group_wait: 3s
# How long to wait before sending a notification about new alerts
group_interval: 5s
# How long to wait before sending a notification again if it has already been sent successfully for an alert
repeat_interval: 1h
# Name of the receiver group to notify
receiver: slack-receiver
receivers:
- name: "slack-receiver"
slack_configs:
- api_url: slack api url
channel: "alertmanager"
send_resolved: true
icon_url: https://avatars3.githubusercontent.com/u/3380462
text: >-
{{ range .Alerts -}}
*Alert:* {{ .Annotations.title }}{{ if .Labels.severity }} - `{{ .Labels.severity }}`{{ end }}
*Description:* {{ .Annotations.description }}
*Details:*
{{ range .Labels.SortedPairs }} • *{{ .Name }}:* `{{ .Value }}`
{{ end }}
{{ end }}
- name: "mail-receiver"
# email_configs:
# - to: 'emails of the ones that need to be notified'
# send_resolved: true
# smtp_from:
# smtp_smarthost:
# smtp_auth_username:
# smtp_auth_password: