Grafana Cloud

Configure IRM webhooks for automated investigations

Grafana Investigations can start automatically when alert groups are created or incidents are declared in Grafana IRM. IRM webhooks send alert and incident context to Assistant, post investigation links back to the alert group, incident page, and Slack, and keep investigations updated as status or labels change.

Before you begin

  • IRM OnCall access: You need access to Grafana IRM OnCall to configure webhooks.
  • Required permissions: You need the following RBAC permissions to configure webhooks:
    • grafana-irm-app.outgoing-webhooks:read and grafana-irm-app.outgoing-webhooks:write
    • grafana-irm-app.integrations:read
    • grafana-irm-app.alert-groups:read and grafana-irm-app.alert-groups:write
    • plugins.app:access with scope plugins:id:grafana-irm-app
  • IRM integrations: Ensure you have IRM integrations configured for the alert sources you want to monitor. For more information, refer to Integrations in Grafana IRM.

If you have webhook read access without grafana-irm-app.outgoing-webhooks:write, you can inspect existing webhooks and alert source coverage, but you can’t create, edit, enable, or disable webhooks. Investigation settings, for example, Skip incidents, use separate Assistant permissions.

For severity-based automatic investigations, open AI > Settings > Investigations and use Automatic investigations to choose alert and incident severities, optionally include alert groups that page someone, and enable the setup. Assistant creates the webhooks for your selected IRM triggers. For the full workflow, refer to Configure alert-triggered investigations.

Configure individual webhooks in Assistant

Use Advanced configuration in AI > Settings > Investigations when you need to choose specific integrations, exclude incident labels, or manage team access per webhook.

Set up incident webhooks

  1. Navigate to AI > Settings > Investigations.
  2. Click Advanced configuration and select IRM incidents.
  3. Turn on Automated incident investigations. Assistant creates missing incident webhooks and enables existing ones.
  4. Review Incident severities and click Save changes if you change them.

Skip incidents with specific labels

You can prevent investigations from triggering when an incident has specific labels. Viewing rules requires grafana-assistant-app.settings.investigations:read and editing requires grafana-assistant-app.settings.investigations:write (both are included in Assistant Admin).

  1. Navigate to AI > Settings > Investigations.
  2. Click Advanced configuration and select IRM incidents.
  3. Turn on Automated incident investigations if it’s off.
  4. Under Skip incidents, click Add rule and enter a label and value for each exclusion, for example, team and platform.
  5. Click Save changes.

Incidents that match any configured rule don’t trigger new investigations, and Assistant cancels any existing investigation for a matching incident.

Note

Label rules are tenant-defined and must match labels configured in your IRM environment.

Grant additional teams access

To grant additional teams access to incident-triggered investigations, select IRM incidents and make sure Automated incident investigations is on. Under Additional team access, choose Specific teams, search for and select the teams, and click Save changes. You can select any team you can read, even if you’re not a member.

Set up alert group webhooks

Create separate webhooks when you want to choose which IRM integrations trigger investigations.

  1. Navigate to AI > Settings > Investigations.
  2. Click Advanced configuration and select IRM alert groups.
  3. Click Add webhook to open the Add alert group webhook form:
    • In Integrations, search for and select the IRM integrations you want.
    • Enter a Webhook name, for example, Production alerts.
    • Optional: In Severity, check the severities you want. To add a custom severity, type it and press Enter. Leave Severity empty to include all severities.
    • Click Enable alert group webhooks.
  4. The system creates webhooks that trigger when alert groups are created and when their status changes.

Check alert source coverage

Open AI > Settings > Investigations, click Advanced configuration, and select IRM alert groups. Search for an IRM integration in Is an alert source covered?. Results distinguish Not covered, Configured but disabled, and Covered sources.

For an uncovered source, click Add webhook to open the creation form with that integration selected. For a configured source, click Edit to open its existing webhook. Enable a disabled webhook rather than creating a duplicate.

Configure webhooks in IRM (advanced)

Use IRM directly when you want to configure webhooks with the IRM preset or custom webhook settings.

Use IRM preset webhook

