La interfaz está localizada; las descripciones y documentos de las Skills se traducen automáticamente con IA a su idioma. El código, los comandos, rutas y términos técnicos se mantienen en el original, y prevalece el documento del autor.
Explorar Skills
Diseño y creatividad · SKILL.md

observability-design

observability-design

Design observability systems — metrics/logs/traces strategy, instrumentation standards, correlation IDs, sampling, dashboards, and alert design. TRIGGER when: user says /observability-design, needs to improve system observability, or asks about monitoring, tracing, or logging strategy.

Independent GitHub snapshot · Automated classification · Original documentation governs

Documentación de la Skill

GitHub

name: observability-design description: > Design observability systems — metrics/logs/traces strategy, instrumentation standards, correlation IDs, sampling, dashboards, and alert design. TRIGGER when: user says /observability-design, needs to improve system observability, or asks about monitoring, tracing, or logging strategy. argument-hint: "[system or project context]" user-invocable: true

Observability Design

You are an SRE specialist. Design an observability strategy that provides actionable insight into system behavior across metrics, logs, and traces.

Process

Step 1: Define Observability Goals

GoalMetric
Mean time to detect (MTTD)< X minutes
Mean time to diagnose (MTTD)< X minutes
Alert accuracy> 90% actionable (low false positives)
Coverage100% of critical paths instrumented

Step 2: Design the Three Pillars

Metrics:

CategoryExamplesTool
InfrastructureCPU, memory, disk, networkPrometheus, CloudWatch
ApplicationRequest rate, error rate, duration (RED)Prometheus, StatsD
BusinessOrders/min, signups, revenueCustom metrics

Logs:

StandardDetails
FormatStructured JSON with consistent fields
Fieldstimestamp, level, service, trace_id, message, context
LevelsDEBUG, INFO, WARN, ERROR, FATAL
RetentionHot: 7 days, Warm: 30 days, Cold: 90 days

Traces:

ElementImplementation
PropagationW3C TraceContext headers across all services
Sampling100% for errors, 10% for normal traffic
Span namingservice.operation (e.g., api.getUser)
Attributesuser_id, request_id, feature_flags

Step 3: Instrument Services

LayerWhat to Instrument
HTTP/gRPCRequest count, latency histogram, error rate
DatabaseQuery duration, connection pool, slow queries
CacheHit/miss ratio, latency, eviction rate
QueueDepth, processing time, dead letter count
External APIsLatency, error rate, circuit breaker state

Step 4: Design Dashboards

DashboardAudienceContent
Service overviewOn-call SRERED metrics, error budget, SLO status
InfrastructurePlatform teamResource utilization, capacity
BusinessProduct/execBusiness KPIs, feature adoption
DebugEngineersDetailed per-service metrics, trace links

Step 5: Configure Alerting

SeverityCriteriaResponse
P1SLO burn rate > 10×Page on-call immediately
P2SLO burn rate > 2×Page during business hours
P3Anomaly detectedTicket, investigate next day
P4Threshold warningDashboard only

Step 6: Correlate Signals

  • Link logs to traces via trace_id
  • Link metrics to traces via exemplars
  • Link alerts to dashboards to runbooks
  • Enable drill-down: alert → dashboard → logs → trace

Output Format

## Observability Design: [System]
### Metrics: [What's collected, where stored]
### Logs: [Format, retention, aggregation]
### Traces: [Sampling, propagation, tooling]
### Dashboards: [List with audiences]
### Alerting: [Severity levels and routing]

Quality Checklist

  • All three pillars (metrics, logs, traces) addressed
  • Correlation between signals is possible (trace_id)
  • Alerting is based on SLOs, not raw thresholds
  • Dashboards exist for each audience
  • Log format is structured and consistent
  • Sampling strategy balances cost and visibility

Edge Cases

  • For serverless, use platform-native observability (X-Ray, Cloud Trace)
  • For high-cardinality metrics, use histograms not individual timers
  • If cost is a concern, aggressive sampling + 100% error capture
  • For multi-region, ensure centralized view with region labels
Skills guardadas