Skip to content

Commit a33608f

Browse files
committed
Finishing tweaks to make it decent
1 parent 19878e1 commit a33608f

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

.github/demo.png

14.1 KB
Loading

README.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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+
smtp_from: '[email protected]'
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+
```

0 commit comments

Comments
 (0)