IRM OnCall includes a built-in Grafana Assistant webhook preset:

  1. Navigate to Alerts & IRM > IRM > Integrations > Outgoing webhooks > New webhook.
  2. Select the Grafana Assistant for IRM preset from the dropdown.
  3. Choose which integrations trigger investigations.
  4. Select trigger types:
    • For alert group webhooks, choose Alert group created and Status change.
    • For incident webhooks, choose Incident declared.
  5. Create one webhook per trigger type.

The preset configures the endpoint URL and payload format automatically. For available trigger types and configuration details, refer to IRM outgoing webhooks.

Configure webhooks manually

If you need full control over webhook settings, create webhooks manually:

  1. Navigate to IRM > Integrations > Outgoing Webhooks > Create an Outgoing Webhook.
  2. Configure the webhook:
    • Name: Choose a descriptive name.
    • HTTP method: POST.
    • URL: The Assistant webhook endpoint URL.
    • Trigger type: Use Alert group created and Status change for alert groups, or Incident declared for incidents.
    • Integrations: Select which integrations trigger this webhook.

For alert group webhooks, use this endpoint URL format:

<STACK_URL>/api/plugins/grafana-assistant-app/resources/api/v1/investigations/from-irm

For incident webhooks, use this endpoint URL format:

<STACK_URL>/api/plugins/grafana-assistant-app/resources/api/v1/investigations/from-irm-incident

Replace STACK_URL with your Grafana Cloud stack URL.

Automatic webhook deliveries require a service credential, not a signed-in user’s session. If you use a Grafana service account, grant it grafana-assistant-app.investigations:create for both starting and updating investigations. For role details, refer to Manage Assistant access with RBAC.

The delivery credential authorizes the webhook request. The investigation uses your stack’s Assistant service account to query data sources, not the credential that delivered the webhook.

Understand webhook triggers and results

When an alert group triggers a webhook, Assistant creates an investigation with the alert group’s context, posts a resolution note with the investigation link to the alert group (and Slack thread if configured), and updates context as status or labels change.

When an incident triggers a webhook, Assistant creates an investigation with the incident’s title, summary, and activity context, posts start and completion activity items to the incident page (and Slack channel if configured), and updates context when status, severity, labels, or activity change.

When an alert resolves and fires again, IRM opens a new alert group. If the earlier investigation is still running, the new alert group joins it instead of starting another investigation. With Continue on IRM updates on, it also joins and resumes a completed investigation that started within the Continuation window (1 to 24 hours, default 6 hours, configured under Advanced configuration > IRM alert groups). With the toggle off, it starts a new investigation. Matching uses Alertmanager grouping, so it applies to Alertmanager and Grafana Alerting integrations on the same IRM integration.

View triggered investigation results from the alert group timeline, the incident page, the Assistant sidebar, or linked Slack threads.

Manage webhooks

Open AI > Settings > Investigations > Advanced configuration > IRM alert groups to inspect Existing webhooks (status, HTTP method, trigger type, target URL, and links to edit in IRM OnCall).

  • Edit: Click the webhook name in Existing webhooks, or navigate to IRM OnCall > Integrations > Webhooks and select the webhook.
  • Disable: Navigate to IRM OnCall > Integrations > Webhooks, select the webhook, and toggle Enabled off.
  • Delete: Navigate to IRM OnCall > Integrations > Webhooks, select the webhook, click Delete, and confirm.

Enable webhooks only for integrations with alerts you want to investigate automatically, start with a few integrations to monitor volume, and review results periodically.

Troubleshoot common issues

Webhooks not triggering investigations

Check the webhook status in IRM OnCall to verify it’s enabled, targets the right integrations, and uses Alert group created, Status change, or Incident declared. Check webhook execution history in IRM OnCall for delivery responses.

If a delivery returns 403 Forbidden, verify that the webhook uses a valid service credential for the same Grafana Cloud stack and has grafana-assistant-app.investigations:create, then retry.

Verify the webhook URL points to your Grafana Cloud stack, confirm the webhook has permission to post to alert groups and incidents, and check IRM OnCall webhook execution history for errors.

Investigation context not updating

Ensure the webhook includes Status change or Incident changed trigger types, and review webhook execution history to confirm update events are sent.

Next steps