🔗 Custom Webhook
| Parameter | Description | Required |
|---|---|---|
alert.webhook.url | 🔗 Webhook URL | Yes |
alert.webhook.headers | 📋 Custom headers | No |
alert.webhook.basicAuth | 🔐 Username + password | No |
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>