Skip to main content

Overview

OpenSRE queries OpsGenie for active alerts and alert details so the agent can correlate on-call incidents with infrastructure events. There is no opensre integrations setup opsgenie handler today. Configure OpsGenie with environment variables or the integration store, then verify with opensre integrations verify opsgenie.

Prerequisites

  • OpsGenie account (Atlassian or standalone)
  • API key with read access

Setup

Option 1: Environment variables

Option 2: Persistent store

Credentials

  1. In OpsGenie, go to SettingsAPI key management
  2. Click Add new API key
  3. Name it opensre and enable Read access
  4. Copy the key
EU accounts use a different endpoint. Set OPSGENIE_REGION=eu if your OpsGenie URL is app.eu.opsgenie.com.

Tools

Run opsgenie_alerts first to find an alert ID, then call opsgenie_alert_detail when you need deeper context.

Verify

Expected output:

Troubleshooting

Security

  • Use a read-only API key — OpsGenie supports granular permission scopes.
  • Store the API key in .env or your secret manager — not in source control.