跳到正文
cccskills
免费在 GitHub 公开

alert-rules

Designing alert rules that fire when it matters — thresholds, burn rates, and routing — for any monitoring stack.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(1)

  • SKILL.md3.8 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

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

  1. Start from SLIs/SLOs: define burn-rate alerts for each SLI (fast + slow windows); these are your primary paging alerts.
  2. Add spike/regression alerts for error tracking (new issues, reappearing resolved issues, abnormal volume) routed to owning teams.
  3. Add resource-exhaustion warnings (disk filling in < N hours, cert expiring, quota at 80%) as tickets — predictive, not paging, unless exhaustion is imminent.
  4. Write the alert message well: what, where, current value vs threshold, probable impact, runbook link, and relevant dashboard link.
  5. Tune deliberately: after any false positive or missed detection, adjust the rule (not just silence it) — thresholds, windows, and grouping are living configuration.
  6. 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.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Master 1Password: vaults, Watchtower, passkeys, SSH agent, CLI, and family/team administration. Use when getting full value from 1Password personally or administering it for others.

中文简介正在准备中。当前显示原文说明。

aicodedecode/awesome-muse-skills252026年10月10日 更新

Create 3D visuals with modeling, texturing, lighting, rendering, and optimization for web and product.

中文简介正在准备中。当前显示原文说明。

aicodedecode/awesome-muse-skills252026年10月10日 更新

Create 3D web experiences: scene setup, models, materials, lighting, animation, scroll-driven scenes, and performance budgets. Use when adding 3D to websites beyond basic demos.

中文简介正在准备中。当前显示原文说明。

aicodedecode/awesome-muse-skills252026年10月10日 更新

Writing abstracts that get papers read — structured content, the 5-sentence core, and journal-specific constraints.

中文简介正在准备中。当前显示原文说明。

aicodedecode/awesome-muse-skills252026年10月10日 更新

Learn effectively from courses and academies: choosing programs, studying actively, and converting courses into skills. Use when investing time/money in structured learning.

中文简介正在准备中。当前显示原文说明。

aicodedecode/awesome-muse-skills252026年10月10日 更新

Audit designs for accessibility with WCAG checklists covering color, type, focus, motion, and content.

中文简介正在准备中。当前显示原文说明。

aicodedecode/awesome-muse-skills252026年10月10日 更新

查看 aicodedecode 的全部技能

报告此技能的问题