StoicBuilder

HandbookXII the SpeculaAlerting

XIIthe Specula, Watch production

Alerting

1 min readUpdated 28 November

In plain words

Alerting turns your metrics and SLOs into notifications, paging someone urgently when users are being hurt right now, and opening a ticket for anything that can wait until working hours.

Where you see it

At 02:14 PagerDuty rings the on-call engineer's phone: checkout is failing fast enough to spend a month's error budget in two days. A database disk at 80 percent, by contrast, opens a ticket for the morning instead of a page.

alerts/checkout.yamlconfig
- alert: CheckoutErrorBudgetBurn expr: | sum(rate(http_requests_total{route="/api/checkout",status=~"5.."}[1h])) / sum(rate(http_requests_total{route="/api/checkout"}[1h])) > (14.4 * 0.001) for: 5m labels: { severity: page } annotations: { runbook: "https://wiki.harbor.example/runbooks/checkout" }
Pages when checkout errors burn a 99.9 percent budget 14.4 times faster than planned, for five minutes in a row, and links the runbook.

What goes wrong

  1. Paging on causes instead of symptoms

    High CPU or one restarted container wakes someone, though no user noticed anything. Page on symptoms users feel, such as errors and latency against the SLO, and look at causes once you're awake.

  2. Alerts nobody can act on

    An alert that fires every night and clears itself teaches the team to swipe it away. Every page needs a clear action and a runbook link; if there's nothing to do, delete it or make it a ticket.

  3. Firing on one bad minute

    A single spike of errors at 3 a.m. wakes someone for nothing. Use a for: duration or burn-rate windows, so only sustained trouble pages.

What to tell your agent

Copy this into Lovable, Bolt, Cursor or any agent
Review our alert rules and sort each one into page, ticket or delete. Pages must be based on user-facing symptoms tied to our SLOs, fire only on sustained problems, and link a runbook that says what to check first.

Quick check

Sign in to earn +10 XP for it

Which of these should wake Harbor's on-call engineer at 3 a.m.?

Got a prompt that touches alerting?

Paste it. You get a better prompt first, then the cards that explain it.

Check your own prompt

Free, no sign-up.