master
Thomas Maier 2017-09-26 16:21:12 +02:00
rodzic f2bb1c2f0b
commit bff7a15fdb
1 zmienionych plików z 10 dodań i 5 usunięć

Wyświetl plik

@ -1,5 +1,5 @@
# xmpp-webhook # 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 - Based on https://github.com/atomatt/go-xmpp
## Status ## Status
@ -7,10 +7,15 @@
## Usage ## Usage
- `xmpp-webhook` is configured via environment variables: - `xmpp-webhook` is configured via environment variables:
- `XMPP_ID` - `XMPP_ID` - The JID we want to use
- `XMPP_PAS` - `XMPP_PAS` - The password
- `XMPP_RECEIVERS` - `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' XMPP_ID='bot@example.com'