Skip to content
Tech Interview Prep
Technical interview guide

On-Call & Alerting Design

Designing alerts that page for what actually needs a human, and structuring on-call sustainably.

Minutes to read
3
Practice MCQs
25
Interview Q&A
25
Edition
v6
Editorial status
Reviewed

Scope: Google SRE, Prometheus, Alertmanager, OpenTelemetry, and NIST guidance current 2026-08-31.

Interview Q&A

Treat each question like a live interview question: answer out loud first (structure, assumptions, tradeoffs), then open the model answer to spot gaps and rehearse a tighter follow-up.

Curated: · Written: · Reviewed:

25 questions

Q&A-2

Decide whether a condition should page, ticket, or remain telemetry.

Answer

The rule. Page only when three things hold at once: the condition is causing user-visible harm right now, a human action changes the outcome, and the harm grows faster than the time it takes a responder to act. If harm is real but the fix can wait for business hours, it's a ticket. If no human action changes anything, it's telemetry: a dashboard, a log query, a metric.

Why confidence gates paging. A page costs a responder 30–60 minutes of attention and, at 3am, a night of sleep. That cost is only worth paying when the page is likely to be real and actionable. Below roughly a 1-in-5 true-positive rate, responders start acking without reading: the page becomes noise and the next real one gets missed. The confidence gate isn't about being sure; it's about protecting the channel's signal value.

Time-to-harm vs responder latency. If a disk fills at 1%/day from 78%, you have ~22 days: a ticket. If a connection pool saturates and p99 goes from 40ms to 180ms in 90 seconds, you have minutes: a page. The comparison is always harm-rate against ack-plus-mitigate time, not severity in the abstract.

Concrete routing. Using a 99.9% SLO on a checkout API: 30 days = 43,200 minutes, so the error budget is 43.2 minutes/month.

SignalRouteArithmetic
SLO burn 14.4x over 1hPage14.4/720 = 2% of budget in 1h
SLO burn 6x over 6hPage36/720 = 5% of budget in 6h
SLO burn 1x over 3dTicket72/720 = 10% of budget, fixable in hours
Disk 78%, +1%/dayTicket~22 days to full
Cert expires in 45dTicket
p99 +8ms week-over-weekTelemetryno threshold crossed

Tools: Prometheus + Alertmanager for the burn-rate rules, PagerDuty or Grafana OnCall for paging, Jira/Linear for tickets, Grafana/Loki for telemetry.

Failure modes and detection.

  • Flapping: an alert that fires and resolves repeatedly. Count state transitions per alert per hour in Alertmanager; fix with for: 10m and grouping.
  • Unowned tickets rotting: query Jira for issues open >30 days with no assignee. If that count grows, tickets are a graveyard, not a queue.
  • Pages ignored after false positives: if >30% of pages are acked and closed in under 60 seconds, the team has stopped reading. Track ack-to-resolve time.
  • Alert fatigue: pages per shift. Target under 2 per 12h shift; above 5, responders start ignoring.

Trade-offs. A 3-person team can absorb ~2 pages/night before burnout; a follow-the-sun rotation across three regions absorbs more but adds handoff latency and coordination cost. Tickets are cheap but slow: fine for capacity trends, wrong for anything doubling hourly. Telemetry costs nothing but only works if someone queries it; an unread dashboard is a graveyard.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-19

How do you design the alert evaluation engine's state machine: evaluation intervals, pending-to-firing transitions, hysteresis, and flap detection?

Answer

Core (first 90 seconds)

The evaluation engine is stateless per tick: each tick re-evaluates the expression, and the only memory is a per-alert state record keyed by the label set. Every form of hysteresis therefore lives in that state machine, not in the PromQL: an expression cannot see its own previous result.

stateentered whenleft when
inactiveexpression emptyexpression non-empty → pending
pendingexpression non-empty, for not elapsedexpression empty → inactive; for elapsed → firing
firingfor elapsedexpression empty → grace window → resolved
resolvedgrace elapsednotification sent once, state dropped

Clarify two numbers before designing anything: the detection budget (how long a real incident may go unpaged) and the resolution budget (how fast the page must clear once the condition is gone). Those set for and the grace window; the rest follows.

Evaluation interval and detection latency

evaluation_interval is the tick: Prometheus defaults to 1m. for is measured in wall clock from the first non-empty evaluation, but it is only checked on a tick, so effective delay is for rounded up to the next tick, plus the scrape interval, plus Alertmanager's group_wait (default 30s).

Worked target: scrape_interval 15s, evaluation_interval 30s, for: 5m. Worst case from first bad request to page ≈ 5m + 30s + 15s + 30s ≈ 6m15s. The rate(...[5m]) window also dilutes onset: the rule asserts "sustained for 5 minutes", not "5 minutes after onset". Keep evaluation_interval ≤ for/4; for: 30s on a 1m tick is a lie.

Hysteresis

Time-based: keep_firing_for (Prometheus 2.42+) holds firing for a duration after the expression goes empty, so a single-scrape dip doesn't resolve and re-fire. Cheap fix for scrape jitter and briefly-stale series.

Value-based: fire above 0.05, resolve below 0.02. PromQL can't express this in one rule: no memory. You need two rules with different thresholds plus a stateful engine that only resolves on the lower one, a latching recording rule, or an external evaluator (Grafana, Datadog, a custom service) that owns the state. On plain Prometheus, say out loud that you're choosing time-based hysteresis and accepting symmetric thresholds.

yaml groups:

  • name: checkout interval: 30s rules:
    • alert: CheckoutErrorRatioHigh expr: | sum(rate(http_requests_total{job="checkout",code=~"5.."}[5m])) / sum(rate(http_requests_total{job="checkout"}[5m])) > 0.05 for: 5m keep_firing_for: 10m labels: {severity: page, team: checkout}

Flap detection

Neither Prometheus nor Alertmanager detects flapping; they deliver. Count transitions per alert fingerprint in a sliding window, more than 4 fire/resolve transitions in 30m, then stop paging and open a ticket with the transition history. That turns a flapping alert into a work item and is the only signal that the threshold sits on the noise floor.

Failure modes

  • for shorter than the evaluation interval: the alert fires on the first tick or never. Fail CI on for < interval.
  • Series disappears (target down, pod gone): the alert resolves silently. keep_firing_for masks it; add a separate up == 0 rule.
  • Pending timer resets on every gap: an alert true 90% of the time never fires. Count pending→inactive transitions.
  • Prometheus restart or HA pair: state is in-memory and each replica evaluates independently, so pending timers reset and the pair can page twice. Alertmanager dedupes by label set, which covers the second.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-9

Handle an unacknowledged critical page.

Answer

First 90 seconds

An unacknowledged page is a delivery problem, not a "nothing's wrong" signal. The alert fired for a reason; the ack is missing because a human didn't see it, not because the system recovered. So open the alert, read the payload, and start looking at the dashboard yourself. If you're the secondary or the incident commander, you don't wait for the primary's ack: you take ownership.

Then escalate manually instead of waiting out the timer. With a typical policy: page primary, escalate to secondary at 5 minutes, team lead at 10, incident commander at 15, if it's 02:19 and the primary hasn't acked, you hit "escalate now" in PagerDuty ("escalate to next" in Opsgenie) rather than sitting until 02:24. The timer is a floor, not a ceiling. If user impact is confirmed, declare the incident yourself; don't wait for the primary to be the one who declares it.

A worked timeline (example policy, example times)

timeeventwhat it tells you
02:14:03alert fires, high-urgency page to primary (push + SMS + phone call)—
02:14:04push shows delivered, no ackdevice received it; human didn't act
02:19:035-min escalation timeout fires, secondary pagedpolicy working as designed
02:19:40secondary acks, claims incident, opens channelownership is now explicit
02:21secondary confirms user impact on dashboard, declares Sev2incident exists regardless of primary
02:24primary joins. Phone was in Do Not Disturbroot cause is device/attention, not the alert

Why acks get lost

Read the notification log before you guess. PagerDuty records per-notification delivery status, so you can separate "not delivered" (stale phone number, provider outage, SMS filtered) from "delivered but not acked" (Do Not Disturb, focus mode, phone off, asleep, or a fatigued responder who acked and went back to bed). Those need different fixes: the first is a contact-method or provider problem, the second is a schedule or attention problem. A third case is a schedule gap: nobody was actually on call, so the page went to a fallback or nowhere. That shows up as an unassigned slot in the schedule, and it's the one you must fix before the next page.

Trade-offs

Auto-escalation is reliable but timer-bound and can wake people who didn't need to be woken. Manual escalation is fast but depends on someone noticing. Override the timer when you know the primary is unreachable: you're on the bridge, they're not, escalate now. Don't override to skip a level when the secondary is already engaged; that just adds a third responder to the same problem. And protect against duplicate responders: one person claims the incident, one person owns comms, everyone else works in the shared channel. Two people restarting the same service at once is how a partial outage becomes a full one.

Afterward

Distinguish the cause: schedule gap, stale contact, provider outage, device/DND, fatigue, or a rule that paged the wrong person, and test the corrected path with a real page, not a config review. Track MTTA (mean time to acknowledge) per policy; a rising MTTA is the early signal that a schedule or contact method has rotted.

Curated: · Written: · Reviewed:

Difficulty: Medium
Q&A-24

Design an escalation policy with acknowledgement timeouts, secondary and tertiary on-call tiers, and manager escalation: how do you keep it from becoming an escalation storm?

Answer

Escalate on the absence of an acknowledgement, never on the absence of a resolution. That one rule kills most escalation storms: once any human acks the incident, the timer stops and the chain is dead. A hard incident one engineer is actively working must not page a second, third and fourth person just because it is still open.

An escalation policy is a list of (tier, trigger, timeout, action):

