Overview
The Grafana integration allows you to connect your Grafana instance to incident.io to automatically create incidents from Grafana alerts, enrich alerts with organizational context, and attach dashboard screenshots to incidents for faster debugging.What you can do with Grafana
With Grafana, you can:- Create incidents automatically from Grafana alerts by setting up alert sources. Alert sources work without connecting Grafana.
- Get a screenshot of the alerting panel on each Grafana alert, once Grafana is connected
- Enrich alerts with attributes using labels on your Grafana alert rules to map to services, teams, and other catalog types
- Sync telemetry dashboards to your incident.io catalog for easy reference, if your plan includes Investigations
Connecting Grafana to incident.io
Prerequisites Before connecting, you’ll need:- Grafana API URL: the hostname of your Grafana instance, such as
acme.grafana.net. - Service account token: a non-expiring Grafana service account token. The service account needs either:
- The basic Viewer role; or
- The fixed roles Dashboards → Reader, Folders → Reader, and Annotations → Reader.
- Navigate to Administration > Users and access > Service accounts in Grafana
- Click Add service account
- Give it a descriptive name like “incident.io Integration”
- Set it to the Viewer role, or assign the fixed roles above
- Click Add service account token and choose No expiration. The connection stops working when a token expires.
- In incident.io, go to Settings > Integrations
- Find Grafana and click Connect
- Enter your Grafana API URL and service account token
- Click Connect
Setting up Grafana alert sources
Alert sources allow you to automatically create incidents from Grafana alerts. Creating an alert source- Open Alert sources in incident.io
- Click Create Alert Source
- Select Grafana as the source type
- Configure your alert source settings (name, routing rules, etc.)
- Copy the webhook URL provided (it will look like
https://api.incident.io/v2/alert_events/grafana/{alertSourceId})
- In Grafana, navigate to Alerting > Contact points
- Click Add contact point (or edit an existing one)
- Select Webhook as the type
- Paste the incident.io webhook URL
- Under Authentication, select Bearer Token and paste the token provided by incident.io Note: For older Grafana versions, you may need to use HTTP Basic Auth instead
- Save the contact point
- Apply Grafana’s grouping (recommended) - Creates a single incident.io alert for each Grafana alert group, keeping related alerts together
- Ignore Grafana’s grouping - Creates separate incident.io alerts for each alert within a Grafana alert group
Enriching alerts with tags
You can tag your Grafana alert rules with labels that map to incident.io catalog types (like services, teams, or custom catalog types), then map those labels to alert attributes in your alert source. Adding tags to Grafana alerts- In Grafana, edit your alert rule
- Add labels in the format
{catalog-type-name}with the value being the catalog entry name - In your Grafana alert source in incident.io, map the label to an alert attribute of that catalog type
service label to a Service attribute.
When this alert fires, incident.io finds the Service entry named payment-api and sets it on the alert’s Service attribute.
Common catalog types to use:
- service - Link alerts to specific services
- team - Route to the right team
- Any custom catalog types you’ve created in incident.io
Still got questions? Reach out to support@incident.io or message us in your Slack Channel!