Skip to content

Commit

Permalink
Change the default webhook url so it doesn't error out on first install
Browse files Browse the repository at this point in the history
  • Loading branch information
armiiller committed Jan 2, 2019
1 parent f1f3052 commit 4e3fb22
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,14 +99,14 @@ curl -X POST http://<Host IP Address>:9090/-/reload
```

### Alert Configuration
The [PagerTree](https://pagertree.com) configuration requires to create a Prometheus Integration. Follow steps 1-6 [here](https://pagertree.com/knowledge-base/integration-prometheus/#in-pagertree) then replace `<PagerTree WebHook URL>` in [/alertmanager/config.yml](/alertmanager/config.yml) with your copied webhook.
The [PagerTree](https://pagertree.com) configuration requires to create a Prometheus Integration. Follow steps 1-6 [here](https://pagertree.com/knowledge-base/integration-prometheus/#in-pagertree) then replace `https://ngrok.io` in [/alertmanager/config.yml](/alertmanager/config.yml) with your copied webhook.

```yml
...
receivers:
- name: 'pager'
webhook_configs:
- url: <PagerTree WebHook URL> # replace with your PagerTree webhook url
- url: https://ngrok.io # replace with your PagerTree webhook url
...
```

Expand Down
2 changes: 1 addition & 1 deletion alertmanager/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ route:
receivers:
- name: 'pager'
webhook_configs:
- url: <PagerTree WebHook URL> # replace with your PagerTree webhook url
- url: https://ngrok.io # replace with your PagerTree webhook url
2 changes: 1 addition & 1 deletion util/alertmanager-configure-pagertree.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/sh
sed -i "s|<PagerTree WebHook URL>|$1|" ./alertmanager/config.yml
sed -i "s|https://ngrok.io|$1|" ./alertmanager/config.yml

0 comments on commit 4e3fb22

Please sign in to comment.