You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-6Lines changed: 5 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@
3
3
- Based on https://github.com/atomatt/go-xmpp
4
4
5
5
## Status
6
-
`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.
6
+
`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.
7
7
8
8
## Usage
9
9
-`xmpp-webhook` is configured via environment variables:
@@ -13,7 +13,7 @@
13
13
- After startup, `xmpp-webhook` tries to connect to the XMPP server and provides the implemented HTTP enpoints (on `:4321`). e.g.:
14
14
15
15
```
16
-
curl -X POST -d @grafana-alert.json localhost:4321/grafana
16
+
curl -X POST -d @grafana-webhook-alert-example.json localhost:4321/grafana
17
17
```
18
18
- After parsing the body in the appropriate `parserFunc`, the notification is then distributed to the configured receivers.
19
19
@@ -40,10 +40,9 @@ systemctl start xmpp-webhook
40
40
```
41
41
42
42
## Building
43
-
- Get the sources: `go get -u github.com/opthomas-prime/xmpp-webhook`
44
-
- Install `dep`: https://github.com/golang/dep
45
-
- Change in the project folder: `cd $GOPATH/src/github.com/opthomas-prime/xmpp-webhook`
46
-
- Populate `vendor` folder: `dep ensure`
43
+
- Dependencies are managed via Go Modules (https://github.com/golang/go/wiki/Modules).
0 commit comments