OpenSRE queries OpsGenie to retrieve active alerts and their details — correlating on-call incidents with infrastructure events and investigation findings.Documentation Index
Fetch the complete documentation index at: https://opensre.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
- OpsGenie account (Atlassian or standalone)
- API key with read access
Setup
Option 1: Interactive CLI
Option 2: Environment variables
Add to your.env:
| Variable | Default | Description |
|---|---|---|
OPSGENIE_API_KEY | — | Required. OpsGenie API key |
OPSGENIE_REGION | us | Region: us or eu |
Option 3: Persistent store
Creating an API key
- In OpsGenie, go to Settings → API key management
- Click Add new API key
- Name it
opensreand enable Read access - Copy the key
EU accounts use a different endpoint. Set
OPSGENIE_REGION=eu if your OpsGenie URL is app.eu.opsgenie.com.Verify
Troubleshooting
| Symptom | Fix |
|---|---|
| 401 Unauthorized | Check the API key — ensure it has Read access |
| 404 Not Found | Try setting OPSGENIE_REGION=eu if you’re on the EU instance |
| Rate limited | OpsGenie enforces per-minute rate limits; reduce query frequency |
Security best practices
- Use a read-only API key — OpsGenie supports granular permission scopes.
- Store the API key in
.env, not in source code.
Tracer