add example for subscription-path (#2041)

* docs: added bigpanda.md event handler documentation

* docs: fixing typos

* docs: fixing typos

* docs: updated bigpanda.md, added primary, secondary property

* Update config.yml

* add example for subscription-path

* fix formatting

* resolve conflicts

Co-authored-by: Robert Hajek <robert.hajek@gmail.com>
Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com>
pull/2153/head
kelseiv 2021-02-05 08:23:34 -08:00 committed by GitHub
parent d3c406bcef
commit 4805d69be8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 4 deletions

View File

@ -160,6 +160,7 @@ This results in the following file:
"startup-timeout": "5m0s",
"subscription-mode": "cluster",
"subscription-protocol": "https",
"subscription-path": "",
"subscriptions": {},
"subscriptions-sync-interval": "1m0s",
"timeout": "0s",
@ -205,15 +206,27 @@ Similar commands:
* To change the URLS:
`curl -kv -d '{ "set": { "urls": [ "https://lenovo-TP02:8086" ]} }' https://localhost:9092/kapacitor/v1/config/influxdb/`
```sh
curl -kv -d '{ "set": { "urls": [ "https://lenovo-TP02:8086" ]} }' https://localhost:9092/kapacitor/v1/config/influxdb/
```
* To set the `subscription-protocol`:
`curl -kv -d '{ "set": { "subscription-protocol": "https" } }' https://localhost:9092/kapacitor/v1/config/influxdb/`
```sh
curl -kv -d '{ "set": { "subscription-protocol": "https" } }' https://localhost:9092/kapacitor/v1/config/influxdb/
```
* If Kapacitor is behind a reverse proxy, set the `subscription-path` to append to the InfluxDB subscription URL:
```sh
curl -kv -d '{ "set": { "subscription-path": "/path/behind/reverse-proxy" } }' https://localhost:9092/kapacitor/v1/config/influxdb/
```
* To set the path to the CA Certificate:
`curl -kv -d '{ "set": { "ssl-ca": "/etc/ssl/influxdata-selfsigned-incl-pub-key.pem" } }' https://localhost:9092/kapacitor/v1/config/influxdb/`
```sh
curl -kv -d '{ "set": { "ssl-ca": "/etc/ssl/influxdata-selfsigned-incl-pub-key.pem" } }' https://localhost:9092/kapacitor/v1/config/influxdb/
```
Other properties can be set in a similar fashion.

View File

@ -39,7 +39,7 @@ Authorization Bearer token for BigPanda REST API.
BigPanda integration App Key. To get your App Key, log in to your BigPanda account and select **Integrations** in the header toolbar, and then click **New Integration**.
Select **Alerts REST API**, click **Integrate**, and then **Create an App Key**.
#### `url`
BigPanda Alert API url.