用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/nexus-labs-automation/backend-observability --skill slo-alerting命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | slo-alerting |
| description | Define SLIs, SLOs, and implement burn-rate alerting |
| triggers | ["SLO definition","SLI metrics","error budget","burn rate alerting"] |
| priority | 2 |
Define SLIs, set SLO targets, alert on burn rate (not raw error rate).
| Term | Definition | Example |
|---|---|---|
| SLI | Quantitative measure | % successful requests |
| SLO | Target for SLI | 99.9% success |
| Error Budget | Allowed failure | 0.1% = 43 min/month |
| Burn Rate | Budget consumption speed | 10x = exhausted in 3 days |
Availability: successful_requests / total_requests
Latency: requests_under_threshold / total_requests
Error Rate: error_requests / total_requests
Alert on how fast you're consuming budget, not raw error rate:
| Alert Level | Burn Rate | Time to Exhaust |
|---|---|---|
| Page (critical) | 14.4x | 2 days |
| Page (warning) | 6x | 5 days |
| Ticket (medium) | 3x | 10 days |
Use long + short windows to balance speed and noise:
# Critical: Fast burn (14.4x over 1h AND 5m)
- alert: HighBurnRate_Critical
expr: (rate_1h / budget > 14.4) and (rate_5m / budget > 14.4)
severity: critical
# Warning: Slower burn (6x over 6h AND 30m)
- alert: HighBurnRate_Warning
expr: (rate_6h / budget > 6) and (rate_30m / budget > 6)
severity: warning
references/methodology/sli-slo-framework.md基于 SOC 职业分类