Skip to main content

🔗 Custom Webhook

ParameterDescriptionRequired
alert.webhook.url🔗 Webhook URLYes
alert.webhook.headers📋 Custom headersNo
alert.webhook.basicAuth🔐 Username + passwordNo

Example

apiVersion: v1
kind: Namespace
metadata:
name: kwatch
---
apiVersion: v1
kind: Secret
metadata:
name: kwatch
namespace: kwatch
stringData:
webhook-url: "replace-me"
webhook-header: "replace-me"
webhook-password: "replace-me"
config.yaml: |
alert:
webhook:
url: "${file:/config/webhook-url}"
headers:
- name: X-Custom
value: "${file:/config/webhook-header}"
basicAuth:
username: "user"
password: "${file:/config/webhook-password}"

Routing

alert:
webhook:
url: "${file:/config/webhook-url}"
headers:
- name: X-Custom
value: "${file:/config/webhook-header}"
basicAuth:
username: "user"
password: "${file:/config/webhook-password}"
routes:
- namespaces: ["production"]
severities: ["high", "critical"]
- reasons: ["OOMKilled"]

Retry

alert:
webhook:
url: "${file:/config/webhook-url}"
headers:
- name: X-Custom
value: "${file:/config/webhook-header}"
basicAuth:
username: "user"
password: "${file:/config/webhook-password}"
retry:
maxAttempts: 5
delay: 5s

Fallback

alert:
webhook:
url: "${file:/config/webhook-url}"
headers:
- name: X-Custom
value: "${file:/config/webhook-header}"
basicAuth:
username: "user"
password: "${file:/config/webhook-password}"
fallback: <another_provider>