Agent skill · operations · aiskillstore
observability-monitoring
Structured logging, metrics, distributed tracing, and alerting strategies
Why this skill is useful
Provides specific implementation strategies and templates for structured logging, metrics, and distributed tracing that the AI wouldn't reliably generate on its own.
What it needs
Requires opentelemetry, prometheus installed locally. About 3k tokens when loaded. Last updated 2026-08-07. 405 stars on the source repository.
What this skill does
Observability & Monitoring Skill Comprehensive frameworks for implementing observability including structured logging, metrics, distributed tracing, and alerting. When to Use Setting up application monitoring Implementing structured logging Adding metrics and dashboards Configuring distributed tracing Creating alerting rules Debugging production issues Three Pillars of Observability Structured Logging Log Levels Level Use Case ------- ---------- ERROR Unhandled exceptions, failed operations WARN Deprecated API, retry attempts INFO Business events, successful operations DEBUG Development troubleshooting Best Practice See templates/structured-logging.ts for Winston setup and request middleware Metrics Collection RED Method (Rate, Errors, Duration) Essential metrics for any service: Rate - Requests per second Errors - Failed requests per second Duration - Request latency distribution Prometheus Buckets See templates/prometheus-metrics.ts for full metrics configuration Distributed Tracing OpenTelemetry Setup Auto-instrument common libraries: Express/HTTP PostgreSQL Redis Manual Spans See templates/opentelemetry-tracing.ts for full setup Alerting Strategy Severity Levels Level Response Time Examples ------- --------------- ---------- Critical (P1) < 15 min Service down, data loss High (P2) < 1 hour Major feature broken Medium (P3) < 4 hours Increased error rate Low (P4) Next day Warnings Key Alerts Alert Condition Severity ------- ----------- ---------- ServiceDown up == 0 for 1m Critical HighErrorRate 5xx > 5% for 5m Critical HighLatency p95 > 2s for 5m High LowCacheHitRate < 70% for 10m Medium See templates/alerting-rules.yml for Prometheus alerting rules Health Checks Kubernetes Probes Probe Purpose Endpoint ------- --------- ---------- Liveness Is app running? /health Readiness Ready for traffic? /ready Startup Finished starting? /startup Readiness Response See templates/health-checks.ts for implementation Observability Checklist Implementation [ ] JSON structured lo …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills aiskillstore/observability-monitoring