Overview
An alert route decides what happens after an alert source receives an alert. It can enrich the alert with severity or metadata, then use a Notification rule to decide whether to page responders. Use this page when you want to tune the rules inside a route. For a high-level explanation of how sources and routes work together, return to the parent Routing page.Changes on this page apply only to the alert route you are editing. Other routes can have different sources, attributes, notification conditions, recipients, and fallback behavior.
Route Flow
Within an alert route, alerts move through these steps:Receive Alerts From
The Receive alerts from section shows the sources connected to this route. A source can send alerts to one route at a time. To add or move a source:- Open Settings → On-call → Routing.
- Open the route you want to edit.
- In Receive alerts from, click Add source.
- Pick the source you want this route to receive.
- Save the route.
Enriching Alerts With Attributes
Attributes are optional rules that change an alert before the Notification rule decides who to page. Use them when the alert you get from a tool isn’t quite the alert you want to route on, for example when the severity is missing or wrong, or when the detail that tells you who owns the alert is buried in the title. An attribute can apply two actions to matching alerts:
Do Nothing leaves the alert unchanged. One branch can use both actions: click Add Action.
Every later step sees the enriched alert: Notification rule conditions, maintenance windows, and the alert as it appears in the alert list. If a route has no attributes, alerts continue with the severity and metadata they arrived with.
When to use attributes
1. Your tool doesn’t send a severity you can route on
Email alerts and generic HTTP webhooks often put the urgency in the subject line instead of a severity field.Attribute: Severity from subject
- IF Title contains
[CRITICAL]→ Define Severity SEV1 - ELSE IF Title contains
[WARNING]→ Define Severity SEV3 - ELSE → Do Nothing
2. Keep test and staging alerts from paging
Downgrade them to SIGNAL. They are still recorded, but a Notification rule that pages only on high severities skips them.Attribute: Quiet non-production
- IF Title matches regex
^\[(TEST|STAGING)\]→ Define Severity SIGNAL
3. Route by owner when the tool doesn’t know who owns the alert
Tag the alert with an owner, then route on that tag.Attribute: Owning team
- IF Title contains
checkout-api→ Add Metadataowner=payments - ELSE IF Title contains
search-→ Add Metadataowner=search
owner exactly matches payments → Payments escalation policy. Metadata owner exactly matches search → Search escalation policy. ELSE → escalate to the platform on-call schedule.4. One route, several tools that label things differently
Normalize them to one key so the Notification rule needs a single condition.Attribute: Normalize environment
- IF Metadata
envexactly matchesprod→ Add Metadatatier=production - ELSE IF Metadata
environmentexactly matchesproduction→ Add Metadatatier=production
tier exactly matches production → escalate.Add or edit an attribute
- Open Settings → On-call → Routing (or your team → Routing) and open the route.
- Under Attributes, click Add Attribute and give it a clear name, such as Severity from subject.
- Add branches: an IF, optional ELSE IF branches, and the fixed ELSE. Branches are checked top to bottom. The first branch that matches applies its actions, and the rest are skipped. Drag a branch to reorder it.
- In each branch, choose Match all conditions or Match any condition, then click Add Condition:
- Title, Description, or Metadata. For Metadata, pick a key; the list suggests keys seen on recent alerts. Operators: exactly matches, contains, does not contain, matches regex.
- Source: the alert is from one of the source types you pick, for example only Datadog alerts on a route that also receives Grafana.
- Choose the branch’s action or actions.
- Click Save changes.
How attributes combine
- Every enabled attribute on the route runs, and each one looks at the alert as it arrived. One attribute can’t match on metadata that another attribute on the same route adds. If you need that, put both steps in the same branch.
- Set each field in one attribute only. If two attributes both set severity, or both set the same metadata key, only one result is kept. Put related cases in one attribute as ELSE IF branches instead.
- Values are fixed text. Add Metadata can’t copy a value out of the alert payload; there are no
{{…}}templates. - Use simple keys such as
ownerortier. Avoid dots in keys you add.
Matching details
- Matching is case-sensitive by default. For contains, exactly matches, and does not contain, clear Case sensitive to ignore case.
- matches regex is always case-sensitive. To match both cases, use character classes, for example
[Cc]ritical. - does not contain is true when the field is missing entirely.
- Attributes don’t affect deduplication. Duplicates are detected before attributes run.
- Attribute changes apply to new alerts. An alert that is already open keeps the severity and metadata it was given, even if it fires again.
Verify it worked
Send a test alert through the route’s source, open it from the alert list, and check its severity and metadata.Delete an attribute
Use the delete action on the attribute, then confirm. If you delete the only attribute, the route keeps receiving alerts, but no enrichment runs before the Notification rule.Notification Rule
The Notification rule decides whether an alert pages responders. It pairs conditions with recipients such as users, schedules, or escalation policies.Add notification conditions
- Open the alert route.
- Select the Notification rule section.
- Add a condition for the alerts you want to page.
- Choose the recipients for matching alerts.
- Save the route.
How delayed paging works
- If the alert is still open and pageable after the delay, the notification is sent.
- If the alert was acknowledged, closed, resolved, muted, or otherwise suppressed before the delay ends, the notification is skipped.
- After the delay finishes, the configured recipient is paged immediately if the alert is still pageable.
- A delay can be anywhere from 1 minute to 24 hours.
- To page earlier than the delay — for example when an automated first responder gives up — an API key with Page from alerts can call
POST /escalationswith the alert and an escalation policy (see Public API Reference). That starts a new escalation and does not cancel the delayed one: if the alert is still open and unmuted when the delay ends, the route’s recipients are paged too. Acknowledge or resolve the alert to stop the delayed page.
ELSE Fallback
The ELSE branch controls alerts that do not match any notification condition. It can either Do Nothing or Escalate to selected recipients.Set the ELSE branch deliberately. If it is set to Do Nothing, unmatched alerts are recorded but nobody is paged.
Example: quieter weekends
A team only wants pages during business hours. Their Notification rule has one condition: severity is more severe than SEV2 and time is within Monday through Friday, 08:00 to 18:00. Matching alerts escalate to the on-call schedule, and the ELSE branch is set to Do Nothing. At 02:00 on Saturday, a SEV1 CPU alert arrives. It does not match the business-hours condition, so it follows the ELSE branch. The alert is recorded as open, but nobody is paged.From Escalation To Notification
The alert route decides who should be escalated. Delivery still depends on escalation policies and personal notification preferences.Alert source → Alert route → Attributes → Notification rule → Escalation policy → Personal notification preferences
- Escalation policy. If a rule escalates to an escalation policy, its tiers run in order. Each tier targets on-call schedules, specific people, or a Slack or Microsoft Teams channel where anyone can acknowledge the alert.
- Personal notification preferences. Once a person is selected, their notification preferences decide which channels are used and in what order, such as Slack, email, SMS, or phone call.
FAQ
Do I need attributes?
Do I need attributes?
No. Attributes are optional. Add them only when you want to change severity or add metadata before notification rules run. See When to use attributes above for examples.
What happens if no notification condition matches?
What happens if no notification condition matches?
The alert follows the ELSE branch. Set it to Escalate if unmatched alerts should still page someone.
Can two routes use the same source?
Can two routes use the same source?
No. A source sends to one route at a time. You can move a source to another route by editing the route or source connection.
What happens when a route is inactive?
What happens when a route is inactive?
Sources connected to an inactive route may still receive alerts, but route actions such as enrichment and paging do not run until the route is active again.