tiertriggertimeoutaction
primary on-callpaging-class alert, grouped into one incident5 minpage; ack ends the chain
secondaryno ack from primary+10 minpage secondary, notify primary's lead
tertiary / cross-teamno ack from secondary+15 minpage owning team's backup or adjacent team
managerno ack from tertiary+20 minpage engineering manager, open incident channel

Timeouts must exceed realistic time-to-ack, not time-to-fix. If p50 ack is 90 s and p99 is 4 min, a 5-minute primary timeout is right; a 2-minute one pages the secondary every time someone is in the shower. Measure ack latency per tier and set each timeout above that tier's p95.

Storm mechanics to design against:

  • Fan-out per alert instead of per incident. Forty alerts from one dependency failure, ungrouped, across three tiers is up to 120 pages. Group by service and cluster before escalation so the unit is one incident, and cap the chain at three pages.
  • No ack propagation. Ack must be one idempotent event keyed to the incident and honoured by every channel: push, SMS, phone, chat. If acking in Slack doesn't stop the phone tree, you get duplicate pages.
  • Re-escalation after ack. A flapping alert that re-fires after being acked restarts the chain. Use flap damping and a sane repeat_interval, and require a new incident id, not a new alert instance, to re-arm escalation.
  • Parallel escalation. Never page all tiers at once; that is a broadcast, not an escalation.
  • Escalating tickets. Only paging-class alerts enter the chain; slow-burn tickets go to a queue.

Alertmanager does grouping (group_by, group_wait, group_interval), routing and inhibition (inhibit_rules), but it does not track acknowledgement or run tiered escalation: that state lives in the paging system or your own ack store. Use inhibit_rules to suppress downstream symptoms while the cause fires, so the chain only ever carries the root incident.

Worked trace, one incident: 02:14 alert fires and groups with 12 siblings; 02:14 primary paged; 02:17 primary acks. Chain ends, one page total. Without an ack: 02:19 secondary, 02:24 tertiary, 02:29 manager. Four pages for one incident, which is the cap, not the norm.

Failure modes and how you see them: a tier that never acks (its on-call is the same person as the tier below, or lacks access) shows as a 0% ack rate for that tier; a manager tier paged for every incident shows as escalation rate near 100% and desensitises the manager; a chain that escalates on resolution failure shows as pages-per-incident above three with high ack rates. Track pages per incident, escalation rate per tier, and the split between no-ack and no-resolution escalations: the second should be near zero.

Don't escalate at all for a single-person rotation or a service with no secondary; there, escalate straight to a manager or peer team and say so in the policy.

Curated: · Written: · Reviewed:

Difficulty: Medium
Q&A-6

Design a safe silence workflow.

Answer

Assumptions: Prometheus + Alertmanager for alerting, PagerDuty for paging, silences as the suppression primitive. A silence is a temporary, audited risk acceptance, not a fix.

Core answer

A safe silence workflow has four properties: authorized and attributable, scoped by exact matchers, time-bounded, and observable. Creation goes through a reviewed path: a PR to a silences-as-code repo, or a bot that refuses a silence without an incident/change ID, an owner, and a reason. The silence itself carries createdBy, comment, startsAt/endsAt, and matchers that name specific labels. Before it is accepted, the workflow previews which currently-firing alerts it would match and blocks anything that would silence a protected route (security, on-call-critical). Active silences are surfaced next to service health, and every create/modify/delete is audited.

Why the mechanisms behave this way

Alertmanager matches a silence to an alert when every matcher matches the alert's labels. alertname="HighErrorRate" + service="checkout" + env="prod" pins one alert family. A regex matcher like service=~".+" matches everything, and a silence with zero matchers matches all alerts: that is the wildcard to reject. So the guard is mechanical: reject empty matcher sets, and reject any matcher that matches more than a small fraction of currently-firing alerts.

Expiry is absolute: when endsAt passes, the silence stops suppressing. But the alert is still firing in Prometheus, so Alertmanager re-notifies on the next notification cycle: bounded by group_interval (default 5m) and repeat_interval (default 4h). Delivery restoration is therefore not instant; worst case you wait a repeat_interval. That is exactly why you test it.

Shell
amtool silence add \
  alertname="HighErrorRate" service="checkout" env="prod" \
  --duration=2h --author="oncall@example.com" \
  --comment="INC-4821 deploy rollback"

Failure modes

FailureHow it happensDetectionCost
Stale silence masks a pager outageendsAt set to +30d, never revisitedDashboard of active silences older than N days; alert on far-future endsAtA real outage pages nobody
Matcher typo silences the wrong teamteam=~"plat.*" matches platform and platform-srePreview count = 0 (useless) or ≫ expectedWrong team's pages suppressed
Expiry doesn't restore deliveryAlert resolved, or repeat_interval gapSynthetic canary alert that must page within repeat_interval after expirySilent gap after maintenance

Blast radius is worth arithmetic: service=~"check.*" over a 200-service fleet can match a dozen services; at two rules each that is ~24 alert rules suppressed instead of the 2 you intended.

Trade-offs

A recurring silence is sometimes the right call: if an alert is genuinely noisy-but-real (a known slow batch job), a scheduled, ticketed silence is cheaper than rewriting the alert. The deciding criterion is whether the underlying condition is expected and bounded. If yes, automate the silence as a planned maintenance window in code. If no, fix the alert: a silence there is alert debt. Never indefinite: an indefinite silence is an untracked outage.

Curated: · Written: · Reviewed:

Difficulty: Medium
Q&A-25

How do you design the alert notification delivery path to guarantee at-least-once delivery, ordering, idempotency, and retry behavior across multiple channels?

Answer

Start with the contract, because three of the four words in the question are unachievable as stated. PagerDuty, Slack, SMS and email are separate systems with separate clocks and no shared transaction, so exactly-once and global ordering are off the table. The design target is: at-least-once per channel, ordering only within an incident, idempotency enforced at the receiver, and retries bounded with a dead-letter path plus a meta-alert when delivery itself fails.

Pipeline. Alert source → Alertmanager (inhibit → silence → route → group → dedup) → durable notification log → per-channel dispatcher → sender with retry queue → channel adapter → delivery receipt.

Dedup and durable state. Alertmanager fingerprints alerts by label set and groups them by group_by. The notification log (nflog, a BoltDB file under --storage.path) records the last notification per (receiver, group). That is what makes repeat_interval (default 4h) re-notify instead of re-sending on every evaluation, and what lets group_wait (30s) and group_interval (5m) collapse a burst into one page. Lose the nflog (wiped volume, container with no persistent storage) and every firing alert re-pages on restart. Persist it, and treat its loss as an incident.

Ordering. Don't promise global order. Give each group a monotonic sequence number, and carry startsAt/endsAt plus status on every notification. The receiver keeps the highest sequence per incident key and drops anything older. This is what prevents the classic resolved-before-firing: a firing send that failed and retried for 40 seconds can land after the resolved. Without a sequence, the on-call sees "resolved" and stands down while the incident is still live.

Idempotency. Derive a stable key from (receiver, group key, alert fingerprint, status, sequence) and have every adapter dedupe on it with a TTL longer than the maximum retry window. PagerDuty's dedup_key, a Slack thread_ts, an email Message-ID: same idea. The sender must be able to retry a request whose response it never saw without creating a second page.

go // stable across retries, unique per logical notification key := sha256(fmt.Sprintf("%s|%s|%s|%s|%d", receiver, groupKey, alertFP, status, seq))

switch { case resp.StatusCode >= 500, errors.Is(err, ErrTimeout), resp.StatusCode == 429: return retryable // backoff 1s,2s,4s,8s,16s + full jitter, max 5 attempts case resp.StatusCode >= 400: return permanent // straight to DLQ, page the platform team }

Retry. Exponential backoff with full jitter, capped attempts, and classification. 5xx, timeouts and 429-with-Retry-After are retryable; 401/403/404 and schema-invalid payloads are not: retrying a bad token five times only delays the DLQ. Use per-channel queues so a wedged SMS provider can't block Slack, and a priority lane so a storm of warnings can't sit in front of the one critical page.

guaranteemechanismfailure mode if missing
at-least-oncedurable nflog + retry queue + DLQnflog on ephemeral disk → re-page storm on restart
ordering (per incident)sequence + startsAt/endsAt, receiver drops staleresolved lands before firing, on-call stands down
idempotencystable dedup key, receiver TTLduplicate pages when a timed-out send is retried
retrybackoff + jitter, 4xx vs 5xx split, DLQretry amplification during a provider outage

Arithmetic. Five attempts at 1/2/4/8/16s is 31 seconds worst case per notification. A ten-minute provider outage exhausts that, so DLQ depth > 0 for five minutes must itself page the platform team: an alerting system that fails silently is the worst failure mode available.

HA caveat. Two Alertmanager replicas gossip silences and notification-log state, but that is best-effort: a partition or restart can still produce a duplicate. Design receivers to be idempotent rather than assuming single delivery.

Other failure modes worth naming: retry amplification when every sender retries in lockstep (add jitter, cap concurrency); head-of-line blocking (per-channel queues); adapters that return 200 and never deliver (track delivery receipts and acks, not HTTP status); clock skew across senders (order by sequence, not timestamps).

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-7

Test the full alert delivery path.

Answer

Assumptions first. Prometheus scraping and evaluating every 1m, Alertmanager with default group_wait: 30s, group_interval: 5m, repeat_interval: 4h, resolve_timeout: 5m, and a paging provider (PagerDuty Events API v2 or equivalent) in front of a rotation with a 5-minute ack SLA. If your stack differs the hops change; the method doesn't.

The answer. Inject one synthetic alert with a unique label (alertname="DeliveryPathProbe", probe_id="<uuid>") routed to a dedicated receiver that mirrors the real on-call route, then walk it hop by hop and check the specific signal that proves each hop happened. The test ends at a human ack with a timestamp, not at a 200 from the provider API. A green API call proves the provider accepted the payload; it says nothing about whether a push reached a device, whether notifications were enabled on it, or whether anyone read the page.

hopwhat proves itwhere to look
collectiontarget up, rule evaluatedup, ALERTS{alertstate="pending"}
pending → firingfor: elapsedALERTS_FOR_STATE, ALERTS{alertstate="firing"}
grouping / inhibitionpresent in Alertmanager, not suppressedAlertmanager UI, alertmanager_alerts
notificationsend attempted and succeededalertmanager_notifications_total{integration="pagerduty"} vs ..._failed_total
provider acceptincident created under the probe's dedup keyprovider incident ID
device deliverypush deliveredprovider delivery log
human ackack timestampprovider ack, on-call log
escalationsecond responder pagedescalation record
resolutionalert cleared, incident closedALERTS gone, resolve_timeout elapsed

Timing, worked (hypothetical figures). With scrape_interval: 1m and for: 2m, a condition that becomes true at T=0 is observed by T+1m at the latest and fires at T+3m. group_wait: 30s adds half a minute before the first notification, so the page lands around T+3m30s. Against a 5-minute ack SLA that leaves roughly 90 seconds of slack: that is the number to defend when someone asks whether the path is fast enough.

Trade-offs. Synthetic injection is safe and repeatable, but it bypasses the real rule's expression, so a broken PromQL expression in the production rule stays broken while your probe passes. Replaying a captured real alert payload exercises the actual rule but risks paging real people. The split that works: a synthetic probe for the transport path on a schedule, plus a periodic replay of a recorded real payload into a staging receiver to catch expression regressions. Staging proves config, not routing to real devices; a production probe proves the real path but must live on a dedicated low-severity route that mirrors the on-call route without joining the primary rotation. Don't run this in production if you can't get a human to ack, and never let the probe share a dedup key with a real alert: you'll merge two incidents into one.

Failure modes and how you catch them.

  • Rule never fires: for: is longer than the condition holds, or the expression is wrong. Symptom: ALERTS{alertstate="pending"} never appears. Check ALERTS_FOR_STATE.
  • Grouping swallows it: the probe lands in a group with a noisy alert and inherits that group's group_interval. Symptom: alert visible in Alertmanager, notification counter flat.
  • Inhibition: a higher-severity alert inhibits the probe. Symptom: alertmanager_alerts shows it, no send.
  • Provider accepts, device never rings: stale device token or notifications disabled. Symptom: incident exists, delivery log shows no push.
  • Quiet hours or holiday: the route falls through to a default receiver nobody watches. Symptom: notification sent, but the receiver label on the notification metric isn't the on-call one.
  • Missing telemetry: the probe's own metrics are absent, so "no alert" and "no monitoring" look identical. Fix with a dead-man's-switch alert that fires when the probe metric disappears.

Close the loop. Resolve the signal, confirm ALERTS clears, confirm the incident closes after resolve_timeout, and confirm no silence or inhibition from the test is left behind. Then record the probe ID and the timestamps at each hop (collection, firing, notification, ack, escalation) so the next run has a baseline to compare against.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-10

How do you implement alert deduplication, grouping, and rate-limiting at scale during an alert storm?

Answer

To absorb an alert storm without blinding on-call responders or dropping distinct failure modes, an alerting pipeline must stage deduplication, aggregation grouping, and delivery rate-limiting as distinct layers between the rule-evaluation engine and the notification dispatchers.

1. Ingestion Fingerprinting and Deduplication

Rule evaluators (such as Prometheus instances evaluated in redundant HA pairs) evaluate rules every 15–30 seconds. If an evaluation matches across two replicas, they emit two active alerts with identical identity labels (for example, alertname, service, cluster, env, tenant).

  • Deduplication Key: Compute a deterministic 64-bit hash (such as FNV-1a or SipHash) over the sorted tuple of alerting identity labels. Dynamic annotations (e.g., description, current_value, timestamp) are excluded from the hash.
  • State Store: Maintain an in-memory alert state table synced across alerting router replicas using a gossip protocol (e.g., Alertmanager mesh using HashiCorp Memberlist) or a replicated distributed KV store. When an alert arrives matching an existing fingerprint whose state is already Firing, update its EndsAt and payload without generating a new dispatch event.

2. Hierarchical Grouping and Buffer Windows

Grouping aggregates multiple distinct alert fingerprints into a single notification batch by routing labels (e.g., group_by: [cluster, service, alertname]). Two time parameters govern the buffer:

  • group_wait (e.g., 30s): The time to wait before sending the initial notification for a newly created group, allowing sibling alerts triggered by the same underlying incident to aggregate.
  • group_interval (e.g., 5m): The minimum delay before sending an updated notification for an already-notified group when new fingerprints join it.
Incoming Alerts:  [DiskPressure(node-1)] -- 10s --> [DiskPressure(node-2)] -- 15s --> [DiskPressure(node-3)]
                  |                                                                     |
Timeline:         0s                               30s (group_wait expires)            60s
                  |                                |
Group Buffer:     Holds node-1, waits... --------> Dispatches 1 notification (node-1, node-2, node-3)

3. Rate-Limiting and Backpressure Protections

During a network partition, a 10,000-node cluster can generate 30,000 alert instances within 60 seconds. Grouping alone can yield thousands of groups if grouped by instance.

MechanismImplementation TargetFailure Mode Addressed
Fallback Coarse GroupingPromote grouping key to [cluster, alertname] when active group count per route exceeds threshold (e.g., > 50 groups).Label explosion (e.g., instance or pod label causing one notification per host).
Token-Bucket Rate LimiterDownstream dispatch queue per integration (e.g., PagerDuty, Slack, Webhook): refill rate 1 msg/sec, burst capacity 10.Downstream webhook 429 throttling and dropped payload buffers.
Inhibition RulesSuppress dependent alerts when parent alert is firing (e.g., NodeNetworkDown inhibits InstanceDown and KubeletDown).Downstream cascading noise from a known single root cause.

Failure Modes & Guarantees

  • Split-Brain Mesh: If gossip partitions, both Alertmanager replicas independently execute group_wait and notify PagerDuty. Deduplication at the vendor level must use the routing group fingerprint as the deduplication token/incident key.
  • Starvation via Long Group Wait: Setting group_wait too high (e.g., > 5m) delays P1 pages. P1 service-level objective (SLO) burn-rate alerts must bypass broad grouping routes and use a tight group_wait: 0s with a dedicated grouping key ([alertname, severity]).

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-16

Design alert routing for a multi-team platform.

Answer

Assume ~120 Kubernetes services, Prometheus plus a two-replica Alertmanager, PagerDuty for pages, Slack for the ticket tier, and every workload carrying team, service and tier labels generated in CI from the service catalog. The catalog is the source of truth; a team label that is confidently wrong pages the wrong person, so "unowned" has to be a first-class value, not a missing label.

The policy. One alert, one accountable owner. Route on the catalog-derived team label, never a channel name. Decide page versus ticket by SLO burn rate, not by how alarming the wording is. Fall back to the platform rota, never to a broadcast channel. Inhibit only along edges you can prove, and test route changes like code.

YAML
route:
  receiver: pd-platform-infra           # fallback, never a shared channel
  group_by: [alertname, cluster, service, team]
  group_wait: 30s
  group_interval: 5m
  repeat_interval: 4h
  routes:
    - matchers: ['severity="ticket"']          # slow burn -> Slack only
      receiver: slack-team-channel
      repeat_interval: 24h
    - matchers: ['severity="page"', 'team!=""']
      receiver: pd-per-team                     # one child route per team, generated from the catalog
    - matchers: ['severity="page"', 'team=""']  # missing or blank ownership
      receiver: pd-platform-infra
inhibit_rules:
  - source_matchers: ['alertname="NodeNotReady"']
    target_matchers: ['severity="page"']
    equal: [cluster, node]

Mechanism: inhibition is evaluated at dispatch, not at ingest. A suppressed alert stays in Alertmanager's state and names its suppressor under status.inhibitedBy in GET /api/v2/alerts, so the evidence survives the page that never went out; once the source resolves it pages at the next group_interval if it is still firing. group_by is not formatting: Alertmanager sends the group key hash as the PagerDuty dedup_key, so changing it splits or merges real incidents.

Worked trace. Node ip-10-4-7-3 in eu-west-1 goes NotReady at 03:12. NodeNotReady{cluster="eu-west-1",node="ip-10-4-7-3",team="platform-infra"} and KubePodNotReady{cluster="eu-west-1",node="ip-10-4-7-3",service="checkout-api",team="payments"} both fire, past their for: 5m. At t+30s one page goes out, to platform-infra. The payments alert is suppressed: visible, not paged. If the node recovers while the pod stays NotReady, the edge lifts and payments is paged at the next 5m group_interval.

Make that edge unreliable, equal: [cluster] with a broad target matcher, and one NotReady node silences every page in eu-west-1, including an unrelated payments latency page, for as long as it stays down. Nobody is paged and the suppressed alert is easy to miss. So keep each edge inside one failure domain, use only equal labels written by the same source with the same meaning, and alert nightly on any alert suppressed by another team's alert for more than 30 minutes.

OptionWins whenBreaks when
Central platform rota for everythingunder ~15 services, or no service teams yetplatform lacks domain context; page volume scales with service count
Catalog-driven per-team (chosen)enough services with real teamsa team under ~6 engineers cannot staff a rotation; unowned services page nobody
Broadcast to a shared channelnever for pages; fine for the ticket tierfour teams see it, none acks; no auditable acknowledge

Criteria: who can change the failing thing, and how fast the value of acting decays. One payments team with 9 paging rules produced 42 PagerDuty incidents in four weeks; the top 3 rules accounted for 31 of them, and moving those to the ticket tier left 11 a week. That was the fix, not a reroute. Target at most two actionable pages per 12-hour shift for a primary; page on fast burn (1h window, 5m short window, 14.4x = 2% of a 30-day budget) and ticket slow burn (3d/6h, 1x = 10%).

Route changes go through CI: promtool check config for the rules, amtool check-config alertmanager.yml, and amtool config routes test --config.file=alertmanager.yml team=payments severity=page to print the receiver an alert would really hit. After a reorg, one synthetic page per critical path, acked by whoever PagerDuty says is on call, is the only test that catches a stale schedule. A Watchdog alert that always fires into a null receiver, watched by an off-platform heartbeat, catches Alertmanager itself being down.

What would change this: under ~15 services or a single ops team, collapse to the central rota. A team below roughly six engineers gets per-team pages only for its critical tier. And a page nobody can act on is a detection problem, not a routing one: delete the rule or drop it a tier.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-14

Design low-volume correctness alerts.

Answer

Low-volume correctness alerts are for failures that happen a handful of times a day but each one is material: a double charge, a lost payment, a duplicate shipment, an unauthorized access. Rate-based SLOs like error rate > 1% over 5 minutes will never fire because the denominator is millions of requests and the numerator is two. So I alert on counts or any-event, not rates.

Assume we have a stream of business events (Kafka topic), a reconciliation job that compares control totals, and a metrics backend like Prometheus. I emit a counter per invariant violation, tagged with journey, tenant, and a business key. The alert rule is: sum by (journey, tenant) (increase(correctness_violation_total[5m])) >= 1. That fires on a single violation. To avoid paging on the same incident repeatedly, I deduplicate in Alertmanager by the business key: e.g., group_by: [business_key] with repeat_interval: 4h (the Alertmanager default). I route by journey: payment violations page the payments on-call, shipment violations page logistics. I include provenance: the alert payload links to the exact event IDs, trace IDs, and the reconciliation report. I protect sensitive data by keeping PII out of the alert payload and putting it in a restricted evidence store.

Why any-event? Because one lost payment is a P1. But any-event can be noisy if the invariant is flaky. So I use a two-tier: a warning to Slack for count >= 1 in 5m, and a page for count >= 1 in 5m AND (business impact high OR count >= 3 in 1h). The deciding criterion is materiality: if one occurrence costs more than, say, $50 or violates security, page immediately. If it's a minor data glitch, count-based with a threshold.

StrategyFires onGood forBad for
Rate-basederror rate > 1% over 5mhigh-volume, noisy failureslow-volume correctness
Count-basedcount >= N over windowlow-volume with thresholdsingle critical event
Any-eventcount >= 1 over windowsecurity, money movementflaky invariants

Failure modes:

  • Missing telemetry: the alert never fires because the metric isn't emitted. Detect with a heartbeat: absent(correctness_violation_total[10m]) or a reconciliation job that reports its own liveness.
  • Delayed reconciliation: the alert fires late. Monitor reconciliation lag: histogram_quantile(0.99, reconciliation_lag_seconds) > 300.
  • False positive: alert fires on known-good state. Validate by running the invariant against a canary or historical data before enabling.
  • Dedup failure: same incident pages repeatedly. Track alert-to-incident ratio.
  • Sensitive data leak: evidence includes PII. Scan alert payloads for PII patterns.

Worked trace: A customer is charged twice for order 123. Event 1: charge $50. Event 2: charge $50. Reconciliation job sums charges for order 123 and gets $100, but the order total is $50. It emits correctness_violation_total{journey="payment", tenant="acme", business_key="order_123"}. Prometheus evaluates increase(...[5m]) >= 1 and fires. Alertmanager groups by business_key, so only one page. The page includes the two event IDs and the reconciliation report. On-call opens the restricted evidence store, sees the duplicate, refunds, and resolves. The alert resolves when the counter stops increasing for 5m.

Curated: · Written: · Reviewed:

Difficulty: Medium
Q&A-3

Design multiwindow burn-rate alerts for an SLO.

Answer

Assumptions I'd state first: a rolling 30-day availability SLO at 99.9%, measured as successful requests over total requests, roughly 1000 rps, with an on-call rota for paging and a ticket queue for slower work.

Core design. Burn rate is observed error rate divided by allowed error rate. At 99.9% the allowed error rate is 0.1%, so 1x means a 0.1% error rate and exhausts the budget in exactly the 30-day window; 14.4x means 1.44% errors, which consumes 2% of the budget per hour. I'd run three tiers, each a pair of windows, all evaluated as "both windows above threshold":

Budget consumedBurn rateLong windowShort windowRoute
2% in 1h14.4x1h5mpage
5% in 6h6x6h30mpage
10% in 3d1x3d6hticket

The arithmetic checks itself: 14.4x held for 1h is 2% of a 720h budget, and from a full budget you would empty it in 720/14.4 = 50h. 6x gives 5% per 6h, empty in 120h. 1x gives 10% per 3 days, empty in 720h. At 99.9% and 1000 rps the whole month's budget is 43.2 minutes of full outage, which is why the 14.4x tier is worth paging on: you catch it with roughly 2% spent, not when the month is gone.

Why a pair of windows. The long window is what makes the threshold mean "sustained burn at this rate". A 1h average reaches 14.4x after about 1h of a 14.4x incident, or about 30 minutes if the burn is 28.8x, so detection latency is bounded by the long window and no faster. The short window buys reset speed, not detection speed: with both windows required, once errors stop the 5m window drops below threshold and the page clears in about 5 minutes instead of staying on for up to an hour of stale history. A short-window-only alert flaps on single bad minutes; a long-window-only alert is slow to clear and can mask the start of the next incident.

Failure modes, how I'd detect them, and what they cost.

  • Low request volume. At 1 rps the 1h window holds 60 requests, so one failed request is 1/60 = 1.67% errors, above the 1.44% that the 14.4x tier needs: you page on a single 500. Detection: gate the alert on a minimum sample count in the window, and below that threshold don't use burn-rate alerting at all. Cost: pages on noise, and on-call starts ignoring the alert.
  • Silent data loss. If the exporter or scrape stops, the ratio can be NaN or unchanged, and a comparison against the threshold stays false in the middle of a real outage. Detection: a separate alert on the request counter's rate being zero for the same window. Cost: the loudest possible failure reports as quiet.
  • Aggregation hiding a segment. Pooled across regions, 0.1% of traffic failing completely is a 0.1% aggregate error rate (1x burn, never pages) while 1% of traffic failing is 1% aggregate, 10x burn, pages. Detection: fire the same alert per critical dimension (region, cluster, customer tier). Cost: a single-region outage never alerts.
  • Wrong SLO window. Burn rate is relative to the SLO window, so 14.4x on a 24h window empties in 24/14.4 = 100 minutes, not 50 hours. Detection: state the window in the alert name and runbook. Cost: thresholds silently mis-scaled.

Validation. Replay 90 days of history: the two page tiers should fire a handful of times, each traceable to a real incident, and the ticket tier should catch things that would otherwise surface only in the monthly review. Shadow both page tiers alongside the current alerts for two weeks before routing them to the rota.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-12

Tune an alert with high false-positive volume.

Answer

First I'd define the problem precisely: a false positive is a page that fired, but there was no customer impact and no urgent human action. If the page did reflect impact but the responder couldn't act, that's a routing problem, not a threshold problem. I'd assume a symptom-based alert on a service with an SLO, paging through Alertmanager to PagerDuty, and a runbook that says what to do.

The core move is not to raise the threshold. It's to find the dimension that separates the benign pages from the real ones, change one rule element, and shadow it. Most high-FP alerts are cause-based or low-denominator. CPU > 80% for 5m pages, but CPU saturation is a cause; the symptom is queue latency or error rate. A ratio alert on 5xx > 5% for 5m pages at 0.2 rps because 4 errors out of 60 requests is 6.7%. At 20 rps, 4 errors is 0.03%. The threshold is fine; the denominator is missing.

Worked example. Alert: sum(rate(http_requests_total{code=~"5.."}[5m])) / sum(rate(http_requests_total[5m])) > 0.05 for 5m. Over 7 days: 120 pages, 96 false, 24 true. Replay shows all 96 false pages occur when total rate < 0.5 rps; all 24 true pages occur at > 20 rps. Add and sum(rate(http_requests_total[5m])) > 2. Trace: at 0.2 rps, 5m = 60 requests; 4 errors = 6.7% -> old fires, new does not because 0.2 < 2. At 20 rps, 5m = 6000 requests; 301 errors = 5.02% -> both fire. Shadow 7 days: false pages 96 -> 8, true positives 24 -> 24, detection latency unchanged for the true set.

dimensionmechanismfixhow you detect regression
thresholdstatic threshold below normal variancemove to SLO burn rate or raise to p99replay true positives; compare MTTD
duration (for)short for catches transient blipsfor: 10m or multiwindowshadow; count pages that resolve before for
low volumeratio denominator collapsesrequire min request ratesegment by traffic; check false pages at low rps
missing datarate() returns no series; alert resolves silentlyabsent() alert or deadman's switchinject metric gap in staging
deploysdeploy changes error budgetcorrelate pages with deploy markersoverlay deploy events on replay

Alertmanager defaults group_wait: 30s, group_interval: 5m, repeat_interval: 4h; if the same alert repeats every 4h, that's noise volume, not new incidents.

Tuning is wrong when the alert isn't symptom-based. CPU, disk, and memory alerts should not page; they go to a ticket or dashboard. If the page is real but not urgent, route to ticket. If it's urgent but not actionable, automate the action or delete the alert. Deciding criteria: page only if customer impact and a human must act within minutes. Otherwise ticket. For SLO burn-rate, a 99.9% SLO over 30 days has 0.72h of budget. A 14.4x burn over 1h consumes 2% of that budget (14.4h of bad time equivalent) and should page; a 1x burn over 3d consumes 10% and can ticket.

Failure modes: if you add for: 15m, a fast-burn incident that would have paged at 5m now pages at 15m, adding 10 minutes to detection. If you require min rate 2 rps, a real outage on a low-traffic service at 0.5 rps never pages; detect by keeping a separate low-traffic SLO or synthetic check. If the metric disappears, sum(rate(...)) returns no data and the alert resolves; detect with absent(http_requests_total) or a deadman's switch. Operational cost of a bad tune: false pages drop but MTTD rises; measure both in shadow, not just page count.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-4

Investigate an alert that fires on every deployment.

Answer

Before I touch the rule, I need to know whether the deploy is actually hurting users. I pull the alert's expression and its fire timestamp, then overlay the deploy marker (Argo CD, Flux, or kubectl rollout history deployment/api) against the user-facing SLI: request success rate and p99 latency from the same window. If the SLI is flat and the alert fires at the same phase of every rollout, it's a measurement artifact. If the SLI moves, the alert is correct and I have a real regression to chase.

Assuming artifact, three mechanisms explain nearly all of them.

Counter resets. Prometheus counters are monotonic per process; a restart resets them to zero. rate() and increase() are reset-aware and compensate. delta() is not, it's for gauges, so delta(http_requests_total[5m]) across a restart returns garbage. Same for anything built on raw counter values. Check the expression for delta, deriv, or a bare counter comparison.

Rollout transitions. During a rolling update the terminating pod's up goes to 0 before the scrape target is removed, and new pods report kube_pod_status_ready{condition="true"} == 0 while the image pulls and the app boots. An alert with for: 1m on either fires on every deploy.

Warm-up. Cold JIT, empty caches, an unprimed connection pool. histogram_quantile(0.99, sum by (le) (rate(http_request_duration_seconds_bucket[5m]))) spikes for the first 30–90s of a pod's life even though the code is fine.

Worked example. Rule:

- alert: APIHighErrorRate
  expr: sum(rate(http_requests_total{job="api",code=~"5.."}[5m]))
      / sum(rate(http_requests_total{job="api"}[5m])) > 0.01
  for: 2m

Deploy is a 4-replica rolling update. The terminating pod gets SIGTERM and stops accepting before endpoint removal propagates, so it returns 503 for ~8s; the new pod is NotReady for ~40s. The 5m rate window smears that into a ratio above 1% for about three minutes, so for: 2m fires. The SLI, success rate measured at the load balancer, dips to 99.6% for 8s and recovers. That's a real but tiny blip; the alert is over-sensitive, not wrong.

Fix decision. If it's a counter reset, switch to rate()/increase(). If it's a rollout transition, either raise for: past the rollout duration or exclude young pods: kube_pod_status_ready{condition="true"} == 0 and (time() - kube_pod_created) > 300. If it's warm-up, gate on pod age: ... and (time() - process_start_time_seconds) > 120. If the transition is genuinely expected, a schema migration that drops connections, use an Alertmanager silence scoped by matcher to that deploy, created by the pipeline, with an owner and an endsAt, not a recurring mute.

Verification. Write a promtool test rules file with two series: one replaying a healthy deploy (counter reset plus a 40s NotReady window) asserting the alert stays quiet, and one injecting a sustained 5% error rate asserting it fires within the for: window. Run it in CI on every rule change, then canary the rule in staging for a full release cycle.

What I won't do: a broad recurring silence, or widening for: until the rule can't catch a real five-minute outage.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-23

Design alerts for queues and asynchronous work.

Answer

What I'd say first

Before picking signals I'd pin down the objective: what does the user actually wait on? For most async work it's accepted-to-completed latency: the time from when the request is acknowledged to when its effect is visible. I'd assume at-least-once delivery, retries with backoff, a dead-letter queue, and autoscaled workers. Then I'd alert on the thing the SLO promises, not on queue depth.

Why age, not depth

Depth is a proxy that lies in both directions. A queue holding 10,000 items draining at 5,000/s is 2 seconds of work: nobody is waiting. A queue holding 3 items where one is stuck on a poisoned payload is 6 hours of pain for one user. Depth tells you about throughput; age tells you about the promise. So the primary page is on the age of the oldest in-flight item, expressed as a percentile against the SLO.

Example: SLO is p99 accepted-to-completed ≤ 5 minutes. Alert when the p99 age of in-flight items exceeds 4 minutes for 5 minutes, burn-rate style, so a 30-second blip doesn't page. Depth and worker/dependency saturation are dashboards and diagnosis, not pages.

Predicted drain

Age alone pages late. Compute drain time from the backlog and the effective service rate:

drain = backlog / service_rate, where service_rate is an EWMA over the last 5 minutes.

If backlog is 12,000 and the EWMA completion rate is 40/s, drain is 300s = 5 minutes. If the SLO deadline is 5 minutes out, you're already breached: page before the age alert fires. This catches the case where age is still low but arrivals just spiked.

Priority classes

Separate queues per class. A nightly backfill of 2M rows must not sit in front of interactive work. Alert per class, because a healthy bulk queue and a starving interactive queue average to a meaningless number.

Retry amplification

Retries are load. If a dependency slows, retries add 2-3x traffic, which slows it further: a metastable failure that doesn't recover when the trigger clears. Detect it with the ratio of retry attempts to first attempts; alert when it exceeds ~1.5x baseline. Cap retries, use jittered exponential backoff, and add a circuit breaker.

Failure modes and how I'd catch them

FailureSignalAction
Poison messageSame message ID fails ≥5 timesRoute to DLQ, alert on DLQ arrival rate, not depth
Missing consumerArrivals > 0, completions = 0 for 3 minPage: heartbeat on the consumer
Clock skewAge computed from producer timestampUse server-assigned enqueue time
Retry stormretries/first-attempts > 1.5xPage, shed load
Slow capacity trendBacklog grows 10%/dayTicket, not page

DLQ depth is a trap: it only grows, so it becomes permanent noise. Alert on the rate of new arrivals to it.

Page vs ticket

Page only when the SLO will breach inside the response window and a human action changes the outcome: a stuck consumer, a poison flood, a dependency down. Ticket when it's a capacity trend you can fix in business hours. Everything else is a dashboard.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-11

Respond when monitoring data disappears.

Answer

What I'd say first

I'd assume the gap is real and total until I can prove otherwise, and I'd say out loud that the affected scope is unknown, not healthy. Then three things in order: bound the blast radius from evidence that doesn't depend on the broken pipeline, decide whether to page from the consequence rather than from the fact of the gap, and run service mitigation and monitoring repair as two separate tracks so neither blocks the other.

Why the gap is dangerous

Most alerting is defined over series that exist. If the exporter stops, the series stops, and a rule like rate(http_errors_total[5m]) > 0.01 has nothing to evaluate: no data, no alert. Prometheus marks a series stale after 5 minutes without samples (--query.lookback-delta, default 5m), so up == 0 fires within one evaluation interval for a single dead target, but if the Prometheus server itself is down, nothing fires at all. That asymmetry is the whole problem: the failure that removes your monitoring is the one your monitoring can't report. The fix is a dead-man's switch: an always-firing alert (the Prometheus docs call it the Watchdog) routed to an external service such as Healthchecks.io or PagerDuty, which pages when the heartbeat stops.

Bounding scope with independent evidence

sourcewhat it provestypical lag
Synthetic probe (external canary on the login flow)user-visible reachability~1 min
Edge/LB metrics (separate pipeline)traffic is still arriving~1 min
Client-side RUM / error ratereal users are failingminutes
Audit or transactional logs (DB, payment ledger)whether writes completedseconds to minutes
Support queuehumans are noticingtens of minutes

If all of those are green, the gap is likely a monitoring-only fault. If any is red, you have a live incident and the missing dashboard is a side quest.

Page or not

Page when the telemetry loss itself implies user risk, or when you cannot bound the blast radius within your detection window. Don't page on the gap alone if an independent signal proves the user journey is fine: that's how you burn trust. State the assumption explicitly: "I'm treating this as monitoring-only because the synthetic probe and edge 5xx are both flat; if either moves, this becomes a Sev-1."

Two tracks

Service mitigation: failover, shed load, roll back the last deploy. Whatever the independent evidence says is needed. Monitoring repair: restore the collector/export path, verify the query layer, then re-check both the user journey and the monitoring itself.

Failure modes

  • Backfilled false health: someone fills the gap with a flat "healthy" value. Arithmetic: 300 targets at a 15s scrape over a 10-minute outage is 300 × 40 = 12,000 fabricated points. Detect by comparing backfilled timestamps against collector logs and flagging zero-variance stretches.
  • Recovery alert storm: every rule fires at once when data returns. Detect via Alertmanager group_wait (default 30s) and group_interval (5m) behaviour; suppress with an inhibition rule on the collector-down alert.
  • Silent partial loss: one of three replicas stops exporting and the aggregate still looks fine. Detect by alerting on scrape_samples_scraped per target, not just the sum.

Recovery check

Don't call it done when the graph is back. Confirm the user journey (synthetic + edge) and the monitoring path (a fresh sample with a current timestamp, not a stale one) both recovered, and keep the dropped interval marked as a gap rather than smoothing it over.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-13

Find and fix a missed incident alert.

Answer

First 90 seconds

A missed alert is one of four things: no alert fired, it fired late, it went to the wrong receiver, or it fired and nobody acted. I assume I have the incident timeline, the SLI definitions, the alert rule, Alertmanager/PagerDuty config, and 30 days of metrics. I write the user-impact window first: checkout failures 14:02–14:37 UTC, first page 14:41, so the detection gap is 39 minutes. Then I trace the path: metric -> rule -> alert -> route -> on-call -> ack. The first broken link is the fix target.

Diagnose the miss

LinkSymptomCheckFix
SLIEdge 5xx green, users failingCompare synthetic checkout canary to edge 5xxAdd journey canary or business KPI
AggregationService SLI green, one cohort redmax by (instance) vs sum by (service)Alert per instance/AZ/cohort
Threshold/windowBursty failures never sustainReplay rule over historical dataMultiwindow burn rate or shorter window
RoutingAlert in Alertmanager, no pageamtool alert query; Alertmanager UI; PagerDuty incident logFix label match, test with amtool config routes test
OwnershipSlack post, no ackIncident log shows no ownerRoute to PagerDuty service with escalation policy

Aggregation is the common one. Suppose 20 instances each serve 100 req/s. One instance returns 100% 5xx; the other 19 return 0%. Service error rate is 100 / 2000 = 5%. A rule sum(rate(http_requests_total{status=~"5.."}[5m])) by (service) / sum(rate(http_requests_total[5m])) by (service) > 0.10 stays green. max by (instance) is 1.0, so a per-instance rule fires. That is the arithmetic that decides it.

Window mismatch is the other. A for: 5m rule with a 10% threshold ignores a 30-second failure every 10 minutes: the 5-minute average never crosses 10%. Replay the rule against the incident window and benign history. If the incident is a short burst, use a shorter window or a multiwindow burn rate, e.g. 14.4x burn over 1h paired with a 5m short window for a 99.9% SLO. If traffic is too low for burn rate, use a canary or correctness check instead.

Routing failures are config, not signal. Alertmanager defaults are group_wait: 30s, group_interval: 5m, repeat_interval: 4h; a route that matches team=payments while the alert carries service=payments-api drops it. Check the Alertmanager UI for "no route" and PagerDuty for a missing incident. Fix the label, then test the full path with a synthetic alert.

Fix and verify

Add the closest reliable signal: per-cohort SLI, canary, or both. Replay the incident plus 30 days of benign history; measure detection latency and false positives. Shadow the new rule against the old one before paging. Fire a test alert through Alertmanager to PagerDuty, confirm page, ack, and escalation. Document residual blind spots, such as provider-side status pages, and link the action to verified closure.

Trade-offs

Static threshold: simple, fast, noisy at low volume. Burn rate: ties to user impact, needs enough traffic; wrong for low-volume correctness. Canary: catches the journey, costs money, may not cover every cohort. Pick by traffic volume, user impact, detection latency, and false-positive cost. If the chosen signal cannot see the cohort that failed, it is the wrong signal.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-15

Govern alert labels and annotations safely.

Answer

Core answer

Assume Prometheus + Alertmanager, alert rules in Git, receivers are PagerDuty, Slack and email. What's being governed is a contract: labels are the routing key, annotations are payload. So labels get a schema and an allowlist; annotations get treated as untrusted input and escaped at render time.

Concretely: a fixed label set (service, team, environment, region, severity) owned in one file, versioned, with a CI check that rejects any alert rule emitting a label outside it. Everything else (customer ID, order ID, payload, free text) goes in the annotation as a link to access-controlled evidence, never as a label.

Why labels are the dangerous half

A Prometheus series is the cross-product of its label values. One metric with 40 services × 3 environments × 5 regions is 600 series: fine. Add customer_id with 50k tenants and it's 30,000,000 series: TSDB memory, scrape duration and query cost all scale with that number, and it's the classic way one well-meaning rule takes down the monitoring stack.

Alertmanager inherits the problem. group_by decides notification grouping, so group_by: [alertname, service, environment] collapses a fleet-wide outage into one page per service. Put customer_id in group_by and the same outage becomes 50k groups; with the default group_interval: 5m that's up to 50k notifications every five minutes, which is how you get rate-limited by PagerDuty and ignored by humans.

Trade-offs: where to enforce

Three places, and the choice is the real answer.

Enforcement pointCatchesCost
CI lint on rule files (allowlist + promtool check rules)Bad labels before mergeBlocks onboarding until the allowlist is updated; needs an owner
Alertmanager route fallbackAnything that slipped throughAlert still fires, but to a default on-call who may not own it
Ingest relabeling / dropCardinality at the sourceSilent data loss; hard to notice until you need the metric

Deciding criterion: how fast a new team must be able to ship an alert. If onboarding is weekly, CI lint with a named owner is right. If teams self-serve daily, lint becomes a bottleneck and you want the fallback route plus a weekly report of alerts that landed on it. Most orgs run lint for the label names and a fallback route for the values.

Failure modes and how you see them

  • Cardinality explosion: watch prometheus_tsdb_head_series and per-metric series counts; blast radius is the whole TSDB, not one alert.
  • Notification storm: rate(alertmanager_notifications_total[5m]) spiking after a rule change; blast radius is pager trust, which takes months to rebuild.
  • Unescaped annotation: a Slack link <https://wiki/runbook?id=7&step=2|runbook> where a tenant-supplied | or > truncates the URL, or an annotation containing @channel that mass-pings the channel. Detection is a broken link during the incident, which is too late: escape at template render and strip @-mentions.
  • Privileged route selection: a tenant-controlled label value matching a broad matchers regex and landing on the platform team's receiver. Detect with a synthetic test alert per route in CI and an audit log on route changes.

Fallback

Every route tree ends in a receiver with no matchers, so an alert with an unknown or missing team still pages someone. That receiver has a named owner and a runbook for "this alert landed here by mistake": otherwise the fallback is just a quieter outage.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-5

Reduce a page storm during a shared dependency outage.

Answer

Assumptions. Alertmanager 0.27+ routing to PagerDuty; the storm is N services all alerting on one shared dependency (say a Postgres primary or a cloud region); each service already has its own SLO burn-rate alerts. If any of that is false, say so before you answer.

Core answer. Don't start by muting. Make the parent the only thing that pages, and make everything downstream of it visible but silent. Three mechanisms, in order:

  1. Group. On the route that owns dependency alerts, set group_by: [cluster, dependency], group_wait: 30s (default), group_interval: 5m. All children of the same dependency collapse into one notification. Without this, 40 services × 1 alert = 40 pages.

  2. Inhibit. One rule, keyed on the shared identity:

YAML
inhibit_rules:
  - source_matchers:
      - alertname="DependencyDown"
      - severity="critical"
    target_matchers:
      - dependency="payments-db"
    equal: [cluster, dependency]

equal is the whole game: the target is suppressed only when source and target agree on cluster and dependency. Drop equal and you inhibit every alert in the cluster, including unrelated ones.

  1. Cap. repeat_interval: 4h (default) on the child route so a long outage doesn't re-page, and cap the receiver's own retries so a flapping parent doesn't multiply notifications.

Why the parent must be reliable. Inhibition is a pure implication: if the parent fires, the child is assumed noise. That is only safe when the parent's condition is a superset of the child's: the dependency being down implies the child's symptom. If the parent is "payments-db slow" and a child is "checkout 5xx from a bad deploy," inhibition hides a real, independent incident. So the parent must be causally upstream, and its for: short enough to fire before the children (e.g. for: 1m on the parent, for: 5m on children).

Flapping parent. If the parent resolves and re-fires, inhibition lifts and re-applies, and children page on every flap. Detect it by watching the parent's alert count in Alertmanager over the window; fix by lengthening the parent's for: or adding keep_firing_for so brief recoveries don't clear it.

Keep suppressed alerts visible. Inhibition stops the notification, not the alert: Alertmanager still shows inhibited alerts in the UI/API with status suppressed. But PagerDuty never sees them, so per-service impact is invisible to the responder. Route suppressed children to a low-severity channel (Slack, or a dashboard) so you can still answer "which services are affected."

What not to suppress. Security and correctness alerts (auth failures, data corruption, cert expiry) must not carry the dependency label, or must be excluded by a negative matcher, so inhibition can't reach them. Independent symptoms, a service whose errors predate the dependency, should be excluded too.

mechanismcollapsesmodels causalitycost
groupingmany children → one pagenoone notification hides per-service detail
inhibitionchildren of a firing parentyeshides independent symptoms if parent is wrong
dedupidentical alerts from many sourcesnodoesn't merge distinct children
escalation throttlingpages per hournodelays real pages

Close. If the dependency is only partially degraded, or the children have different owners, inhibition is the wrong tool: group instead and let each owner see their own page. Test with a child-only outage: kill one service's dependency connection without the parent firing, and confirm its owner still gets paged.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-22

Test alerting during a provider outage.

Answer

What I'd say first

Assume Alertmanager fans out to PagerDuty as primary and Twilio SMS as secondary, staging mirrors the production route tree, and I have a maintenance window. I would not inject a provider outage in production during business hours. I'd point the staging Alertmanager at a proxy that returns 500 for the provider's API, fire a synthetic critical alert every 60s, and watch three things: does the secondary route fire, does the pipeline recover, and does the backlog flush without re-paging conditions that already resolved.

Why the pipeline behaves this way

Alertmanager's notification path is governed by four settings, and their defaults decide what a provider outage looks like:

settingdefaulteffect during an outage
group_wait30show long alerts coalesce before the first send
group_interval5mminimum gap between sends for a changed group
repeat_interval4hre-send cadence for an unchanged firing group
send_resolvedtruesends a resolve notification when the alert clears

A failed send is retried with exponential backoff, so one group does not hammer the provider. But grouping is per-route, and if you have one route per alert you get one retry stream per alert. That is the retry storm: 500 routes each retrying against a provider already returning 500s gets you rate-limited or IP-banned, which extends the outage past the provider's own recovery. Detection is alertmanager_notifications_failed_total climbing while the provider's 429/5xx rate climbs with it.

The failure mode that actually bites

Backlog flush. Say the provider is down for 20 minutes and 12 alert groups fire. Alertmanager queues them. On recovery they flush within seconds. If 8 of those conditions resolved during the outage and send_resolved is true, on-call receives 4 firing pages and 8 resolves for alerts they never saw fire, and if the provider dedupes by incident key, a resolve can close a firing incident. Detection: alertmanager_notifications_failed_total climbing during the window, then a burst in alertmanager_notifications_total on recovery. Capture the provider's delivery IDs and timestamps through the whole run so you can prove the ordering after the fact.

Trade-offs

  • Tabletop: zero risk, exercises the human escalation and runbook, but never touches the pipeline. It will not find the backlog-flush bug.
  • Staging chaos injection: highest pipeline fidelity, no production risk, but staging routing often diverges (different contact lists, different provider accounts), so it can pass while production fails.
  • Staged production failover: flip primary to secondary in a low-traffic window with a maintenance banner. Tests real routing, but if the secondary also fails you have paged nobody.

Pick by goal: pipeline behavior → staging injection; human path → tabletop; production routing → staged failover in a window.

What would change my answer

If the provider has no secondary and no independent detection path, the test is not "does failover work" but "how long until a human notices nothing is paging", and that is a monitoring gap to fix before the drill, not during it.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-20

Migrate a legacy threshold-alert catalog.

Answer

Assumptions I'd state first: Prometheus with Alertmanager, PagerDuty for paging, roughly 300 legacy threshold rules across ~40 services, and SLOs already defined for the top user journeys. If the SLOs don't exist yet, stop: burn-rate conversion without an SLI is a threshold with extra steps.

The answer: don't migrate rules, migrate the decisions they encode. A legacy threshold is a hypothesis about user pain written by someone who has since left. The migration tests that hypothesis against 90 days of incident history and keeps only the rules whose firing changes what a human does in the next 15 minutes.

Inventory as data, not prose. Export the rule files, then join three sources: Alertmanager silences, PagerDuty incident records, and post-incident notes. Per rule, compute pages per 90 days, percentage acknowledged, percentage closed as "no action", and whether any incident was ever linked. That table decides the classification, not a spreadsheet of owners.

Classification criteria. The deciding question for each bucket:

DecisionDeciding criterionExample
Retain as thresholdHard invariant, no user-visible gradient, response is capacity workDisk >85% on a stateful node, cert expiry <14d, replica lag beyond RPO
Convert to burn-rateRule is a proxy for user pain and an SLI existsHTTP 5xx rate, latency p99
Ticket, not pageFires, but the response is "file it"Quota at 70%, dependency version EOL
AutomateRunbook is deterministic and idempotentRestart a stuck consumer; alert only if remediation fails
CombineN rules fire from one cause12 per-shard rules become one alert with shard as a label
RetireZero pages in 90 days, or >80% closed no-action, or duplicated by a symptom alertCPU >80% on an autoscaled fleet

Burn-rate conversion, concretely. Use the multiwindow multi-burn-rate scheme from the Google SRE Workbook: 14.4x over a 1h long window with a 5m short window pages; 6x over 6h with a 30m short window pages; 1x over 3d with a 6h short window opens a ticket. The short window is what stops the long window from paging on stale burn.

Arithmetic for a 99.9% / 30-day SLO: the budget is 0.1% × 43,200 min = 43.2 min. A 14.4x burn is a 1.44% error rate; one hour of that is 0.86 min of errors, 2% of budget: page. 6x for 6h is a 0.6% error rate, 2.16 min, 5% of budget: page. 1x for 3d is 4.32 min, 10% of budget: ticket. The workbook's detection table puts the 14.4x / 1h / 5m rule at roughly two minutes to fire on a total outage.

Failure modes and how you catch them:

  • Flapping: a threshold sitting on the boundary. Count incidents resolved before acknowledgement per rule per week; fix with for: 10m plus hysteresis, or convert to burn-rate.
  • Silences surviving migration: silences match old label sets, so a rule you had muted returns under new labels. Diff every silence matcher against the new rule labels before cutover.
  • Double paging on cutover: old and new rules both live. Route new rules to a null receiver or a shadow PagerDuty service for two weeks and compare pages per shift.
  • Missing data read as healthy: a scrape failure makes burn rate 0. Add absent_over_time(sli_requests_total[10m]) as its own page.
  • Alert storm: one bad deploy trips 40 converted rules. Use group_by: [alertname, cluster, service] and an inhibition rule from the top-level symptom alert.

When not to migrate: if the platform is being replaced within a quarter, freeze the catalog and migrate the replacement. If you can't instrument the user journey, keep the thresholds and fix the instrumentation first.

Cutover: canary one team for two weeks, keep the old routes in Alertmanager behind a route you can flip back in one commit, and delete old rules, routes and silences only after the new ones have paged and been actioned at least once.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-18

Design an on-call handoff for an active incident.

Answer

Core answer (say this first)

A handoff is a transfer of command authority, not a status update. Run it as a 15-minute overlap: the outgoing IC writes the handoff into the incident record, reads it aloud in the incident channel, and the incoming IC repeats back the current state and the next decision, then explicitly accepts command. Until that acceptance is posted, the outgoing IC still owns the incident. After it, the outgoing IC is a consultant for a bounded window, 30 minutes is a reasonable default, and then goes offline to sleep.

Assumptions I'd state: one incident, one IC per shift, 8-hour shifts, a chat channel plus a paging tool, and a written incident record both parties can edit.

What actually transfers

Group it, don't recite it:

  • State: severity, customer impact, blast radius, and the timeline of what changed.
  • Live actions: commands or changes in flight, who is running them, and how to abort.
  • Understanding: the current leading hypothesis with the evidence for it, and the hypotheses already ruled out.
  • Commitments: next stakeholder update time, and who was promised what.
  • Open decisions: what the incoming IC must decide, and by when.

Why the written record, not just the call

Chat scrolls and the call is not recorded; the incident record is the only artifact a responder joining at 03:00 can read. The verbal pass exists to catch what the writer assumed was obvious.

Worked trace (hypothetical)

timeevent
17:45Outgoing IC posts handoff doc: SEV2, checkout 500s on 4% of requests, mitigation = rolled back deploy 4821, hypothesis = connection pool exhaustion, next update 18:30
17:50Incoming IC reads back: "SEV2, rollback done, watching error rate, next update 18:30, I own it"
17:52Incoming IC posts "accepting IC" in channel; paging tool reassigns the incident to them
18:22Outgoing IC's 30-minute window closes; they go offline
18:30Incoming IC posts the stakeholder update

Failure modes and detection

  • Silent handoff: no explicit accept posted. Detect by requiring an "accepting IC" message; if it's missing at the shift boundary, the paging tool still shows the old owner.
  • Split-brain command: both ICs paging or directing responders. Detect when two people answer the same question in channel.
  • Stale hypothesis: the incoming IC repeats the outgoing's theory as fact. Detect by asking "what evidence would change your mind?", if there's none, it's a guess.
  • Handoff mid-mitigation: transferring while a change is in flight. Freeze new actions until the accept lands.
  • Context loss on in-flight commands: duplicate or conflicting changes. Detect by naming the exact command and its owner in the handoff.

Trade-offs

Overlap costs two engineers' time; skipping it costs a confused incoming IC. For a short incident likely to close within the shift, don't hand off: ride it out. For multi-day incidents, switch to an async handoff doc updated continuously, with a short sync only for open decisions. The format should change with incident duration, not stay fixed.

Curated: · Written: · Reviewed:

Difficulty: Medium
Q&A-8

Design a sustainable on-call rotation.

Answer

Assumptions. Eight backend engineers, one primary service, about three actionable pages a day, one time zone with a two-person EU presence. Different numbers move the arithmetic, not the method.

Core answer. Size the rotation so nobody carries primary more than one week in six, run primary and secondary in parallel, and cap the load at two actionable pages per 12-hour shift. Eight engineers on a weekly rotation: each is primary 52/8 = 6.5 weeks a year, secondary another 6.5, so ~25% of the year on call. That's the ceiling: past it you're buying coverage with attrition. Five engineers gives 52/5 = 10.4 weeks primary plus 10.4 secondary, 40% of the year, which is one week in five and over the line; that number is the argument to hire or cut scope.

Shift length follows from night load. A 24-hour shift means a 3 a.m. page wakes you and you still work the next morning. Splitting into 12-hour day/night shifts halves the window a page can wreck, at the cost of a second handoff per day. Under ~2 night pages a week, keep 24-hour shifts; above it, split.

Trade-offs.

ChoiceBuysCostsWrong when
Local weekly, 24hcontext stays with one person, one handoff/weeknight pages land on workdaysnight pages > 2/week
Local 12h day/nighthalves sleep-disruption window2 handoffs/day, night shift still existsteam < 6 (can't staff both)
Follow-the-sun, 3×8hno night work3× the deep-knowledge staff, 2 handoffs/day, context lost at eachteam < 15 or one irreplaceable expert

Follow-the-sun is the one people reach for first and it's usually wrong below ~15 engineers: you can't staff three regions with real competence, so you get warm bodies who escalate everything to the one person who knows the system. Worse than a night page.

Failure modes, with detection.

  • Alert fatigue: pages per shift above 2, or ack time creeping up. The cost is the real page that gets ignored.
  • Rotation collapse: someone leaves and weeks-on-call per person per quarter exceeds 4. Detection is the schedule, not a survey.
  • Handoff loss: incidents reopen after a follow-the-sun handoff. Track reopen rate per boundary.
  • Hero dependency: one person handles >30% of pages. A page-distribution histogram shows it within a month.

Recovery. After a night where someone was paged more than twice, they get the next day off, protected, not "flexible." Compensation and recovery are part of the design, not perks.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-17

Review on-call fatigue and staffing risk.

Answer

Clarify and assume first. "Review on-call fatigue and staffing risk" isn't answerable as stated: fatigue risk depends on rotation size, page volume and time-zone spread. I'd pin those down before opening a dashboard: say 8 engineers, 3 time zones, weekly rotation, one person just left, so 7 carrying the pager. Then I'd answer with a decision (change the rotation, change the alerting, or change nothing) not a metric list.

The core answer. Three numbers decide it, and they interact.

  1. Off-hours pages per engineer per week. This is the load. Take total pages, multiply by the fraction outside 09:00–18:00 local, divide by rotation size. 40 pages/week, 60% off-hours, 7 engineers → 3.4 off-hours pages each. Each page costs roughly 20 minutes of context switch plus 15 minutes to get back to sleep or back into the task: about 2 hours of degraded capacity per engineer per week. Above ~10 off-hours pages per engineer per week, sleep debt accumulates faster than a weekly rotation recovers it.

  2. Actionable rate. Fraction of pages where a human had to do something inside the page's urgency window. Below 50% the pager is noise; the target is >75%. This is the number that tells you whether to fix alerts or fix staffing: a low actionable rate is an alerting problem, not a headcount problem.

  3. Repeated pages. Same alert firing more than 3 times in a week with no code change. Each repeat is a known, unfixed problem waking someone up.

SignalHealthyAct
Off-hours pages / engineer / week<5>10 → redesign rotation
Actionable rate>75%<50% → fix alerting
Repeat pages / week0–1>3 → suppress or fix

Trade-offs, and when the heavy option wins. The cheap moves are alert tuning, runbooks, and moving non-urgent pages to business hours: days of work, no headcount. The expensive move is follow-the-sun: it needs at least 3 people per time zone, so 9+ engineers, and it only pays off if off-hours pages per engineer stay above ~10 after tuning. Tooling cannot remove a 3am wake-up; only coverage can. So the deciding criterion is simple: if tuning gets you under the load limit, tune. If it doesn't, redesign the rotation: don't buy more dashboards.

Failure modes and how to detect them.

  • Handoff gaps: count incidents where the incoming engineer re-paged the outgoing within 2 hours of handoff. Above 10% of handoffs, the handoff note is failing.
  • Under-declaration: engineers stop paging to avoid a leaderboard. Detect by comparing page volume to incident volume from monitoring: falling pages with flat incidents means suppression, not health.
  • Attrition: track voluntary departures from the rotation. More than one per quarter on a 7-person rotation means the rotation is the cause, not the market.

What not to do. No individual leaderboards, and never rank on acknowledgement speed: it rewards the fastest ack, not the fastest fix, and teaches people to ack and go back to sleep.

Then recheck. Re-run the three numbers after any change, and again during peak and holiday weeks when the rotation is thinnest.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-21

Measure alerting-program effectiveness.

Answer

Effectiveness in the first 90 seconds

Two ledgers, kept separate. Detection: of the incidents users actually felt, how many did the alerting program surface first, and how much error budget had burned before the page landed. Cost: what carrying that pager does to the people on it. Pages per shift, after-hours share, and how many pages ended with someone changing code, config, or a runbook.

Every other number is a proxy, and each one is gameable in a specific direction. Page count rewards silence. MTTR rewards closing incidents. Acknowledge time rewards pressing a button. So I anchor on error-budget burn, treat responder load as a constraint rather than a score, and review every page weekly into one of three buckets: actionable, informational, false positive.

Assumptions I would state out loud: the service has an SLO; alert events land somewhere queryable (an Alertmanager webhook writing to a table is enough); incident records join to alert fingerprints.

What I would compute

MetricComputed fromWhat it actually detectsHow it gets gamed
Budget-burn pages per service per weekMultiwindow burn-rate rulesWhether we page on symptoms that cost usersThresholds retuned until it is quiet
Detection lead timefirst alert timestamp minus first customer report or impact timestampMissed and late detectionImpact timestamp logged late
Pages per distinct incident (fan-out)page count divided by incident countgroup_by and repeat_interval misconfigurationReclassifying pages as informational
Actionable shareWeekly page review, three bucketsNoise from static thresholdsBucket inflation
Pages per shift, after-hours sharePaging schedule dataRota overload, staffing mismatchSplitting shifts to dilute the count
Time to acknowledge vs time to mitigateAck and resolve timestampsAck theatreAuto-resolve
Synthetic path coverageOne probe per critical journeySilent failures, dead exportersAdding trivial checks

The two numbers that decide it

Arithmetic, not opinion: a 99.9% SLO over a 30-day month gives 43,200 * 0.001 = 43.2 minutes of budget. The multiwindow burn alerts in the Google SRE Workbook (2018, ch. 5) spend it as follows: 14.4x burn over a 1h long window with a 5m short window consumes 14.4 / 720 = 2% of the monthly budget, about 52 seconds; 6x over 6h consumes 5%; 1x over 3d consumes 10%. Those three lines set your page volume, and they are derived from the SLO, not from taste.

Fan-out: Alertmanager's stock defaults (0.27, unchanged across 0.x) are group_wait 30s, group_interval 5m, repeat_interval 4h, resolve_timeout 5m. A single unresolved alert re-notifies every 4 hours, so a 3-day outage generates roughly 18 notifications per responder from one problem. Track pages per distinct incident; above 2 to 3, fix group_by and repeat_interval before you touch a single threshold.

Failure modes, how each shows up, what it costs

  • Page budget met by demotion. Pages fall while the ticket queue and customer-reported incidents rise; detection time slides from minutes to hours.
  • Ack-and-snooze theatre. Time-to-ack improves while time-to-mitigate grows. Plot both on one axis; the divergence is the signal.
  • Auto-resolve to flatten MTTR. Compare alert resolve timestamps against metric recovery: incidents closed before error rate recovered.
  • Silent no-data. rate(errors[5m]) > 0.01 never fires when an exporter is down or traffic is zero, because there is no series to evaluate. Guard with absent_over_time() and up == 0 rules plus one blackbox probe per critical journey.
  • Rule rot. Census firing counts per rule per quarter: rules at zero (dead matchers, decommissioned service) and rules that never stop firing. Permanently firing is permanently ignored.

Segmentation and trend

Split by service, by customer-facing versus internal, and by hour: an internal-only alert earns a lower bar than checkout. Read responder sentiment monthly; the Google SRE Book (2016) target is no more than two incidents per 12-hour on-call shift, and the pages people dread are the ones that erode the rota. Annotate rule and staffing changes on the chart and compare 4 weeks either side. Sample low-traffic paths deliberately: a quiet path with no alert is not covered, it is untested. And do not rank teams on page count or time-to-close: both rankings get optimised, and the optimisation is silence.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-1

Design on-call and alerting for a growing service.

Answer

Core answer (first 90 seconds). Assume a service with a 99.9% availability SLO on the request path, six engineers, and one primary plus one secondary on call. I'd alert on the symptoms users feel, not on causes, and I'd size the paging threshold to a page budget rather than to a metric threshold. Concretely: a 99.9% SLO over 30 days gives an error budget of 43.2 minutes. I page when the budget is burning fast enough that a human has time to act, and I ticket when it's burning slowly. Everything else (CPU, queue depth, replica lag) goes to a dashboard, not a pager, unless it's an imminent-harm cause with no user-visible symptom yet.

Mechanism: multi-window burn-rate alerting. Burn rate is how fast you're spending the budget relative to the rate that would exhaust it exactly over the window. Burn rate 1 spends the whole 43.2 minutes over 30 days. I use two windows per alert: a long window to confirm the budget is genuinely burning, and a short window to confirm it's still happening right now. Both must be true to fire, which kills the flapping you get from a short window alone.

Burn rateLong windowShort windowBudget consumedAction
14.4x1h5m2%Page
6x6h30m5%Page
1x3d6h10%Ticket

At 14.4x you'd exhaust the month's budget in about two days, so it pages. At 1x you're on track to spend it all in 30 days: worth a ticket, not a 3 a.m. wake-up.

Why symptom beats cause. A CPU > 80% rule fires when users are fine and stays silent when a dependency degrades and CPU is flat. An error-rate or latency rule fires exactly when the SLO is at risk. The exception is imminent harm: certificate expiry, replication stopped, a security control disabled. There's no user-visible symptom yet, so you page on the cause directly.

Trade-offs. A single long window is accurate but slow to fire; a single short window fires fast but flaps. Multi-window is the middle. Burn-rate alerting is wrong when the failure is binary and instant: a dead primary needs a direct health check, not a budget calculation. And a page budget of two pages per 12-hour shift is the constraint that decides thresholds; if a rule can't fit, it's a ticket.

Failure modes and how I detect them.

FailureDetection signal
Alert fatiguePages per shift > 2, or < 50% of pages actioned
Missed pagesIncidents where users reported before the pager
FlappingSame alert firing and resolving > 3 times in an hour
Stale silencesSilences with no expiry date
Dead escalationEscalation step with no acknowledged owner

Response path. Primary acknowledges within 5 minutes; if not, the secondary is paged at 5 and the incident channel opens at 10. Every page carries a runbook link and a named owner. I review missed and noisy pages weekly, and track each action to verified closure: a rule change isn't done until the next week's page volume shows it worked.

Curated: · Written: · Reviewed:

Difficulty: Hard