From df21563f32b2bbcb04c8cff74653fbc079a6dd8c Mon Sep 17 00:00:00 2001 From: Ben Cartwright-Cox Date: Sun, 28 Feb 2021 18:20:51 +0000 Subject: [PATCH] Explain better how this fits into the prometheus stack --- README.md | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 854b35f..ca16010 100644 --- a/README.md +++ b/README.md @@ -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: