Explain better how this fits into the prometheus stack

This commit is contained in:
Ben Cartwright-Cox
2021-02-28 18:20:51 +00:00
parent d9ee4ef581
commit df21563f32
+22 -1
View File
@@ -5,7 +5,28 @@ Give this a webhook (with the DISCORD_WEBHOOK environment variable) and point it
![](/.github/demo-new.png)
Example alert manager config:
## Warning
This program is not a replacement to alertmanager, it accepts webhooks from alertmanager, not prometheus.
The standard "dataflow" should be:
```
Prometheus -------------> alertmanager -------------------> alertmanager-discord
alerting: receivers:
alertmanagers: - name: 'discord_webhook' environment:
- static_configs: webhook_configs: - DISCORD_WEBHOOK=https://discordapp.com/api/we...
- targets: - url: 'http://localhost:9094'
- 127.0.0.1:9093
```
## Example alertmanager config:
```
global: