Overview
When configuring escalation paths, you can branch based on priority 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 — the right place to do that is in your alert sources, not in the escalation path itself. This article explains how to configure your alert sources so that the right priority is assigned to each alert before it reaches your escalation path.Why set priority at the alert source level?
Escalation paths are intentionally kept simple: they branch on priority 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 Settings > Alerts > Routing
- 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 organisation from the alert source configuration page:- In the priority configuration drawer, click Manage priorities
- Add, rename, re-order, or remove priorities as needed
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
- Alert route: Routes alerts to the appropriate escalation path based on the affected service
- Escalation path: Branches on priority — P1 alerts page the on-call engineer immediately, P2 alerts wait 5 minutes, P3 alerts wait until working hours