webhook
Reference for the `webhook` adapter.
webhook· adapter · runnanook doc webhookfor the same content in your terminal.
Pushes metrics to a webhook via HTTP POST.
Options
| Option | Type | Default | Description |
|---|---|---|---|
url | string | required 🔒 | target webhook URL |
method | enum | POST | HTTP method (one of: GET, POST, PUT, PATCH, DELETE) |
retries | string | 0 | number of retries on failure |
backoff | string | 1s | retry backoff |
Examples
Slack-compatible incoming webhook
[[]]
= "webhook"
[]
= "https://hooks.slack.com/services/T00/B00/XXX"
= "POST"
= 'name ~ "alert.*"'
= 3
= 1000
Internal collector with auth header
[[]]
= "webhook"
[]
= "https://collector.internal/v1/metrics"
= "POST"
= 5
= 2000
[]
= "Bearer ${COLLECTOR_TOKEN}"