用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/Dev-Toolbelt/dev-team-agents --skill observability-slo命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | observability-slo |
| description | SLO/SLI — error budgets, alerting, four golden signals. |
| Signal | Definition | Example Threshold |
|---|---|---|
| Latency | Time to serve a request; track p50, p95, p99 separately — errors must not lower the average | p99 < 500ms for checkout API |
| Traffic | Request rate; baseline for anomaly detection | Requests per second, events per minute |
| Errors | Rate of failed requests (5xx, timeouts, business logic failures) | < 0.1% error rate |
| Saturation | How "full" the service is — CPU, memory, queue depth, connection pool | CPU < 80%, queue depth < 1000 |
Define explicit thresholds for all four signals per service before writing alerts.
An SLI (Service Level Indicator) is a quantitative measure of service behavior:
Examples:
% of /api/checkout requests completing in < 500ms% of API requests returning 2xx or 3xx% of background jobs completing without error within SLA windowAvoid vanity SLIs (e.g., uptime of internal health-check endpoint that users never call).
| Principle | Rule |
|---|---|
| Realistic, not aspirational | Never set 100% — it is unachievable and creates perverse incentives |
| Agreed with stakeholders | Product, engineering, and support must align on the target |
| Documented in the service runbook | Include what the SLO is, how it is measured, and what triggers a response |
Common reference points:
| SLO | Monthly downtime budget |
|---|---|
| 99.0% | 7.3 hours |
| 99.5% | 3.6 hours |
| 99.9% | 43.8 minutes |
| 99.95% | 21.9 minutes |
Alert on SLO burn rate, not on raw metric spikes:
| Condition | Action |
|---|---|
| Burn rate > 2x in the last 1 hour | Page on-call — budget will be exhausted in ~2 days at this rate |
| Burn rate > 5x in the last 5 minutes | Page on-call immediately — acute incident in progress |
| Budget < 10% remaining in the window | Notify team lead — feature freeze decision required |
Do not alert on:
Three pillars — all three are required for effective observability:
| Pillar | Purpose | Tool |
|---|---|---|
| Structured logs | Searchable event records with context (user ID, trace ID, error code) | JSON logs → Loki, CloudWatch, Datadog |
| Distributed traces | Request flow across services; latency breakdown per span | OpenTelemetry → Jaeger, Tempo, X-Ray |
| Metrics | Aggregated counters and histograms over time | Prometheus, CloudWatch Metrics |
Use OpenTelemetry for instrumentation — vendor-neutral, avoids SDK lock-in. Export to any backend.
Minimum required instrumentation per service:
One dashboard per service with:
Link the dashboard URL in the service runbook and on-call rotation doc.
skills/shared/incident-response/SKILL.md)基于 SOC 职业分类