Opsgenie shuts down April 2027 - move your team to Pagerly
PagerlyPagerly
← All postsEngineering

Alert Routing by Service Ownership: A Practical Guide

Set up alert routing by service ownership so every alert reaches the right on call rotation: ownership records, labels, routes and fallbacks.

Pagerly cover: Alert Routing by Service Ownership: A Practical Guide

Alert routing by service ownership means every alert reaches the person on call for the service that fired it, and nobody else. It sounds obvious. In practice most teams route alerts by tool ("all Datadog monitors go to the infra channel"), by habit ("send it to whoever set up the monitor") or by a single catch all rotation that slowly turns into a dumping ground. The result is predictable: the wrong people get woken up, the right people hear about it from a customer, and a growing pile of alerts belongs to nobody at all.

This guide shows how to build alert routing on top of service ownership instead. It covers the ownership record you need first, how to stamp that ownership onto every alert, how to design routes and fallbacks, how to handle shared and platform services, and how to keep the whole thing from rotting. Everything here works with whatever monitoring stack you already run. The goal is a simple rule you can defend in any retro: if a service fires, its owner's on call rotation hears about it, every time.

Why routing by tool or by team name breaks down

Most alert routing grows by accident. A team adds a monitor, points it at their Slack channel, and moves on. Six months later the company has three monitoring tools, two log platforms, a synthetic checker and a cloud provider's native alarms, each with its own idea of where alerts should go. Nobody designed the routing. It accumulated.

Routing by tool sends alerts to the wrong layer

When routing follows the tool, alerts land with whoever administers that tool, not whoever owns the thing that broke. Cloud alarms go to the infrastructure team because infrastructure set up the cloud account. Application performance alerts go to the team that bought the APM licence. The infrastructure engineer who receives a "checkout latency high" alarm at 2am cannot fix the checkout service. They can only forward it, and forwarding at 2am is slow, lossy and frustrating.

Routing by team name breaks on every reorg

The next step most teams take is routing by team: "payments alerts go to the payments rotation." That is better, but it ties routing to an org chart that changes every few quarters. When the payments team splits into payments core and payouts, half the routes silently point at the wrong rotation, or at a rotation that no longer exists. Teams are temporary. Services last longer, and the mapping from service to owner is the thing you actually want to maintain.

Orphaned alerts are the real cost

The worst outcome is not misrouting, it is no routing. Every organisation that has grown past a handful of teams has alerts that go to an archived channel, an ex employee's email, or a rotation with nobody on it. Those alerts fire correctly and tell nobody. That is a close cousin of the problem we described in the alert notification gap: perfect detection, zero notification. Ownership based routing is the structural fix, because it makes "who owns this?" a required field rather than an afterthought.

Step 1: build a service ownership record before you touch alert routing

You cannot route by ownership if ownership is not written down somewhere machines can read. Before changing a single alert rule, build a service ownership record. It does not need to be a fancy internal developer portal. A YAML file in a repository, a spreadsheet, or a catalog tool all work, as long as it is the single source of truth and it is easy to query.

The minimum fields every service needs

  • Service name: a stable, lowercase identifier that matches what your telemetry already emits. If your traces and metrics use checkout api, do not call it CheckoutService in the catalog.
  • Owning team: the team accountable for the service day to day.
  • On call rotation: the specific rotation or schedule that responds to this service's alerts. This is the field routing actually uses.
  • Tier or criticality: how much the business cares when it breaks. This drives urgency, not destination.
  • Escalation contact: where an alert goes if the rotation does not acknowledge.
  • Slack channel: where non urgent alerts and incident discussion for this service should land.

If you already use a software catalog, the Backstage descriptor format is a reasonable model: each component declares an owner, and tooling reads ownership from there. If you do not, a single file checked into a repository with mandatory review is enough to start. GitHub's CODEOWNERS mechanism is a useful precedent: ownership is declared next to the code, and changes to ownership go through review like any other change.

Map rotations, not people

The ownership record should point at a rotation, never at an individual. People go on holiday, change teams and leave. A rotation is a stable address whose current occupant changes on a schedule. If your rotations live in Slack, the cleanest pattern is a rotation that keeps a Slack user group (for example @checkout oncall) in step with whoever is currently on shift. Then "page the owner" and "mention the owner in Slack" resolve to the same human automatically. Pagerly's rotations in Slack work this way, but the principle applies to any scheduling tool.

Decide what "owned" means for shared things

Databases, message queues, Kubernetes clusters and shared caches are where ownership records get vague. Write down an explicit rule before you start. A common and workable one: the platform team owns the health of the shared resource itself (the cluster is up, the database accepts connections), while each consuming team owns the symptoms their service experiences (their queries are slow, their consumer lag is growing). We go deeper on this split later.

Step 2: stamp ownership onto every alert

Once ownership exists, every alert needs to carry enough information to look it up. The key insight is that alerts should carry the service, not the destination. If an alert says "route to the payments rotation", you have hard coded the org chart into your monitors again. If it says "service: payouts worker", the routing layer can look up the current owner at the moment the alert fires.

