Incident management for Prometheus Alertmanager

Alerts in. Someone on it. Nothing lost.

Terdut turns Alertmanager alerts into incidents with an on-call rota, escalation, a full timeline and real MTTA/MTTR. One binary, one Postgres, a web UI, a terminal client and a Kubernetes operator.

The Terdut incident queue showing triggered, acknowledged and snoozed incidents

How it works

Alertmanager already groups and routes your alerts. Terdut takes it from there and makes sure a person owns each one.

Diagram: Alertmanager sends a webhook to Terdut, which creates an incident, pages the person on call through ntfy, and escalates if nobody acknowledges.
  1. Grouped by AlertmanagerIncidents follow Alertmanager's own groupKey. Several clusters can feed one team without cross-talk.
  2. Paged to the right personThe new incident goes to whoever is on call, with an Acknowledge button right in the notification.
  3. Escalated if nobody answersEscalation ladders move to the next level on a timeout, then fall back to a channel you choose.

Add it to Alertmanager in three steps

No adapter, no exporter, no agent. Terdut speaks Alertmanager's webhook format natively.

1

Mint an integration key

A team owner creates a key. It is shown once and only a hash is stored.

curl -X POST https://terdut.example.com/api/teams/1/integrations \
  -H "Authorization: Bearer $TERDUT_API_KEY" \
  -d '{"name":"prod alertmanager"}'
2

Add a receiver

Point a webhook at the URL you got back and route to it.

receivers:
  - name: terdut
    webhook_configs:
      - url:
          https://terdut.example.com/api/integrations/<key>/alertmanager
        send_resolved: true
route:
  receiver: terdut
3

Reload. That's it.

The next firing alert becomes an incident and pages whoever is on call.

$ kill -HUP $(pidof alertmanager)
✓ triggered  HighErrorRate  platform
✓ paged      alice (via ntfy)

Running Alertmanager 0.26 or later? Keep the URL out of your config with url_file.

Everything between the alert and the fix

Built for the team that gets paged, on a laptop at the desk or a phone in the dark.

A queue you can triage in seconds

Acknowledge, assign, snooze, note and resolve, with bulk actions and Undo. Snooze is the non-destructive "not now"; resolve is final.

Incident queue in dark mode

Every incident has a timeline

Who was notified and how, who acknowledged, every note and state change, plus graphs from the alert's Prometheus, all on one page.

Incident page with timeline and notes

Know what changed

Log releases, changes, maintenance windows and outages as events. Attach the incidents they caused and star the first domino, so the next person sees the cause, not just the symptoms.

Events list with a release that has three attached incidents

A rota each team owns

Each team keeps its own on-call calendar. New incidents go to whoever is on call today, and everyone can see who is next.

On-call calendar

Escalation that doesn't give up

When a level's wait passes and nobody has acknowledged, the next level is paged. The ladder can repeat, and a fallback channel catches whatever is left. Acknowledge or resolve and it stops; snooze pauses it.

An escalation ladder with two levels and a fallback

Notices when the alerts stop

A dead man's switch watches for an alert that should always be there, like Watchdog. If the heartbeat goes quiet for longer than its timeout, Terdut opens an incident. Silence becomes a signal.

Two healthy dead man's switches with their last heartbeat times

Know your numbers

MTTA and MTTR, incident counts, and alert frequency by name, hour and day, so you can see which alerts are noise.

Statistics page

REST API

Everything the UIs do, with API keys and service accounts for automation.

Teams

Each team owns its queue, rota and alert sources, and people see only their own.

Single sign-on

OIDC with group-to-team mapping, plus a device flow for terminals.

Phone first

Installable web app that follows your system's dark mode.

Incident queue on a phone Incident page on a phone

Or stay in the terminal

The terminal client works the queue, timeline, on-call calendar and stats over the same API as the web UI.

Terdut terminal client showing the incident queue

Teams set themselves up, through git

The Terdut operator exposes configuration as Kubernetes objects. A team commits a few lines of YAML next to its app. No tickets, no admin clicking through forms.

Diagram: a platform team deploys TerdutServer once; each team commits a TerdutTeam and TerdutAlertSource, and the operator configures the server and writes the webhook URL into a Secret.

TerdutServer

The platform team runs the server once. The operator handles Deployment, Service and database wiring.

kind: TerdutServer
spec:
  replicas: 2
  networking:
    hostname: terdut.example.com
  database:
    dsn: postgres://terdut@db/terdut

TerdutTeam

Each team declares its name, escalation ladder and dead man's switches.

kind: TerdutTeam
spec:
  serverRef: {name: terdut}
  displayName: Platform
  escalation:
    levels:
      - timeout: 5m
        targets:
          - {kind: oncall}
      - timeout: 10m
        targets:
          - {kind: user, username: maya}
  deadmanSwitches:
    - name: watchdog
      matcher: alertname=Watchdog
      timeout: 15m

TerdutAlertSource

Ask for an Alertmanager source. The webhook URL lands in a Secret, never in the spec.

kind: TerdutAlertSource
spec:
  teamRef: {name: platform}
  kind: alertmanager
  name: platform-alertmanager

# status.webhookURLSecretRef
#   -> Secret with url and key
  • Cross-namespace access is opt-in: the server lists which teams are allowed.
  • Delete a switch from the YAML and the operator removes it.
  • Bring your own Gateway API or Istio route; the operator never creates ingress.

Get started

Install the server, create the first user, add the receiver.

With Helm

helm upgrade --install terdut-server \
  oci://<registry>/terdut-server \
  --set database.dsn="$TERDUT_DB_DSN"

Runs as a single scratch container with a Postgres database.

With the operator

kubectl apply -f terdut-operator.yaml
kubectl apply -f terdutserver.yaml

Then give each team a TerdutTeam and TerdutAlertSource.

Then create the first user, add the Alertmanager receiver from above, and fire a test alert.

Questions

Do I need to change my alert rules?

No. Terdut reads what Alertmanager already sends. Routing, grouping and inhibition stay in Alertmanager.

How are notifications delivered?

Through pluggable notification channels. ntfy is supported today, with an Acknowledge action on the notification where the channel can show one.

Can several clusters feed one team?

Yes. Incidents are correlated by Alertmanager's groupKey, so clusters do not interfere with each other.

What does it need to run?

One binary and one Postgres database. The web UI and REST API are served by the same process.

Is there an API?

Yes. Everything the web UI and terminal client do goes through the REST API, with API keys and service accounts for automation.

How do users sign in?

Passwords or OIDC single sign-on with group-to-team mapping. Terminal clients use a device flow.

Put a name on every alert.

Get started