webhook

Reference for the `webhook` adapter.

webhook · adapter · run nanook doc webhook for the same content in your terminal.

Pushes metrics to a webhook via HTTP POST.

Options

OptionTypeDefaultDescription
urlstringrequired 🔒target webhook URL
methodenumPOSTHTTP method (one of: GET, POST, PUT, PATCH, DELETE)
retriesstring0number of retries on failure
backoffstring1sretry backoff

Examples

Slack-compatible incoming webhook

[[adapters]]
kind = "webhook"
[adapters.opts]
url = "https://hooks.slack.com/services/T00/B00/XXX"
method = "POST"
filter = 'name ~ "alert.*"'
retries = 3
backoff = 1000

Internal collector with auth header

[[adapters]]
kind = "webhook"
[adapters.opts]
url = "https://collector.internal/v1/metrics"
method = "POST"
retries = 5
backoff = 2000
[adapters.opts.headers]
Authorization = "Bearer ${COLLECTOR_TOKEN}"