alerting-design

Design alerts that page only for user harm — SLO burn-rate alerts, page versus ticket, owned rules with runbooks, alert quality, and deploy health gates. Use when adding or reviewing alerts, after a missed or noisy page, or defining deploy gates.

O que é alerting-design?

alerting-design is a Claude Code agent skill that design alerts that page only for user harm — SLO burn-rate alerts, page versus ticket, owned rules with runbooks, alert quality, and deploy health gates. Use when adding or reviewing alerts, after a missed or noisy page, or defining deploy gates.

Funciona com~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/ifundeasy/claude-crew/tree/HEAD/skills/alerting-design

Installed? Explore more Programação e Desenvolvimento skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

Perguntar na sua IA favorita

Abre um novo chat com esta habilidade de agente já pré-carregada.

Documentação

Alerting design

Rules

  • Page on symptoms, not causes: "alert on symptoms that are associated with end-user pain" (prometheus.io/docs/practices/alerting, accessed 2026-11-28). Monitoring answers "what's broken, and why?"; the page says what, dashboards say why (sre.google, "Monitoring Distributed Systems", accessed 2026-11-28).
  • A page must be urgent, actionable, and need judgement: "Every page should be actionable", "Every page response should require intelligence" (same chapter). The workbook adds that "pages and tickets are the only valid ways to get a human to take action" (sre.google workbook, "Alerting on SLOs", accessed 2026-11-28); everything else is a dashboard or a log.
  • Thresholds come from an agreed SLO (slo-definition). Without one, raise an open item with options; never guess a threshold.
  • Every alert has an owning team, a runbook (runbook-writing, alert variant), a dashboard link, and a severity label. Routing, channels, escalation, dedup, grouping, quiet hours, and delivery checks follow alert-routing and are not redefined here: pages map to its paging rows (Critical, High), tickets to Medium or Low, with the mapping recorded from the response policy.
  • Burn-rate alerts are state alerts and may auto-resolve; security alerts never do (alert-routing).
  • Never silence, mute, inhibit, or delete a production alert, and never desensitise one to quiet it. Retirement, demotion, and tuning are proposals to the alert's owner with evidence; security detections go to the detection engineer (suppression-management).
  • Alert rules are code: reviewed, unit-tested, and handed to the orchestrator to apply with a rollback (the previous rule file).

Burn-rate alerts

Burn rate = observed error ratio ÷ (1 − SLO): "how fast, relative to the SLO, the service consumes the error budget" (workbook, "Alerting on SLOs"). The burn rate that consumes a share B of the budget within a long window W of an SLO period P is B × P ÷ W; for B = 2%, P = 30 days (720 h), W = 1 h: 0.02 × 720 ÷ 1 = 14.4.

Budget consumedLong windowShort windowBurn rateNotification
2%1 h5 min14.4Page
5%6 h30 min6Page
10%3 days6 h1Ticket

Starting values from the workbook's recommended table for a 99.9% SLO over 30 days (accessed 2026-11-28); re-derive for other periods. Fire when the error ratio exceeds burn rate × (1 − SLO) over both the long and the short window; the short window, about 1/12 of the long one (workbook guidance), makes the alert reset soon after recovery.

# Prometheus-style sketch; recording rule names are placeholders, SLO 99.9%
- alert: <Service>ErrorBudgetFastBurn
  expr: |
    (<sli>:error_ratio:rate1h > (14.4 * 0.001) and <sli>:error_ratio:rate5m > (14.4 * 0.001))
    or
    (<sli>:error_ratio:rate6h > (6 * 0.001) and <sli>:error_ratio:rate30m > (6 * 0.001))
  labels: {severity: <paging row from alert-routing>, team: <owner>, slo: <SLO id>}
  annotations: {summary: <journey> is burning error budget, runbook_url: <link>, dashboard: <link>}
  • Latency SLIs: error ratio = 1 − (requests within the threshold ÷ valid requests).
  • No data: an SLI with no samples is unknown, not healthy; alert on absent data, routed like the burn alert it protects.
  • Low traffic: the workbook's options are generating artificial traffic, combining services for monitoring, changing the product so one failure matters less (retries, fallbacks), or lowering the SLO or lengthening the window.
  • Extreme targets: at 90% a total outage uses only 1.4% of the budget per hour, so the 2% page never fires; at 99.999% a month's budget lasts 26 seconds of total outage, shorter than many evaluation intervals; defend such targets by design and canaries (workbook).

Page, ticket, or dashboard

SignalRouteExample
Fast budget burn: exhaustion within hours to daysPage2% in 1 h, 5% in 6 h
Slow budget burnTicket10% in 3 days
Cause with harm inevitable before a human could react to the symptomPage or ticket by time to harmDisk full within hours, certificate expiring within days, backups failing past the RPO (backup-restore)
Cause absorbed by redundancyDashboard onlyOne instance down behind a balancer; high CPU with SLIs healthy
Monitoring itself failingPage through an independent pathHeartbeat and delivery-error checks in alert-routing

Alert quality

