xmpp-webhook

webhook to xmpp gateway (clone of https://github.com/opthomas-prime/xmpp-webhook/ with my own mods)
git clone https://git.e1e0.net/xmpp-webhook.git
Log | Files | Refs | README | LICENSE

commit bff7a15fdb296a38859427f9675e30aa76d4406f
parent f2bb1c2f0bcd9579bd8fdcd95b4a2b17f0a1a1b6
Author: Thomas Maier <contact@thomas-maier.net>
Date:   Tue, 26 Sep 2017 16:21:12 +0200

README WiP

Diffstat:
MREADME.md | 15++++++++++-----
1 file changed, 10 insertions(+), 5 deletions(-)

diff --git a/README.md b/README.md @@ -1,5 +1,5 @@ # xmpp-webhook -- Multipurpose XMPP Webhook (Built for Prometheus/Grafana Alerts) +- Multipurpose XMPP-Webhook (Built for Prometheus/Grafana Alerts) - Based on https://github.com/atomatt/go-xmpp ## Status @@ -7,10 +7,15 @@ ## Usage - `xmpp-webhook` is configured via environment variables: - - `XMPP_ID` - - `XMPP_PAS` - - `XMPP_RECEIVERS` -- + - `XMPP_ID` - The JID we want to use + - `XMPP_PAS` - The password + - `XMPP_RECEIVERS` - Comma-seperated list of JID's +- After startup `xmpp-webhooks` tries to connect to the XMPP server and provides the implemented HTTP enpoints (on `:4321`). e.g.: + +``` +curl -X POST -d @grafana-alert.json localhost:4321 +``` +- After parsing the body in the appropriate `parserFunc`, the notification is then distributed to the configured receivers. ``` XMPP_ID='bot@example.com'