xmpp-webhook/README.md

25 wiersze
718 B
Markdown
Czysty Zwykły widok Historia

2017-09-24 11:57:48 +00:00
# xmpp-webhook
2017-09-26 14:11:20 +00:00
- Multipurpose XMPP Webhook (Built for Prometheus/Grafana Alerts)
2017-09-26 14:12:07 +00:00
- Based on https://github.com/atomatt/go-xmpp
2017-09-26 13:34:48 +00:00
2017-09-26 14:11:20 +00:00
## Status
2017-09-26 14:12:07 +00:00
`xmpp-webhook` currently only provides a hook for Grafana. I will implement a `parserFunc` for Prometheus ASAP. Check https://github.com/opthomas-prime/xmpp-webhook/blob/master/handler.go to learn how to support more source services.
2017-09-26 13:34:48 +00:00
2017-09-26 14:11:20 +00:00
## Usage
- `xmpp-webhook` is configured via environment variables:
- `XMPP_ID`
- `XMPP_PAS`
- `XMPP_RECEIVERS`
-
2017-09-26 13:34:48 +00:00
```
XMPP_ID='bot@example.com'
XMPP_PASS='passw0rd'
XMPP_RECEIVERS='jdoe@example.com,ops@example.com'
/etc/systemd/system/xmpp-webhook.service
https://github.com/golang/dep
go get -u github.com/golang/dep/cmd/dep
```