$npx -y skills add girijashankarj/cursor-handbook --skill setup-monitoringGuide for setting up or extending monitoring (metrics, logs, alerts) for a service. Use when the user asks to set up monitoring or add alerts.
| 1 | # Skill: Setup monitoring |
| 2 | |
| 3 | ## Trigger |
| 4 | When the user asks to set up monitoring, add alerts, or configure dashboards. |
| 5 | |
| 6 | ## Steps |
| 7 | |
| 8 | 1. **Scope** — Identify what to monitor (API latency, errors, DB, queue depth) and where (cloud provider, vendor). |
| 9 | 2. **Metrics** — Define 3–5 key metrics (e.g. request rate, error rate, p99 latency); use structured logging with correlationId. |
| 10 | 3. **Alerts** — Propose thresholds (e.g. error rate > 1%, p99 > 2s) and severity; document in runbook. |
| 11 | 4. **Dashboard** — List panels to add (time series, status); use placeholders for dashboard URLs. |
| 12 | 5. **Logs** — Remind: no PII or secrets; JSON format; include correlationId per project rules. |
| 13 | |
| 14 | ## Rules |
| 15 | - Follow `.cursor/rules/devops/monitoring.mdc`. Use placeholder resource names. |