observability
Skill9 starsChanged 8 months agoMITView on GitHub
**Observability, Monitoring & SRE**: Comprehensive guide for implementing observability (logs, metrics, traces), setting up monitoring and alerting, defining SLOs/SLIs/SLAs, creating dashboards, and incident detection. Use whenever the user mentions 'observability', 'monitoring', 'alerting', 'logging', 'metrics', 'tracing', 'SLO', 'SLI', 'SLA', 'error budget', 'dashboard', 'Grafana', 'Prometheus', 'DataDog', 'CloudWatch', 'New Relic', 'Jaeger', 'OpenTelemetry', 'OTEL', 'uptime', 'latency', 'p99', 'alert fatigue', 'on-call', 'PagerDuty', or asks 'how do I know if my system is healthy', 'what should I monitor', or wants to improve production visibility.
103 other projects use a version of this.
Adopted by
Most recently taken up by
- Arupbiswas09/claude_skillstheir own version, first seen Nov 29, 2026
- vjrivmon/Setup-Software-IAtheir own version, first seen Nov 29, 2026
- anmolnagpal/devops-skillstheir own version, first seen Nov 29, 2026
- Mark-Life/telegram-claude-codextheir own version, first seen Nov 29, 2026
- opensearch-project/opensearch-agent-skillstheir own version, first seen Nov 29, 2026
- sivaprasadreddy/sivalabs-agent-skillstheir own version, first seen Nov 29, 2026
Used with
Projects with it also use gitops, background-jobs and 7 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
kcns008Skillgitops
GitOps Agent (Flow) — manages ArgoCD applications, Helm charts, Kustomize overlays, deployment strategies (canary, blue-green, rolling), multi-cluster GitOps, and drift detection for Kubernetes and OpenShift clusters.
Also in 5 projects that use this
YepAPISkillbackground-jobs
Queue workers with BullMQ/Inngest/Trigger.dev, job retries, dead letter queues, concurrency.
Also in 5 projects that use this
Mushfiqur-Rahman-RobinSkillrag-systems
Best practices for building Retrieval-Augmented Generation systems — chunking, embedding, hybrid retrieval, reranking, indexing, caching, evaluation, observability — plus a catalog of RAG patterns and when each applies.
Also in 3 projects that use this
jholhewresSkilldora-metrics
Calculate DORA metrics from git + deploy logs
Also in 3 projects that use this
wpankSkillcaching
Caching strategies, invalidation, eviction policies, HTTP caching, distributed caching, and anti-patterns. Use when designing cache layers, choosing eviction policies, debugging stale data, or optimizing read-heavy workloads.
Also in 6 projects that use this
JohnJBorenSkillci-cd
CI/CD pipeline design, GitHub Actions, testing automation, and deployment strategies
Also in 14 projects that use this
Other versions103 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 103
- openai/plugins★ 8.4ksame name
- BuilderIO/agent-native★ 7.8ksame name
- brianlovin/briOS★ 2.3ksame name
- lablup/backend.ai★ 684same name
- DevelopersGlobal/ai-agent-skills★ 220same name
- sivaprasadreddy/sivalabs-agent-skills★ 198same name
- kid-sid/claude-spellbook★ 190same name
- YougLin-dev/Aha-Loop★ 181same name
- proyecto26/system-design-skills★ 118same name
- TheBeardedBearSAS/claude-craft★ 109same name
93 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository53 other files it gives its agents.
- adrSkill
- ai-ml-engineeringSkill
- api-documentationSkill
- api-gateway-patternsSkill
- architecture-review-boardSkill
- backend-reviewSkill
- chaos-engineeringSkill
- code-reviewSkill
- compliance-reviewSkill
- cost-optimizationSkill
- csharp-dotnet-reviewSkill
- database-reviewSkill
- data-engineeringSkill
- design-patternsSkill
- developer-experienceSkill
- devops-infraSkill
- domain-modelingSkill
- elixir-reviewSkill
- engineering-budgetSkill
- engineering-metricsSkill
- event-driven-architectureSkill
- feature-flagsSkill
- flutter-reviewSkill
- frontend-reviewSkill
- full-reviewSkill
- git-flowSkill
- go-reviewSkill
- graphql-reviewSkill
- health-checkSkill
- incident-postmortemSkill
- kubernetes-reviewSkill
- migration-strategySkill
- multi-tenancySkill
- on-call-designSkill
- one-on-oneSkill
- pentestSkill
- performance-profilingSkill
- pr-descriptionSkill
- python-reviewSkill
- quality-standardSkill
- rust-reviewSkill
- security-reviewSkill
- sprint-planningSkill
- swift-reviewSkill
- systematic-debuggingSkill
- team-scalingSkill
- tech-debt-prioritizationSkill
- technical-interviewSkill
- tech-specSkill
- terraform-iacSkill
- testing-strategySkill
- ux-reviewSkill
- vendor-evaluationSkill
The file
We split this skill into the rules it gives an agent
11 rules. 0 are common, 10 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 85 edited versions we read keep these.
10
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 44
Always structured (JSON), never unstructured text
- Distinctive: line 47
Never log PII, passwords, tokens, or full credit card numbers
- Distinctive: line 49
Use consistent field names across all services
- Distinctive: line 87
Use OpenTelemetry (OTEL) as the instrumentation standard
- Distinctive: line 89
Add custom spans for business-critical operations
- Distinctive: line 101
Always: SLA ≤ SLO (your internal target should be stricter than your external commitment)
- Distinctive: line 201
Every service should have a dashboard with:
- Distinctive: line 230
Use consistent time ranges across panels (default: last 6 hours)
- Very specific: line 231
Add threshold lines on every chart (green/yellow/red zones)
- Distinctive: line 233
Don't put more than 12 panels on a dashboard (cognitive overload)
- Distinctive: line 235
Use variables/dropdowns for environment, service, region filtering
“Common” is measured: kept by at least 6 in 10 of the 85 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Observability, Monitoring & SRE
You are a senior SRE / platform engineer helping teams build observable systems. Observability is not about collecting data — it's about being able to answer questions you haven't thought of yet when things go wrong at 3am.
The Three Pillars
1. Logs — What happened
Structured events that tell the story of what the system did.
{
"timestamp": "2024-03-15T14:32:01.123Z",
"level": "error",
"service": "payment-service",
"traceId": "abc123def456",
"spanId": "span789",
"userId": "usr_42",
"message": "Payment processing failed",
"error": "InsufficientFundsError",
"orderId": "ord_123",
"amount": 15000,
"currency": "BRL",
"duration_ms": 340,
"environment": "production"
}Log best practices:
- Always structured (JSON), never unstructured text
- Include correlation/trace IDs in every log line
- Log level discipline: ERROR for things that need attention, WARN for degradation, INFO for business events, DEBUG for troubleshooting (off in prod by default)
- Never log PII, passwords, tokens, or full credit card numbers
- Include context: who (user), what (action), where (service), result
- Use consistent field names across all services
2. Metrics — How much / how fast
Numeric measurements aggregated over time.
The Four Golden Signals (Google SRE):
| Signal | What it measures | Example metric |
| Latency | Time to serve a request | http_request_duration_seconds |
| Traffic | Demand on the system | http_requests_total |
| Errors | Rate of failed requests | http_requests_errors_total |
| Saturation | How "full" the system is | cpu_usage_percent, memory_usage_percent |
USE Method (for infrastructure):
- Utilization — % of resource capacity used
- Saturation — Queue depth, waiting work
- Errors — Error count per resource
RED Method (for services):
- Rate — Requests per second
- Errors — Errors per second
- Duration — Latency distribution (p50, p90, p99)
3. Traces — How requests flow
Distributed traces show the path of a request across services.
[Gateway] ──200ms──> [Auth Service] ──50ms──> [User DB]
│
└──300ms──> [Order Service] ──150ms──> [Payment Service] ──100ms──> [Stripe API]
│
└──80ms──> [Order DB]Tracing best practices:
- Use OpenTelemetry (OTEL) as the instrumentation standard
- Propagate trace context across all service boundaries (HTTP headers, message queues)
- Add custom spans for business-critical operations
- Tag spans with relevant business context (user_id, order_id)
- Sample traces in production (100% is expensive; 1-10% is usually sufficient)
SLOs, SLIs & SLAs
Definitions
- SLI (Service Level Indicator): A measurable metric — "what we measure"
- SLO (Service Level Objective): A target for the SLI — "what we aim for"
- SLA (Service Level Agreement): A contractual commitment — "what we promise (with consequences)"
Always: SLA ≤ SLO (your internal target should be stricter than your external commitment)
Defining Good SLOs
Step 1: Identify critical user journeys
- User login
- Search products
- Place order / make payment
- View dashboard / reportsStep 2: Define SLIs for each journey
| Journey | SLI Type | Measurement |
| Login | Availability | % of login requests returning 2xx in <500ms |
| Search | Latency | p99 latency of search requests |
| Payment | Correctness | % of payments processed without error |
| Dashboard | Freshness | % of data points updated within 5 minutes |
Step 3: Set SLO targets
## Payment Service SLOs
Availability: 99.95% of requests succeed (2xx) per rolling 30 days
→ Error budget: 21.6 minutes of downtime per month
Latency: 99% of requests complete in <500ms per rolling 30 days
→ p99 target: 500ms
Correctness: 99.99% of payments processed correctly
→ Max 1 incorrect payment per 10,000Error Budgets
Error Budget = 1 - SLO target
If SLO = 99.95% availability:
Error budget = 0.05% = 21.6 minutes/month
Budget remaining > 50%: Ship features freely
Budget remaining 20-50%: Proceed cautiously, prioritize reliability
Budget remaining < 20%: Freeze features, focus on reliability
Budget exhausted: Full stop on feature work until resolvedAlerting Strategy
Alert Hierarchy
Page (wake someone up):
→ SLO breach: error budget burn rate is critical
→ Complete service outage
→ Data loss / corruption risk
→ Security incident indicators
Notify (Slack/email, business hours):
→ SLO warning: burning budget faster than expected
→ Elevated error rates (not yet SLO breach)
→ Resource approaching capacity (>80%)
→ Certificate expiring within 14 days
→ Dependency degradation
Log (for investigation, no notification):
→ Individual request failures
→ Background job retries
→ Cache miss rate changes
→ Minor latency increasesAlert Quality Rules
- Every alert must be actionable — if the on-call can't do anything, it shouldn't page
- Alert on symptoms, not causes — "error rate >5%" not "CPU >90%" (high CPU might be fine)
- Use burn rate alerts for SLOs — a 1% error rate for 5 minutes is different from 1% for 5 hours
- Alert fatigue kills — if you're ignoring alerts, you have too many or they're wrong
- Every page should have a runbook link — what to check, what to do, who to escalate to
Burn Rate Alerting
Fast burn (page immediately):
14.4x burn rate over 1 hour = will exhaust 30-day budget in 2 days
Slow burn (notify):
3x burn rate over 6 hours = will exhaust budget in 10 days
Ticket:
1x burn rate over 3 days = on track to exhaust budgetDashboard Design
Service Dashboard Template
Every service should have a dashboard with:
## Row 1: SLO Status (the most important row)
- SLO compliance (current vs target)
- Error budget remaining (% and time)
- Burn rate (current)
## Row 2: Golden Signals
- Request rate (RPS) with baseline overlay
- Error rate (%) with SLO threshold line
- Latency (p50, p90, p99) with SLO threshold
- Saturation (CPU, memory, connections)
## Row 3: Dependencies
- Downstream service health
- Database response time and connection pool
- Cache hit rate
- Message queue depth and consumer lag
## Row 4: Business Metrics
- Transactions per minute
- Revenue processed (if applicable)
- Active users
- Feature-specific metricsDashboard Best Practices
- Use consistent time ranges across panels (default: last 6 hours)
- Add threshold lines on every chart (green/yellow/red zones)
- Include a "compared to last week" overlay for spotting anomalies
- Don't put more than 12 panels on a dashboard (cognitive overload)
- Separate "overview" dashboard from "deep-dive" per-service dashboards
- Use variables/dropdowns for environment, service, region filtering
OpenTelemetry Setup
Instrumentation Checklist
- [ ] OTEL SDK installed and configured in all services
- [ ] Trace context propagated in HTTP headers (W3C traceparent)
- [ ] Trace context propagated in message queue headers
- [ ] Custom spans for business-critical operations
- [ ] Metrics exported (Prometheus format or OTLP)
- [ ] Logs enriched with trace ID and span ID
- [ ] Sampling configured (head-based or tail-based)
- [ ] Collector deployed (OTEL Collector for routing/processing)
- [ ] Exporters configured (Jaeger/Tempo for traces, Prometheus for metrics, Loki for logs)On-Call Best Practices
- Rotation should be at least 2 people per shift
- Maximum on-call duration: 1 week, then mandatory handoff
- On-call handoff document: outstanding issues, recent changes, known risks
- Post-incident review for every page (not just major incidents)
- Measure: pages per week, time-to-acknowledge, time-to-resolve
- Target: fewer than 2 pages per on-call shift (otherwise, fix the system)
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

