Configure a webhook in Grafana
Configure webhook endpoints so that Grafana can use the endpoint to communicate with Incident Response.
Before you begin
Ensure you have created an account in Grafana.
Role required: Responder, Manager, or Administrator
About this task
Note: While this integration with a third-party product is supported, the documentation here is based upon information provided by that third-party. More current information about the operation of that third-party’s system may be available from them directly.
Log in to the Grafana console.
On the navigation pane, click the bell icon () and then click
.The Alerting page appears and the Notification channels tab is selected by default.
Click New channel.
The New notification channel form appears.
On the form, fill in the fields.
Field Description Name Name of the notification channel. Type Type of the notification channel.Note: Select the type as webhook. Url Webhook URL that you have already created. Optional Webhook settings Http Method Protocol to enable communication.Note: Select POST. Notification settings Options to manage your notifications.
- To verify your configuration, click Test.
- Click Save.
On the navigation pane, click the dashboard icon () and then click Manage.
Perform any of the following actions:
- To create a new dashboard, click New Dashboard, then click Add new panel.
- Click an existing dashboard to which you want to add alert rules and conditions.
Right-click on the required panel and click Edit.
Click the Query tab and select the database on which you
want to query.
Provide the query values.
In the panel, you can see the query values represented graphically.
- Click the Alert tab.
Provide the rules and conditions for the alert.
In the Notification section, under Send to, click the
plus icon () and add the notification channel which you have created.
In the Tags section, add the following tags:
- severity: Severity with which alert has to be created. This tag is optional.
- count: The number of devices, hosts, or servers monitored by this alert rule. (This tag is mandatory otherwise the alerts will not close automatically in Lightstep Incident Response).
Alert rule is created.
To access your alert rule, on the navigation pane, click the bell icon () and then click . You can check the state of the alert by clicking State history.