blob: e725338314693864875368c889ac39f3c775d62b (
plain) (
blame)
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
|
global:
route:
group_by: [instance, alertname, severity]
group_wait: 30s
group_interval: 5m
repeat_interval: 4h
mute_time_intervals:
- offhours
routes:
- matchers: [severity=critical]
repeat_interval: 1h
- matchers: [severity=warning]
repeat_interval: 4h
- matchers: [severity=info]
repeat_interval: 24h
receiver: telegram
time_intervals:
- name: offhours
time_intervals:
- location: Europe/Berlin
times:
- start_time: 23:00
end_time: 09:00
receivers:
- name: telegram
telegram_configs:
- bot_token: ${repo.vault.cmd(f"rbw get tgnotify/token")}
chat_id: ${repo.vault.cmd(f"rbw get tgnotify/chatid")}
message: |
{{if eq .GroupLabels.severity "critical"}}🚨{{end -}}
{{if eq .GroupLabels.severity "warning"}}⚠️{{end -}}
{{if eq .GroupLabels.severity "info"}}📬{{end -}}
<b>{{with .GroupLabels.instance}}{{.}}/{{end}}{{.GroupLabels.alertname}}</b>
{{.CommonAnnotations.summary}}
{{.CommonAnnotations.description}}
|