Overview
OpenSRE queries PagerDuty for active incidents, timelines, on-call responders, and service / escalation-policy configuration so RCA can correlate incident management data with infrastructure events.Prerequisites
- PagerDuty account
- REST API key with read access
Setup
Option 1: Interactive CLI
Option 2: Environment variables
Option 3: Persistent store
Credentials
- In PagerDuty, go to Integrations → Developer Tools → API Access Keys
- Click Create New API Key
- Add a description (for example
opensre read-only) - Copy the key immediately — it is shown only once
PagerDuty API keys are account-level. Use a read-only key for least privilege.
Investigation tools
During an investigation, OpenSRE may use these tools to:
- Find incidents around the alert time window
- Identify who was on-call and how quickly incidents were acknowledged
- Map services and escalation policies involved
- Correlate PagerDuty timelines with Grafana / Datadog metrics
Verify
Troubleshooting
Security
- Use a read-only API key — OpenSRE does not need to modify PagerDuty resources.
- Store the API key in
.envor your secret manager — not in source control. - Rotate API keys periodically via PagerDuty Developer Tools.