For the complete documentation index, see llms.txt. This page is also available as Markdown.

Grafana Integration (v 9.x)

Create alerts in ilert from Grafana 9 alerts.

Are you using Grafana 8.x or lower? Please refer to our Grafana Integration guide.

In ilert: Create a Grafana alert source

  1. Go to Alerting → Alert sources and click Create new alert source.

  2. Search for Grafana, click its tile, and click Next.

  3. Give your alert source a name, optionally assign teams, and click Next.

  4. Choose who gets notified: select Use existing escalation policy and pick a policy, or Generate new escalation policy to start with a basic one that notifies you first. Click Next.

    The escalation step of the ilert alert source wizard, headed Who should be notified about alerts, with an escalation policy selected and a preview of its escalation rules below.
    Pick an existing escalation policy, or generate a basic one without leaving the wizard.
  5. Select Default grouping and click Continue setup. It groups events by the alert key the integration sets; the other grouping options are easier to judge once events are arriving.

  6. The next page shows more settings, such as notification priority and alert templates. Click Finish setup for now; you can change them later.

  7. On the final page, ilert shows the integration key and URL for this alert source. You will need them later in this guide.

In Grafana 9: Add ilert Webhook as Alerting Channel

  1. In the sidebar, go to Alerting -> Contact points and click on the New contact point button.

  1. Select Contact point type Webhook and in the field URL insert the webhookurl generated in ilert. Set the HTTP Method to POST.

  1. Optionally test the integration by clicking on the Test button. Click on Save contact point.

  1. Check if an alert has been created in ilert.

  2. After the Contact Point has been created in Grafana 9, switch to any dashboard of your Grafana 9 installation and edit a graph.Screenshot 2022-09-08 at 17.05.28.png

  1. In the edit view, open the Alert section via the left sidemenu and click on the blue Create alert rule from this panel button.

  2. Fill in the desired Conditions.

  1. Enter a Rule name and a Group name for your alert rule. Afterwards select a Folder for your alert rule to be stored in.

  1. Enter a Description and a Summary to your alert rule by clicking on the gray Add info button.

  1. Create custom Labels to identify the alert rule.

  1. To save the alert rule, click on the blue Save button located on the top right corner.

  2. After the Alert rule has been created in Grafana 9, create a new Notification policy by clicking on Notification policies tab -> New specific policy.

  1. Add the created customised Labels in step 18 and choose the Contact point created in step 2. Save the notification policy by clicking on the Save policy button.

  1. The integration is now set up!

FAQ

Will alerts in ilert be resolved automatically?

Yes, as soon as an alert with "ok" has been resolved in Grafana, the associated alert in ilert will be resolved automatically.

What happens when an alert is paused in Grafana, is the associated alert also accepted in ilert?

Yes.

Can I link Grafana to multiple alert sources in ilert?

Yes, create a Notification Channel per alert source in Grafana.

Last updated

Was this helpful?