File tree Expand file tree Collapse file tree 2 files changed +34
-0
lines changed Expand file tree Collapse file tree 2 files changed +34
-0
lines changed Original file line number Diff line number Diff line change
1
+ alertmanager-discord
2
+ ===
3
+
4
+ Give this a webhook and point it as a webhook on alertmanager, and it will post your alerts into a discord channel for you as they trigger:
5
+
6
+ ![ ] ( /.github/demo.png )
7
+
8
+ Example alert manager config:
9
+
10
+ ```
11
+ global:
12
+ # The smarthost and SMTP sender used for mail notifications.
13
+ smtp_smarthost: 'localhost:25'
14
+
15
+ smtp_auth_username: 'alertmanager'
16
+ smtp_auth_password: 'password'
17
+
18
+ # The directory from which notification templates are read.
19
+ templates:
20
+ - '/etc/alertmanager/template/*.tmpl'
21
+
22
+ # The root route on which each incoming alert enters.
23
+ route:
24
+ group_by: ['alertname']
25
+ group_wait: 20s
26
+ group_interval: 5m
27
+ repeat_interval: 3h
28
+ receiver: discord_webhook
29
+
30
+ receivers:
31
+ - name: 'discord_webhook'
32
+ webhook_configs:
33
+ - url: 'http://localhost:9094'
34
+ ```
You can’t perform that action at this time.
0 commit comments