Skip to main content

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.
This article explains how to set the right priority for each alert, and how to choose the urgency in alert rules when the priority isn’t enough.

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
…the way to achieve this is by mapping those attributes to a priority in your alert source config, or to an urgency in your alert rules. Your escalation path then branches on the resulting urgency.

How to set priority in an alert source

  1. Navigate to On-call → Alert routing and open the Sources tab
  2. Click on the alert source you want to configure
  3. In the alert source configuration page, find the Priority section
  4. 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:
  1. Select A static value
  2. Choose the priority level (e.g. P1, P2, P3)
  3. Click Apply
This is useful when you know that every alert from a particular source is always equally important — for example, a source that only fires for critical production outages.

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:
  1. Select A dynamic value
  2. Use an expression to derive the priority from the incoming alert payload
For example, you might:
  • Map a Datadog monitor’s priority tag to an incident.io priority
  • Use the severity field from a Prometheus Alertmanager payload
  • Check whether the alert’s environment label is production (P1) or staging (P3)
Expressions allow you to inspect any field in the incoming alert payload and map it to one of your configured alert priorities. You can use the alert preview on the right-hand side of the configuration page to see real payloads and test your expressions.

Managing alert priorities

You can manage which priorities are available across your organization from the alert source configuration page:
  1. In the priority configuration drawer, click Manage priorities
  2. Add, rename, re-order, or remove priorities as needed
Priorities are shared across all alert sources, so changes here will be reflected everywhere. Each priority has a default escalation urgency, which decides the urgency of its escalations. See alert priorities.

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:
  1. Alert source: Incoming Datadog alerts have their priority set dynamically based on the monitor’s priority tag
  2. Priorities: P1 and P2 default to the Urgent escalation urgency, and P3 to In-hours
  3. Alert rules: Escalate to the appropriate escalation path based on the affected service
  4. Escalation path: Branches on urgency — Urgent escalations page the on-call engineer immediately, In-hours escalations wait until working hours