Overview
When configuring escalation paths, you can branch based on escalation urgency and working hours. If you want to vary how alerts are handled based on other attributes — such as the service, environment, team, or severity label from your monitoring tool — do that before the alert reaches your escalation path, not in the escalation path itself. There are two ways to do it:- Set the alert’s priority in your alert source. Each priority has a default escalation urgency, which its escalations get.
- Choose the urgency in your alert rules, from anything about the alert.
Why not branch on these in the escalation path?
Escalation paths are intentionally kept simple: they branch on urgency and working hours only. This is because escalation paths aren’t just used for alerts - they’re also used if you ever want to manually escalate to that team. If you want incoming alerts to be routed differently based on attributes like:- The service or component that triggered the alert
- The environment (production vs staging)
- A severity label from your monitoring tool
- Any other payload field
How to set priority in an alert source
- Navigate to On-call → Alert routing and open the Sources tab
- Click on the alert source you want to configure
- In the alert source configuration page, find the Priority section
- Click Edit to open the priority configuration drawer
Option 1: Set a static priority
If all alerts from this source should have the same priority:- Select A static value
- Choose the priority level (e.g. P1, P2, P3)
- Click Apply
Option 2: Set a dynamic priority based on the alert payload
If alerts from this source should have different priorities depending on what’s in the payload:- Select A dynamic value
- Use an expression to derive the priority from the incoming alert payload
-
Map a Datadog monitor’s
prioritytag to an incident.io priority -
Use the
severityfield from a Prometheus Alertmanager payload -
Check whether the alert’s
environmentlabel isproduction(P1) orstaging(P3)
Managing alert priorities
You can manage which priorities are available across your organization from the alert source configuration page:- In the priority configuration drawer, click Manage priorities
- Add, rename, re-order, or remove priorities as needed
How to choose the urgency in alert rules
When the urgency should depend on more than the alert’s priority, set it on an alert rule’s Escalate action. For example, escalate every alert owned by your Security team at Urgent, whatever its priority. See choose the urgency in an alert rule. Alert routes always use the default urgency of the alert’s priority.Putting it all together
Here is a typical setup:- Alert source: Incoming Datadog alerts have their priority set dynamically based on the monitor’s priority tag
- Priorities: P1 and P2 default to the Urgent escalation urgency, and P3 to In-hours
- Alert rules: Escalate to the appropriate escalation path based on the affected service
- Escalation path: Branches on urgency — Urgent escalations page the on-call engineer immediately, In-hours escalations wait until working hours