Configure Opsgenie for Alerting
Use the Grafana Alerting - Opsgenie integration to receive alert notifications in your Opsgenie alert dashboard when your Grafana alert rules are triggered and resolved.
Before you begin
Create an API key to enable Grafana to send alert notifications to Opsgenie alert dashboard.
To create an API key in Opsgenie, complete the following steps.
Follow the steps in the API integration guide.
Make sure you turn on the integration.
Copy the API key.
Procedure
To create your Opsgenie 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 Opsgenie.
In the API key field, paste in your API key.
In the Alert API URL, enter
https://api.opsgenie.com/v2/alerts
.Click Test to check that your integration works.
A test alert notification is sent to the Alerts page in Opsgenie.
Click Save contact point.
Next steps
The Opsgenie contact point is ready to receive alert notifications.
To add this contact point to your alert rule, 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.