Skip to main content

๐Ÿ”— Custom Webhook

Use the interactive kwatch manager to configure Custom Webhook alerts. It stores credentials in Kubernetes Secrets and verifies the installation. The configuration fragments below explain provider settings; they are not separate installation steps.

ParameterDescriptionRequired
alert.webhook.url๐Ÿ”— Webhook URLYes
alert.webhook.headers๐Ÿ“‹ Custom headersNo
alert.webhook.basicAuth๐Ÿ” Username + passwordNo

Configuration exampleโ€‹

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 Proโ€‹

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>

Evidence Proโ€‹

For an investigated incident, the payload carries one extra evidence object. Receivers that ignore it keep working, and Community payloads never carry it. See What kwatch checks for you.

"evidence": {
"confirmed": true,
"checks": 6,
"facts": ["checkout logs: ...", "10.96.14.7 is Service orders-db ..."],
"quote": { "container": "app", "run": "previous", "lines": ["..."] },
"fix": [{ "text": "Point the Service at the label the pods carry",
"command": "kubectl patch service ...", "mutating": true }]
}
FieldMeaning
confirmedtrue when the gathered evidence proves the cause
checksHow many checks ran and read an answer
factsUp to 4 key facts, most decisive first
quoteUp to 5 log lines that carry the failure's signature, with the container and the run (previous or current)
fixSteps that change the cluster, each with text, an optional command and mutating: true