Prompt
How do I set up incident response so the right people get paged automatically?
Latest observation
To automate paging the right people during incidents, set up incident response as a rule-driven workflow: detect → classify → route → notify → escalate → resolve.
1) Define incident types and ownership
Start by mapping common incident categories to teams and on-call rotations, for example:
- API outage → Backend on-call
- Database latency → Data platform on-call
- Security alert → Security on-call
- Billing failures → Payments on-call
For each type, define:
- Severity levels: P1 / P2 / P3
- Primary owner
- Backup owner
- Escalation path
- Expected response time
2) Create an on-call roster
Use an on-call system such as:
- PagerDuty
- Opsgenie
- Splunk On-Call
- Incident.io
- xMatters
Set up:
- Rotations by team
- Schedule overrides for holidays/PTO
- Backup coverage
- Escalation chains if no one acknowledges
3) Automate detection and classification
Connect alert sources like:
- Monitoring/observability tools: Datadog, Prometheus, New Relic, Grafana
- Cloud alerts: AWS CloudWatch, GCP Monitoring, Azure Monitor
- Security tools: SIEM, EDR, CSPM
- Application logs and SLO breach alerts
Then classify alerts using rules such as:
- Service name
- Error budget burn rate
- Environment: prod vs staging
- Customer impact
- Time of day
- Alert correlation/deduplication
Example:
- “If prod checkout error rate > 5% for 5 min, route to Payments on-call as P1.”
4) Route alerts with a policy engine
Use alert routing rules to decide who gets paged:
- Team-based routing by service ownership
- Severity-based routing for different response groups
- Context-based routing using tags/labels like
service,owner,region,customer_tier - Escalation-based routing if the first responder doesn’t acknowledge
A good pattern:
- Page primary on-call
- If not acknowledged in 5 minutes, page secondary
- If still unacknowledged, page team lead or incident commander
5) Reduce noise before paging
To avoid waking people unnecessarily:
- Deduplicate repeated alerts
- Group related alerts into one incident
- Suppress known maintenance windows
- Use SLO-based alerting instead of raw metric thresholds when possible
- Require multi-signal confirmation for critical pages
6) Set clear escalation and communication paths
For each incident, define:
- Who becomes incident commander
- Where to communicate: Slack/Teams + bridge line
- Who handles external/customer communication
- Who updates status page
- Who closes the incident
7) Maintain ownership metadata
Keep service ownership current in a CMDB/service catalog or code repo metadata:
- Service name
- Owning team
- On-call schedule
- PagerDuty service key or routing key
- Runbook link
- Severity mapping
This makes routing automatic and reduces manual triage.
8) Test the system regularly
Run:
- Paging drills
- Game days
- Failover tests
- “No acknowledge” escalation tests
Verify:
- Right person gets paged
- Escalation works
- Runbooks are accessible
- Noise is acceptable
9) Add runbooks to each alert
Every page should link to a runbook with:
- What the alert means
- First checks
- Common causes
- Mitigation steps
- Escalation contacts
Example setup
A simple routing rule could look like:
- Alert:
service=checkout,env=prod,severity=P1 - Route to:
Payments team on-call - Notify: Slack channel
#incidents-payments - Escalate after 5 min to secondary
- If customer-facing, page incident commander too
Recommended starting blueprint
If you want a practical minimal setup:
- Use a pager tool like PagerDuty or Opsgenie
- Define service ownership for every production service
- Create on-call rotations for each team
- Tag alerts with
service,env, andseverity - Write routing rules based on those tags
- Add escalation policies and runbooks
- Test monthly
If you want, I can also give you:
- a sample PagerDuty routing design
- a YAML/JSON example for alert routing
- a small incident response policy template