MeasureDefinition (workbook, "Alerting on SLOs")Evidence
Precision"The proportion of events detected that were significant"Dispositions and actions per firing
Recall"The proportion of significant events detected"Incidents first reported by users or other teams
Detection time"How long it takes to send notifications in various conditions"Incident timelines
Reset time"How long alerts fire after an issue is resolved"Alert history
LoadPages per shift and out-of-hours pagesPaging tool

Google SRE sets "the maximum number of incidents per day" at "2 per 12-hour on-call shift" and calls misconfigured monitoring "a common cause of operational overload" (sre.google, "Being On-Call", accessed 2026-11-28); the owner sets the team's targets.

Retiring alerts

  • Candidates: no human action in the review window, precision below the owner's threshold, duplicates of a burn-rate alert, runbooks that say "ignore" or "wait". Configuration "that is rarely exercised (e.g., less than once a quarter for some SRE teams) should be up for removal" ("Monitoring Distributed Systems").
  • Propose per alert, with fire and action counts for a stated window: delete, demote to ticket or dashboard, re-derive the threshold, or fix the cause. The owner decides; the change goes through review and the orchestrator.

Deploy health gates

Feed deployment-strategy with the same SLIs per version: canary error ratio and latency SLI against stable over the bake window, a burn-rate trigger (for example the canary's burn rate above the fast-burn threshold for consecutive intervals rolls back), and budget status from the policy in slo-definition (exhausted budget blocks non-exempt releases).

Procedure

  1. Inventory alerts read-only: rule, severity, owner, runbook, and for a stated window fires, acknowledgements, and actions.
  2. SLOs from slo-definition; stop with an open item where none is agreed.
  3. Write recording rules and burn-rate alerts per SLO, plus no-data alerts.
  4. Classify every other alert with the page, ticket, or dashboard table; list retirement proposals.
  5. Runbook and labels per alert; map severity to the alert-routing matrix and hand route changes to that skill.
  6. Test locally: promtool check rules <file> and promtool test rules <test.yml> (prometheus.io, accessed 2026-11-28) or the stack's equivalent, with cases for fast burn, slow burn, no burn, recovery, and no data; record the expected firing times.
  7. Gates: specify SLO-fed health gates with deployment-strategy.
  8. Hand over: diff with SHA-256, test output, expected pages per week from history, one synthetic alert per route after apply (alert-routing), rollback.
  9. Review quality on the owner's cadence and after each incident; route gaps from postmortem back here.

Output

AlertSLO or symptomExpression and windowsBurn rate and budget sharePage / ticketSeverity rowOwnerRunbookTest cases (pass)Expected per weekPrecision before / after

Then retirement proposals with evidence, gate specifications, and open items with options and one Recommendation.

Quality checklist

  • Every page traces to an SLO burn or an imminent, documented harm; causes without harm are dashboards.
  • Burn rates and windows are derived and shown; no threshold is guessed.
  • Every alert has an owner, runbook, dashboard, and severity row from alert-routing.
  • Unit tests cover fast burn, slow burn, no burn, recovery, and no data, and pass.
  • Quality measures are stated before and after; retirement went to the owner, not done directly.
  • No production alert was silenced, muted, or deleted.

Pitfalls

  • Alerting on a single short window, so every brief spike pages and recovery takes an hour to clear.
  • A page for each cause (CPU, one pod, one replica) on top of the SLO page, so one incident pages five times.
  • An SLO alert that reads healthy when the metric disappears.

Individual skills in this repo

This repo contains 7 individual skills — each has its own dedicated page.

api-contract-design

Design or change an API or event contract contract-first (REST, gRPC, GraphQL, async events) with errors, pagination, versioning, and a breaking-change check. Use when adding or changing an endpoint, message, or schema others depend on.

cloud-security-baseline

Assess a cloud organisation's security baseline read-only against CIS benchmarks — guardrails, root protection, federation, audit logging, threat detection, encryption — with gaps fixed as code. Use for new, inherited, or audited accounts.

ifundeasy/container-build

Write or fix a container image build — multi-stage Dockerfile, pinned minimal base, non-root user, no secrets in layers, SBOM — built locally, never pushed. Use when a Dockerfile or compose file changes, or an image is large, slow, or fails a scan.

incident-response

Run a security or operational incident from declaration to closure under a human incident commander — severity, roles, scoping, containment, recovery. Use when an alert, leaked secret, or outage may be an incident, or to scope, run, or close one.

log-source-onboarding

Onboard a log source into a SIEM — required fields, agent rollout, parsers proven by golden-sample tests, schema normalisation, and health checks. Use when a system must send logs, a detection lacks fields, or a source is silent or mis-parsed.

sensitive-data-scan

Scan outputs for secrets, personal data, and compensation data before publishing or sharing — patterns plus a full read, triage, masked findings, re-scan. Use before any output leaves the team, on flagged doc pages, or when merging agents' outputs.

siem-operations

Operate a SIEM such as Wazuh or OpenSearch safely — health and capacity, retention, snapshots and restore drills, upgrades with rollback, ingestion monitoring, tamper protection. Use when sizing, changing, or upgrading a SIEM, or ingestion lags.

Habilidades Relacionadas