1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Alertmanager for the stream box: critical and warning alerts go to Discord,
# the same channel zlay pages into. The webhook URL is a secret and lives only
# on the box at /opt/stream-experiment/discord-webhook (owner 65534, mode 400).
route:
receiver: discord
group_by: ["alertname"]
group_wait: 1m
group_interval: 5m
repeat_interval: 4h
routes:
# StreamProcessRestarted fires once per restart by design.
- receiver: "null"
matchers:
- severity = "info"
receivers:
- name: "null"
- name: discord
discord_configs:
- webhook_url_file: /etc/alertmanager/discord-webhook
send_resolved: true