Configure the webhook notifier for Alerting
The webhook notification is a simple way to send information about a state change over HTTP to a custom endpoint. Using this notification you could integrate Grafana into a system of your choosing.
Webhook JSON payload
Webhook fields
Body
Alert
Note
You can customize the
title
andmessage
fields using notification templates.However, you cannot customize webhook data structure or format, including JSON fields or sending data in XML, nor can you change the webhook HTTP headers.
Procedure
To create your Webhook integration in Grafana Alerting, complete the following steps.
Navigate to Alerts & IRM -> Alerting -> Contact points.
Click + Add contact point.
Enter a contact point name.
From the Integration list, select Webhook.
In the URL field, copy in your Webhook URL.
Click Test to check that your integration works.
** For Grafana Alertmanager only.**
Click Save contact point.
Next steps
The Webhook contact point is ready to receive alert notifications.
To add this contact point to your alert, complete the following steps.
- In Grafana, navigate to Alerting > Alert rules.
- Edit or create a new alert rule.
- Scroll down to the Configure labels and notifications section.
- Under Notifications, click Select contact point.
- From the drop-down menu, select the previously created contact point.
- Click Save rule and exit.