forked from sichoi42/prometheus_grafana_quickstart
-
Notifications
You must be signed in to change notification settings - Fork 0
/
alertmanager.yml
45 lines (40 loc) · 1.38 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
43
44
45
## alertmanager.yml
templates:
- "/etc/alertmanager/template/*.tmpl"
route:
group_by: ["instance", "severity"]
group_wait: 30s
group_interval: 5m
repeat_interval: 3h
receiver: "default-notifications"
routes:
- receiver: "warning-notifications"
group_wait: 10s
matchers:
- severity="warning"
- receiver: "critical-notifications"
group_wait: 10s
matchers:
- severity="critical"
receivers:
- name: "default-notifications"
discord_configs:
# Monitoring Alert (Default)
- webhook_url: "%%AM_DEFAULT_WEBHOOK_URL%%"
send_resolved: %%AM_DEFAULT_SEND_RESOLVED%% # bool
title: '{{ template "discord.custom.title" . }}'
message: '{{ template "discord.custom.message" . }}'
- name: "warning-notifications"
discord_configs:
# Monitoring Alert (Warning)
- webhook_url: "%%AM_WARNING_WEBHOOK_URL%%"
send_resolved: %%AM_WARNING_SEND_RESOLVED%% # bool
title: '{{ template "discord.custom.title" . }}'
message: '{{ template "discord.custom.message" . }}'
- name: "critical-notifications"
discord_configs:
# Monitoring Alert (Critical)
- webhook_url: "%%AM_CRITICAL_WEBHOOK_URL%%"
send_resolved: %%AM_CRITICAL_SEND_RESOLVED%% # bool
title: '{{ template "discord.custom.title" . }}'
message: '{{ template "discord.custom.message" . }}'