thesoftwarehouse/copilot-collections/tsh-implementing-observability
Claude Code and agent skill by thesoftwarehouse/copilot-collections
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Observability patterns for logging, monitoring, alerting, and distributed tracing. Use when implementing metrics collection, log aggregation, alerting rules, or distributed tracing across services.
Install
npx vskill@latest install thesoftwarehouse/copilot-collections/tsh-implementing-observabilitySKILL.md
Observability Patterns
When to Use
- Setting up monitoring and alerting for applications
- Implementing centralized logging
- Adding distributed tracing to microservices
- Designing SLOs/SLIs and error budgets
- Creating dashboards and runbooks
Three Pillars of Observability
| Pillar | Purpose | Tools | |
|---|---|---|---|
| Metrics | Quantitative measurements over time | Prometheus, CloudWatch, Datadog, Grafana | |
| Logs | Discrete events with context | ELK, Loki, CloudWatch Logs, Splunk | |
| Traces | Request flow across services | Jaeger, Zipkin, X-Ray, Tempo |
Stack Detection
Check which observability stack the project uses:
prometheus.ymlorServiceMonitor→ Prometheusfluent-bit.conforfluentd.conf→ Fluent Bit/Fluentdotel-collector-config.yaml→ OpenTelemetry- AWS with
aws_cloudwatch_*resources → CloudWatch datadog-agentorDD_*env vars → Datadog
Use context7 to look up stack-specific configuration syntax.
Solution Decision Matrix
Metrics Stack
| Scenario | Recommended Solution | |
|---|---|---|
| Kubernetes-native, cost-sensitive | Prometheus + Grafana | |
| AWS-native, simple setup | CloudWatch Metrics | |
| Multi-cloud, enterprise | Datadog or New Relic | |
| OpenTelemetry-first | Prometheus with OTLP receiver |
Logging Stack
| Scenario | Recommended Solution | |
|---|---|---|
| Kubernetes, cost-sensitive | Loki + Grafana | |
| AWS-native | CloudWatch Logs | |
| High volume, complex queries | Elasticsearch (ELK) | |
| Multi-cloud, managed | Datadog Logs or Splunk |
Tracing Stack
| Scenario | Recommended Solution | |
|---|---|---|
| Kubernetes, open-source | Jaeger or Tempo | |
| AWS-native | X-Ray | |
| Multi-cloud, correlated | Datadog APM | |
| Vendor-agnostic | OpenTelemetry → any backend |
Kubernetes Observability Pattern
SLO/SLI Framework
Key Metrics (RED Method for Services)
| Metric | Description | Example SLI | |
|---|---|---|---|
| Rate | Requests per second | rate(http_requests_total[5m]) | |
| Errors | Failed requests | rate(http_requests_total{status=~"5.."}[5m]) | |
| Duration | Latency distribution | histogram_quantile(0.99, rate(http_request_duration_seconds_bucket[5m])) |
Key Metrics (USE Method for Resources)
| Metric | Description | Example | |
|---|---|---|---|
| Utilization | % time resource is busy | CPU usage, memory usage | |
| Saturation | Queue depth, waiting | Pod pending, connection pool | |
| Errors | Error count | OOM kills, disk errors |
SLO Definition Template
Alerting Strategy
Alert Severity Levels
| Severity | Response | Example | |
|---|---|---|---|
| Critical | Page on-call immediately | Service down, data loss risk | |
| Warning | Investigate within hours | Error rate elevated, disk 80% | |
| Info | Review during business hours | Deployment completed, scaling event |
Alert Quality Rules
- Actionable: Every alert must have a clear response action
- Relevant: Alert on symptoms (user impact), not causes
- Unique: Avoid duplicate alerts for same incident
- Timely: Alert early enough to prevent impact
Alert Template (Prometheus)
Structured Logging
Log Format (JSON)
Required Log Fields
| Field | Purpose | Correlation | |
|---|---|---|---|
timestamp | When event occurred | Time-based queries | |
level | Severity (debug/info/warn/error) | Filtering | |
service | Source service name | Service filtering | |
trace_id | Distributed trace identifier | Cross-service correlation | |
message | Human-readable description | Search |
Process
- Discover context → Check existing observability setup (Prometheus, CloudWatch, etc.)
- Choose stack → Use decision matrix based on environment and requirements
- Instrument apps → Add OpenTelemetry SDK or auto-instrumentation
- Configure collection → Set up collectors, exporters, and storage
- Define SLOs → Establish SLIs, targets, and error budgets
- Create alerts → Implement actionable alerts with runbooks
- Build dashboards → Create service and infrastructure dashboards
- Document runbooks → Write response procedures for each alert
Checklist
- [ ] All services emit metrics, logs, and traces
- [ ] Trace IDs propagated across service boundaries
- [ ] Structured logging with consistent format (JSON)
- [ ] SLOs defined with error budgets
- [ ] Alerts are actionable with runbook links
- [ ] Dashboards show service health at a glance
- [ ] Log retention policy configured
- [ ] PII/sensitive data excluded from logs
- [ ] On-call rotation defined for critical alerts
Anti-Patterns
| Don't | Do | |
|---|---|---|
| Alert on every metric threshold | Alert on user-impacting symptoms | |
| Log everything at DEBUG in production | Use appropriate log levels | |
| Unstructured log messages | Structured JSON logging | |
| Missing trace context | Propagate trace IDs across services | |
| Dashboards with 50+ panels | Focused dashboards per service/domain | |
| Alerts without runbooks | Every alert links to response procedure | |
| Store logs indefinitely | Define retention based on compliance needs |
Related Skills
tsh-implementing-kubernetes- For K8s-native observability setuptsh-implementing-ci-cd- For pipeline observability integrationtsh-managing-secrets- For secure credential storage for observability tools
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.github/skills/tsh-implementing-observability/SKILL.md
Popularity
- Repository stars
- 266
- Repository forks
- 18
- 7-day trend score
- 28
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/thesoftwarehouse/copilot-collections/tsh-implementing-observability)