From bff7a15fdb296a38859427f9675e30aa76d4406f Mon Sep 17 00:00:00 2001 From: Thomas Maier Date: Tue, 26 Sep 2017 16:21:12 +0200 Subject: [PATCH] README WiP --- README.md | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index a409aaf..32663c4 100644 --- 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'