Use the service identity your telemetry already has

Most modern telemetry already carries a service name. OpenTelemetry defines service.name as a standard resource attribute, and most APM and metrics tools attach an equivalent tag to every signal. Reuse that identifier. Do not invent a second naming scheme for alerting, because the two will drift apart and you will spend incidents translating between them.

Enforce a service label on alert rules

Make the service label mandatory for every alert rule. How you enforce it depends on your tooling:

  • Alerts as code: if your alert rules live in a repository, add a CI check that fails any rule without a service label, or with a service label that does not exist in the ownership record.
  • Click configured tools: run a weekly audit script against the tool's API that lists monitors missing the tag, and post the list to the owning platform channel.
  • Cloud native alarms: tag the underlying resources with the service name and template the alarm from the tag, so new resources inherit routing automatically.

Prometheus users get this almost for free: Alertmanager's routing tree matches on labels, so a route that matches service and hands off to a receiver per owning rotation is a direct expression of ownership based routing. Other tools have equivalent concepts under different names: tags, routing keys, notification policies or integration keys.

Separate urgency from destination

Two different questions get tangled in most routing configs: who should hear about this, and how loudly. Keep them apart. Ownership decides the who. Severity and service tier decide the how: a phone call and SMS for a customer facing outage, a Slack message in the service channel for a warning that can wait until morning. When those two decisions are separate, changing an owner never accidentally changes how urgent an alert is, and changing an alert's severity never moves it to a different team.

Step 3: design the alert routing rules

With ownership recorded and alerts labelled, the routing rules themselves become short. A good routing configuration for a mid sized organisation often fits on one screen, because most of the logic lives in the ownership record rather than in the routes.

A simple, layered routing order

  • Explicit overrides first. A small number of special cases: security alerts always go to the security rotation, regardless of service; compliance alerts go to whoever your policy names.
  • Service ownership second. Look up the service label in the ownership record and route to that service's rotation. This should handle the overwhelming majority of alerts.
  • Owning team fallback third. If the service exists but has no rotation (a new service, a transition period), route to the owning team's default rotation.
  • Catch all last. Anything still unmatched goes to a clearly named fallback rotation, never to silence.

The catch all route is a bug report, not a destination

Every routing tree needs a final catch all, and every alert that lands there is a defect in your ownership data. Treat it that way. The catch all should page a real, staffed rotation (often the platform or SRE rotation) so nothing is lost, but every catch all alert should also create a ticket to fix the missing label or ownership entry. Track the catch all volume weekly. If it trends to zero, your routing is healthy. If it grows, your catalog is drifting from reality.

Route to the rotation, then let escalation do its job

Routing decides the first destination. Escalation decides what happens when that destination does not respond. Do not try to solve both in the routing tree. Route to the owning rotation, and let that rotation's escalation policy handle secondary responders and managers. If you have not designed that layer yet, our guide to designing an on call escalation policy covers tiers and timeouts by severity.

Handling shared, platform and third party services

Clean ownership routing is easy for a service with one team and one rotation. The hard cases are the shared layers underneath, and they deserve explicit rules rather than case by case arguments in the middle of an incident.

Shared infrastructure: route causes to the platform, symptoms to consumers

