Prompt
How do I automate paging based on severity and service ownership?
Latest observation
Oct 27, 2026
OpenAI APIWeb search: off
To automate paging based on severity and service ownership, the cleanest approach is to build a routing layer that combines:
- Alert severity
- Service-to-team ownership mapping
- Paging policies like time of day, escalation, and deduplication
Recommended design
1) Standardize alert labels
Make sure every alert includes consistent fields, for example:
severity:critical,high,medium,lowservice:payments-api,auth-service, etc.team:team-payments,team-platformenvironment:prod,staging
If you can, attach ownership at the source so alerts already know who owns them.
2) Create an ownership map
Maintain a source of truth that maps services to teams and paging targets.
Example:
payments-api:
owner_team: team-payments
pagerduty_service: payments-prod
severity_policy:
critical: page
high: page
medium: ticket
low: slack
auth-service:
owner_team: team-identity
pagerduty_service: identity-prod
severity_policy:
critical: page
high: page
medium: ticket
low: slack
This can live in:
- a config repo
- a CMDB
- Kubernetes labels/annotations
- service catalog tools like Backstage, OpsLevel, or Cortex
3) Define routing rules
Use severity + ownership together to decide the action.
Example policy:
- critical + production + owned service → page on-call immediately
- high + production → page during business hours or if sustained
- medium → create ticket or notify Slack
- low → log or send to Slack only
Example logic:
if env == "prod" and severity == "critical":
page owner team
elif env == "prod" and severity == "high":
page if outside error budget or if persists > 15 min
elif severity == "medium":
create incident ticket
else:
notify slack
4) Use an alert router
Common tools:
- PagerDuty Event Orchestration
- Opsgenie routing rules
- Prometheus Alertmanager
- Datadog monitors + notification rules
- Splunk On-Call routing policies
These tools can route alerts based on labels like severity, service, and team.
Example in Alertmanager:
route:
receiver: default
group_by: ['alertname', 'service', 'severity']
routes:
- matchers:
- severity="critical"
receiver: pagerduty-critical
- matchers:
- severity="high"
receiver: pagerduty-high
- matchers:
- severity="medium"
receiver: ticketing
You can add service-specific subroutes too.
5) Add escalation and deduplication
To avoid noisy paging:
- group similar alerts together
- suppress duplicates for the same service
- escalate only if unresolved after a threshold
- page the owning team first, then escalate to platform/SRE if unacknowledged
Example:
- page
team-paymentsfor critical payments outage - after 10 minutes, escalate to
sre-oncall - after 30 minutes, escalate to incident manager
6) Respect business context
Sometimes severity alone isn’t enough. Add conditions for:
- production vs non-production
- customer impact
- region-specific issues
- time of day
- availability of the owning team
Example:
criticalinprodalways pageshighpages only if customer-facinghighin staging never pages
A simple implementation pattern
Input alert
{
"severity": "critical",
"service": "payments-api",
"env": "prod",
"summary": "5xx error rate > 20%"
}
Ownership lookup
{
"payments-api": {
"owner_team": "team-payments",
"pager": "pagerduty-payments"
}
}
Routing result
- send to PagerDuty service
pagerduty-payments - notify Slack
#team-payments-alerts - if unresolved after 10 min, escalate to
sre-oncall
Best practices
- Keep severity definitions consistent across teams
- Make service ownership mandatory for production services
- Prefer automation over manual escalation
- Review routing rules regularly to prevent alert fatigue
- Use runbooks linked to alerts so the on-call knows what to do
- Measure paging quality: false positives, mean time to acknowledge, and pages per service
If you want, I can also give you:
- a PagerDuty routing example,
- a Prometheus Alertmanager config, or
- a Python/Go policy engine for severity-based paging.