alert-rules
Designing alert rules that fire when it matters — thresholds, burn rates, and routing — for any monitoring stack.
- License 许可
- MIT
- 最近更新
- 2026-11-07
- Stars
- ★ 0
- Forks
- 1
01 前言 Front Matter
- name
- alert-rules
- category
- sentry
- description
- Designing alert rules that fire when it matters — thresholds, burn rates, and routing — for any monitoring stack.
03 SKILL.md 正文
Overview
Alert rules translate "something is wrong" into "the right human knows, with enough context to act". Good alerting is a design discipline: alert on user-impacting symptoms, route by severity and ownership, and ruthlessly eliminate noise. This skill covers alert design patterns that work across monitoring platforms.
When to use
- Writing alert rules for services, error trackers, or infrastructure
- Reducing alert noise and fatigue
- Choosing between threshold alerts and burn-rate (SLO) alerts
- Setting up routing, escalation, and on-call integration
- Reviewing an existing alert set for quality
Core concepts
Alert on symptoms, not causes. Users experience "checkout is failing", not "CPU is 85%". Symptom alerts (error rate, latency, availability) fire when users hurt; cause metrics (CPU, disk, queue depth) belong on dashboards and as diagnostic context — or as lower-severity warnings when they predict symptoms.
Burn-rate alerting for SLOs. Multi-window burn rate (fast-burn: 1h/6h windows → page; slow-burn: 1d/3d → ticket) detects real reliability threats with far fewer false positives than static thresholds. It's the gold standard for request-based services; use it wherever you have SLIs.
Severity tiers with distinct responses. Critical/page: user impact now, human acts immediately. Warning/ticket: degrading or at-risk, handle in working hours. Info:FYI, dashboards only. Every alert declares its tier, and tiers map to notification channels — never page for a warning.
Routing by ownership. Alerts go to the team that owns the code, via their on-call rotation — not to a global channel everyone mutes. Maintain the service→team→rotation mapping; misrouted alerts are effectively unmonitored.
Every alert needs a runbook link. The alert message should say what's wrong, why it fired (the actual values), and link the response procedure. An alert without a runbook is a puzzle delivered at 3am.
Practical workflow
- Start from SLIs/SLOs: define burn-rate alerts for each SLI (fast + slow windows); these are your primary paging alerts.
- Add spike/regression alerts for error tracking (new issues, reappearing resolved issues, abnormal volume) routed to owning teams.
- Add resource-exhaustion warnings (disk filling in < N hours, cert expiring, quota at 80%) as tickets — predictive, not paging, unless exhaustion is imminent.
- Write the alert message well: what, where, current value vs threshold, probable impact, runbook link, and relevant dashboard link.
- Tune deliberately: after any false positive or missed detection, adjust the rule (not just silence it) — thresholds, windows, and grouping are living configuration.
- Review quarterly: which alerts fired, which were actionable, which were noise — demote or fix the noisy ones; delete alerts nobody would act on.
Common pitfalls
- Threshold on everything — static thresholds on noisy metrics = pager fatigue; prefer burn rates and anomaly-aware rules.
- No grouping/dedup — 200 alerts for one incident; group by incident/ service so responders see one actionable notification.
- Alerting on causes — CPU/disk pages while users are fine; reserve pages for user-impacting symptoms.
- Stale ownership — alerts routing to a disbanded team or an ex- employee's email; audit routing with org changes.
- Silencing instead of fixing — snoozed alerts that never get tuned; every silence should create a follow-up task.
- Missing the "all clear" — no resolve notification leaves responders unsure; ensure alerts resolve (and notify) when healthy.
04 同仓库更多 Skills
web-scrape
Turn web pages into LLM-ready markdown via the Firecrawl API (renders JS, anti-bot handling). Use when browser_open/fetch fails on JS-heavy pages, or when you need clean markdown/structured extraction from a site. Requires FIRECRAWL_API_KEY.
design-taste-frontend
tasteskill v2, the anti-slop frontend skill. Art direction for websites, distilled from a study of 247 curated gallery sites (One Page Love, Awwwards Sites of the Day). Deals researched directions (idea, composition, type, palette, photographs, section blueprints) from a library, enforces a strict no-slop house style with a real-browser inspector, and runs a look-and-fix loop on screenshots. Use this whenever you build, design, redesign, restyle, polish or review a landing page, marketing site, portfolio, product page, one-pager, hero or any public-facing web page, in any stack (HTML/CSS, React, Next.js, Vue, Svelte, Astro, Tailwind) — also when the user says a page looks generic, templated, "AI-made", sloppy, or asks to make it look designed, premium, award-level or less like every other site. Not for dashboards or app screens.
test-driven-development
Use when implementing any feature or bugfix, before writing implementation code
systematic-debugging
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes
requesting-code-review
Use when completing tasks, implementing major features, or before merging to verify work meets requirements
brainstorming
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).