Guides
Alerts & Webhooks

Alert Webhooks

4min

An alert can be configured to be sent via webhook call. In this case, an HTTP POST request will be made to the specified endpoint, containing a JSON payload, whenever the threshold condition is met.

If the response has a 200 status code, it is considered successful, otherwise, the alert system will keep trying to send the alert.

Context Variables

The following context variables can be used to set a webhook request header and payload:

Document image


Sample Webhook for Slack

Create the alert using the Alerts UI:

Document image


Or using the Alerts API :

Curl


Sample webhook payload for Slack

webhook_payload


Alerts will send the following HTTP request to the webhook endpoint:

Curl


And the rendered Slack message will look like this:

Document image