Video in progress

An alert fires, but nobody knows which team it belongs to. In an organization with hundreds of services, how do you organize alert ownership?

Every service is registered in a service catalog with its owner, on-call rotation and criticality level, and this information is tied to telemetry through service.name. A script generates the Alertmanager routing from that catalog. A service without an owner doesn't go to prod.

📖 Answer

An alert without an owner is the worst alert: it either goes to everyone and everyone thinks "someone else will look", or it goes to nobody.

The structure:

  1. The service catalog is the single source of truth. Backstage or plain YAML in a repository:
apiVersion: backstage.io/v1alpha1
kind: Component
metadata:
  name: payment-service
  annotations:
    pagerduty.com/service-id: P12345
spec:
  owner: team-payments
  lifecycle: production
  system: checkout
  1. Tie it to telemetry: every service emits service.name as a standard resource attribute, and CI checks that it matches the name in the catalog. The service label is mandatory on alerts.

  2. Routing generation: the Alertmanager route tree is generated from the catalog by a script: service → team → receiver. If a team renames itself or hands a service to another team, the routing updates itself. A hand-written routing configuration goes stale after a year.

  3. Fallback: an alert with no identified owner goes to a special "triage" queue, and every alert there is a ticket to fix the catalog.

  4. A gate: the deploy pipeline doesn't release a service to prod if it has no owner and on-call in the catalog.

A tricky case is shared infrastructure alerts: the DB cluster, Kafka, the ingress. The platform team owns them, but the impact is on other teams. Here the routing goes two ways: the platform team gets the page, and the affected service teams get a notification (not a page), so they don't waste time investigating the same problem in parallel.

It is also useful to measure ownership: how many alerts a month landed in the "triage" queue. That number approaching zero shows the catalog is really working.