When a shared database slows down, two kinds of alert fire. Cause alerts (replication lag, disk saturation, connection pool exhaustion on the database itself) belong to the team that runs the database. Symptom alerts (a service's query latency or error rate) belong to each consuming service. Route them that way. The platform rotation gets paged once for the cause. Consuming teams see their symptom alerts, ideally with a note or link indicating that a related platform alert is already open, so they do not all start debugging the same root cause. We covered the organisational side of this in how platform engineering changes on call ownership.

Third party dependencies need an owner too

When a payment provider, an identity provider or a cloud region degrades, the alert usually comes from your own synthetic checks or from the vendor's status feed. Assign each critical vendor an owning service in your catalog. Stripe degradation belongs to whoever owns checkout. Identity provider issues belong to whoever owns login. Without that assignment, vendor alerts end up in a shared channel where everyone reads them and nobody acts.

Multi team services

Some services genuinely have more than one owning team, usually a large monolith. Resist the temptation to page every team. Instead, split ownership along a dimension the alert already carries: endpoint, module, queue name or feature flag. "Monolith errors on /payments routes go to payments; errors on /search go to discovery" is far more useful than "monolith errors go to three rotations at once". When you genuinely cannot split, nominate one primary owner who triages and pulls others in, and write that down.

Running ownership based alert routing in Slack

Routing is only half the job. Once the right person is notified, they need context quickly, and the rest of the organisation needs to see what is happening without getting paged themselves. For teams that coordinate in Slack, a few patterns help.

One channel per service, one pager per rotation

Pair each service's rotation with a Slack channel where its alerts post. Urgent alerts page the current on call person directly by phone, SMS or push, and also post into the service channel so the history is visible. Non urgent alerts only post into the channel. This way the channel becomes the service's operational log, and the pager stays reserved for things that need a human now.

Mention the rotation, not the person

When an alert posts to Slack, it should mention the rotation's user group, not a hard coded name. The group always resolves to whoever is on call right now. Anyone else who sees the alert knows exactly who is handling it without looking up a schedule. Pagerly keeps Slack user groups synced with the current shift and supports paging by email, Slack, SMS, phone call and mobile app, so the Slack mention and the actual page reach the same person.

Make reassignment a one click action

Even with perfect ownership data, some alerts will land with the wrong team, especially during reorgs. Make it trivial to hand an alert to another rotation from wherever it was received, and log every handoff. Handoffs are your best signal about stale ownership data: if checkout keeps forwarding a class of alerts to payouts, the catalog entry is wrong and should be fixed, not worked around.

Keeping service ownership and alert routing accurate over time

Ownership data rots. Services are created, renamed, split, merged and retired constantly, and alert routing silently degrades with every change nobody recorded. The fix is to make ownership maintenance part of normal engineering work rather than an annual cleanup project.

Tie ownership changes to the changes that cause them

  • New service template: your service scaffolding should require an owner and rotation before the service can deploy. No owner, no production.
  • Team changes: when a team splits or merges, the reorg checklist should include reassigning every service and rotation the old team owned.
  • Service retirement: decommissioning a service should delete its alerts and its ownership entry in the same change, so you never page anyone for a service that no longer exists.
  • Departures: when someone leaves, check that no rotation or route resolves to them individually.

Measure routing health

A handful of simple numbers, reviewed monthly, tell you whether alert routing is working:

  • Unlabelled alert rules: the count of monitors with no service label. Target zero.
  • Catch all volume: alerts that reached the fallback route. Each one is a data bug.
  • Handoff rate: the share of alerts reassigned to another rotation after the first page. A high rate for one service points at bad ownership data.
  • Unowned services: services emitting telemetry with no catalog entry. These are the next orphaned alerts waiting to happen.
  • Empty rotations: rotations with no current on call person. Any route pointing at one is effectively silent.

Test routes the way you test code

Routing configs are code with production consequences, so test them. Many tools can simulate which receiver an alert with given labels would reach. Build a small test suite of representative alerts (one per tier, one per shared service, one deliberately unlabelled) and run it on every routing change. Pair that with periodic real test pages during business hours, so you know the phone call actually rings, not just that the config looks right.

A worked example: moving a 60 person team to ownership routing

Consider a typical engineering organisation of about sixty engineers across eight product teams and a platform team. They run one metrics and APM tool, cloud native alarms, and a synthetic uptime checker. Today, all cloud alarms go to the platform channel, APM monitors go to whichever channel their creator chose, and synthetic checks page a single "production" rotation that everyone dreads.

Week one: inventory

They export every alert rule from all three tools and list the destination of each. Roughly a fifth have no clear owner, and a dozen point at channels that were archived. They create an ownership file listing about forty services, each with an owning team, a rotation and a tier. Building the file takes a few afternoons of asking "who would you call if this broke?" in team channels.

Week two: labels and routes

They add a service tag to every monitor, starting with tier one services. They replace the tangle of per monitor destinations with a short routing tree: security override, then service lookup, then owning team fallback, then a platform catch all. The dreaded "production" rotation is retired; its synthetic checks now route to the owner of each checked endpoint.

Week three onwards: enforcement and review

A CI check now rejects alert rules without a valid service label. The platform team reviews catch all alerts every Monday and fixes the ownership gaps behind them. Within a couple of months the catch all route is nearly silent, product teams handle their own pages, and the platform rotation only hears about the platform. The total number of alerts did not change much. Who received them did, and that is what made nights quieter.

Key takeaways for alert routing by service ownership

  • Write ownership down first. A machine readable record of service, team, rotation, tier and channel is the foundation. Routing is just a lookup against it.
  • Alerts carry the service, not the destination. Reuse the service name your telemetry already emits, and make it mandatory on every alert rule.
  • Route to rotations, never people. Rotations survive holidays, departures and reorgs. Sync them to Slack user groups so mentions and pages agree.
  • Keep routing and escalation separate. Routing picks the first responder; the escalation policy handles everything after.
  • Every catch all alert is a bug. Page a real rotation so nothing is lost, then fix the ownership data behind it.
  • Shared layers need explicit rules. Causes go to the platform owner, symptoms go to consuming services, vendors get an owning service.
  • Measure and test. Track unlabelled rules, catch all volume and handoff rate, and test routing changes before they ship.

Conclusion

Alert routing by service ownership is less about clever configuration and more about discipline: knowing who owns what, writing it down where machines can read it, and making every alert carry enough identity to find its owner. Once that foundation exists, the routing rules shrink to a few lines, reorgs stop breaking your pager, and the platform team stops being the default answer to every unowned alarm.

Start small. Pick your tier one services this week, record their owners and rotations, label their alerts and point them at the right people. Add a catch all that pages a real human and generates a ticket. Then expand service by service. If your team already lives in Slack and you want rotations, user group sync and multi channel paging in one place, Pagerly offers per team pricing, listed on its pricing page.