Observability Designer (POWERFUL)
Category: Engineering
Tier: POWERFUL
Description: Design comprehensive observability strategies for production systems including SLI/SLO frameworks, alerting optimization, and dashboard generation.
Overview
Observability Designer creates production-ready dashboards, alert configurations, and monitoring strategies across the three pillars (metrics, logs, traces).
When NOT to use → slo-architect. For SLO/SLI design with error-budget math, multi-window burn-rate alerting thresholds, and SLO review gates, route to slo-architect — it is the authoritative skill for that half. This skill's slo_designer.py produces a quick scaffold only. This skill's lane: dashboards (dashboard_generator.py) and alert-noise reduction (alert_optimizer.py).
Quick Start
# Dashboard spec (Grafana JSON + docs) for a service
python3 scripts/dashboard_generator.py --service-type api --name payments --criticality critical --role sre --format grafana -o dashboard.json --doc-output dashboard.md
# Analyze an existing alert config for noise, duplicates, and coverage gaps
python3 scripts/alert_optimizer.py --input alerts.json --analyze-only --report alert_report.json
# ...then emit the optimized config once the report is reviewed:
python3 scripts/alert_optimizer.py --input alerts.json --output alerts_optimized.json
# Quick SLO scaffold (hand off to slo-architect for the real error-budget work)
python3 scripts/slo_designer.py --service-type api --criticality high --user-facing true --service-name payments -o slo_scaffold.json
Verification loop: after deploying optimized alerts, track the report's noise metrics for one on-call rotation — if the actionable-alert ratio didn't improve, re-run --analyze-only against the live config and iterate. Import the generated dashboard into Grafana and confirm every golden-signal panel renders with live data before closing the task.
Core Competencies
SLI/SLO/SLA Framework Design
- Service Level Indicators (SLI): Define measurable signals that indicate service health
- Service Level Objectives (SLO): Set reliability targets based on user experience
- Service Level Agreements (SLA): Establish customer-facing commitments with consequences
- Error Budget Management: Calculate and track error budget consumption
- Burn Rate Alerting: Multi-window burn rate alerts for proactive SLO protection
Three Pillars of Observability
Metrics
- Golden Signals: Latency, traffic, errors, and saturation monitoring
- RED Method: Rate, Errors, and Duration for request-driven services
- USE Method: Utilization, Saturation, and Errors for resource monitoring
- Business Metrics: Revenue, user engagement, and feature adoption tracking
- Infrastructure Metrics: CPU, memory, disk, network, and custom resource metrics
Logs
- Structured Logging: JSON-based log formats with consistent fields
- Log Aggregation: Centralized log collection and indexing strategies
- Log Levels: Appropriate use of DEBUG, INFO, WARN, ERROR, FATAL levels
- Correlation IDs: Request tracing through distributed systems
- Log Sampling: Volume management for high-throughput systems
Traces
- Distributed Tracing: End-to-end request flow visualization
- Span Design: Meaningful span boundaries and metadata
- Trace Sampling: Intelligent sampling strategies for performance and cost
- Service Maps: Automatic dependency discovery through traces
- Root Cause Analysis: Trace-driven debugging workflows
Dashboard Design Principles
Information Architecture
- Hierarchy: Overview → Service → Component → Instance drill-down paths
- Golden Ratio: 80% operational metrics, 20% exploratory metrics
- Cognitive Load: Maximum 7±2 panels per dashboard screen
- User Journey: Role-based dashboard personas (SRE, Developer, Executive)
Visualization Best Practices
- Chart Selection: Time series for trends, heatmaps for distributions, gauges for status
- Color Theory: Red for critical, amber for warning, green for healthy states
- Reference Lines: SLO targets, capacity thresholds, and historical baselines
- Time Ranges: Default to meaningful windows (4h for incidents, 7d for trends)
Panel Design
- Metric Queries: Efficient Prometheus/InfluxDB queries with proper aggregation
- Alerting Integration: Visual alert state indicators on relevant panels
- Interactive Elements: Template variables, drill-down links, and annotation overlays
- Performance: Sub-second render times through query optimization
Alert Design and Optimization
Alert Classification
- Severity Levels:
- Critical: Service down, SLO burn rate high
- Warning: Approaching thresholds, non-user-facing issues
- Info: Deployment notifications, capacity planning alerts
- Actionability: Every alert must have a clear response action
- Alert Routing: Escalation policies based on severity and team ownership
Alert Fatigue Prevention
- Signal vs Noise: High precision (few false positives) over high recall
- Hysteresis: Different thresholds for firing and resolving alerts
- Suppression: Dependent alert suppression during known outages
- Grouping: Related alerts grouped into single notifications
Alert Rule Design
- Threshold Selection: Statistical methods for threshold determination
- Window Functions: Appropriate averaging windows and percentile calculations
- Alert Lifecycle: Clear firing conditions and automatic resolution criteria
- Testing: Alert rule validation against historical data
Runbook Generation and Incident Response
Runbook Structure
- Alert Context: What the alert means and why it fired
- Impact Assessment: User-facing vs internal impact evaluation
- Investigation Steps: Ordered troubleshooting procedures with time estimates
- Resolution Actions: Common fixes and escalation procedures
- Post-Incident: Follow-up tasks and prevention measures
Incident Detection Patterns
- Anomaly Detection: Statistical methods for detecting unusual patterns
- Composite Alerts: Multi-signal alerts for complex failure modes
- Predictive Alerts: Capacity and trend-based forward-looking alerts
- Canary Monitoring: Early detection through progressive deployment monitoring
Golden Signals Framework
Latency Monitoring
- Request Latency: P50, P95, P99 response time tracking
- Queue Latency: Time spent waiting in processing queues
- Network Latency: Inter-service communication delays
- Database Latency: Query execution and connection pool metrics
Traffic Monitoring
- Request Rate: Requests per second with burst detection
- Bandwidth Usage: Network throughput and capacity utilization
- User Sessions: Active user tracking and session duration
- Feature Usage: API endpoint and feature adoption metrics
Error Monitoring
- Error Rate: 4xx and 5xx HTTP response code tracking
- Error Budget: SLO-based error rate targets and consumption
- Error Distribution: Error type classification and trending
- Silent Failures: Detection of processing failures without HTTP errors
Saturation Monitoring
- Resource Utilization: CPU, memory, disk, and network usage
- Queue Depth: Processing queue length and wait times
- Connection Pools: Database and service connection saturation
- Rate Limiting: API throttling and quota exhaustion tracking
Distributed Tracing Strategies
Trace Architecture
- Sampling Strategy: Head-based, tail-based, and adaptive sampling
- Trace Propagation: Context propagation across service boundaries
- Span Correlation: Parent-child relationship modeling
- Trace Storage: Retention policies and storage optimization
Service Instrumentation
- Auto-Instrumentation: Framework-based automatic trace generation
- Manual Instrumentation: Custom span creation for business logic
- Baggage Handling: Cross-cutting concern propagation
- Performance Impact: Instrumentation overhead measurement and optimization
Log Aggregation Patterns
Collection Architecture
- Agent Deployment: Log shipping agent strategies (push vs pull)
- Log Routing: Topic-based routing and filtering
- Parsing Strategies: Structured vs unstructured log handling
- Schema Evolution: Log format versioning and migration
Storage and Indexing
- Index Design: Optimized field indexing for common query patterns
- Retention Policies: Time and volume-based log retention
- Compression: Log data compression and archival strategies
- Search Performance: Query optimization and result caching
Cost Optimization for Observability
Data Management
- Metric Retention: Tiered retention based on metric importance
- Log Sampling: Intelligent sampling to reduce ingestion costs
- Trace Sampling: Cost-effective trace collection strategies
- Data Archival: Cold storage for historical observability data
Resource Optimization
- Query Efficiency: Optimized metric and log queries
- Storage Costs: Appropriate storage tiers for different data types
- Ingestion Rate Limiting: Controlled data ingestion to manage costs
- Cardinality Management: High-cardinality metric detection and mitigation
Scripts Overview
This skill includes three powerful Python scripts for comprehensive observability design:
1. SLO Designer (slo_designer.py)
Generates complete SLI/SLO frameworks based on service characteristics:
- Input: Service description JSON (type, criticality, dependencies)
- Output: SLI definitions, SLO targets, error budgets, burn rate alerts, SLA recommendations
- Features: Multi-window burn rate calculations, error budget policies, alert rule generation
2. Alert Optimizer (alert_optimizer.py)
Analyzes and optimizes existing alert configurations:
- Input: Alert configuration JSON with rules, thresholds, and routing
- Output: Optimization report and improved alert configuration
- Features: Noise detection, coverage gaps, duplicate identification, threshold optimization
3. Dashboard Generator (dashboard_generator.py)
Creates comprehensive dashboard specifications:
- Input: Service/system description JSON
- Output: Grafana-compatible dashboard JSON and documentation
- Features: Golden signals coverage, RED/USE methods, drill-down paths, role-based views
Integration Patterns
Monitoring Stack Integration
- Prometheus: Metric collection and alerting rule generation
- Grafana: Dashboard creation and visualization configuration
- Elasticsearch/Kibana: Log analysis and dashboard integration
- Jaeger/Zipkin: Distributed tracing configuration and analysis
CI/CD Integration
- Pipeline Monitoring: Build, test, and deployment observability
- Deployment Correlation: Release impact tracking and rollback triggers
- Feature Flag Monitoring: A/B test and feature rollout observability
- Performance Regression: Automated performance monitoring in pipelines
Incident Management Integration
- PagerDuty/VictorOps: Alert routing and escalation policies
- Slack/Teams: Notification and collaboration integration
- JIRA/ServiceNow: Incident tracking and resolution workflows
- Post-Mortem: Automated incident analysis and improvement tracking
Advanced Patterns
Multi-Cloud Observability
- Cross-Cloud Metrics: Unified metrics across AWS, GCP, Azure
- Network Observability: Inter-cloud connectivity monitoring
- Cost Attribution: Cloud resource cost tracking and optimization
- Compliance Monitoring: Security and compliance posture tracking
Microservices Observability
- Service Mesh Integration: Istio/Linkerd observability configuration
- API Gateway Monitoring: Request routing and rate limiting observability
- Container Orchestration: Kubernetes cluster and workload monitoring
- Service Discovery: Dynamic service monitoring and health checks
Machine Learning Observability
- Model Performance: Accuracy, drift, and bias monitoring
- Feature Store Monitoring: Feature quality and freshness tracking
- Pipeline Observability: ML pipeline execution and performance monitoring
- A/B Test Analysis: Statistical significance and business impact measurement
Best Practices
Organizational Alignment
- SLO Setting: Collaborative target setting between product and engineering
- Alert Ownership: Clear escalation paths and team responsibilities
- Dashboard Governance: Centralized dashboard management and standards
- Training Programs: Team education on observability tools and practices
Technical Excellence
- Infrastructure as Code: Observability configuration version control
- Testing Strategy: Alert rule testing and dashboard validation
- Performance Monitoring: Observability system performance tracking
- Security Considerations: Access control and data privacy in observability
Continuous Improvement
- Metrics Review: Regular SLI/SLO effectiveness assessment
- Alert Tuning: Ongoing alert threshold and routing optimization
- Dashboard Evolution: User feedback-driven dashboard improvements
- Tool Evaluation: Regular assessment of observability tool effectiveness
Source: alirezarezvani/claude-skills → engineering/skills/observability-designer/SKILL.md
1---2name: observability-designer3description: "Design production-ready observability strategies combining metrics, logs, and traces. Includes SLI/SLO design, golden-signals monitoring, alert optimization. Use when adding observability to a new service, refactoring alerting that is too noisy, or designing an SLO program before scaling production load."4category: devops-and-infra5source_repo: alirezarezvani/claude-skills6source_path: "engineering/skills/observability-designer/SKILL.md"7source_url: https://github.com/alirezarezvani/claude-skills/blob/HEAD/engineering/skills/observability-designer/SKILL.md8metadata:9 source: https://skillmd.com/skills/thedixitjain/observability-designer10---111213# Observability Designer (POWERFUL)1415**Category:** Engineering 16**Tier:** POWERFUL 17**Description:** Design comprehensive observability strategies for production systems including SLI/SLO frameworks, alerting optimization, and dashboard generation.1819## Overview2021Observability Designer creates production-ready dashboards, alert configurations, and monitoring strategies across the three pillars (metrics, logs, traces).2223**When NOT to use → slo-architect.** For SLO/SLI design with error-budget math, multi-window burn-rate alerting thresholds, and SLO review gates, route to `slo-architect` — it is the authoritative skill for that half. This skill's `slo_designer.py` produces a quick scaffold only. This skill's lane: dashboards (`dashboard_generator.py`) and alert-noise reduction (`alert_optimizer.py`).2425## Quick Start2627```bash28# Dashboard spec (Grafana JSON + docs) for a service29python3 scripts/dashboard_generator.py --service-type api --name payments --criticality critical --role sre --format grafana -o dashboard.json --doc-output dashboard.md3031# Analyze an existing alert config for noise, duplicates, and coverage gaps32python3 scripts/alert_optimizer.py --input alerts.json --analyze-only --report alert_report.json33# ...then emit the optimized config once the report is reviewed:34python3 scripts/alert_optimizer.py --input alerts.json --output alerts_optimized.json3536# Quick SLO scaffold (hand off to slo-architect for the real error-budget work)37python3 scripts/slo_designer.py --service-type api --criticality high --user-facing true --service-name payments -o slo_scaffold.json38```3940**Verification loop:** after deploying optimized alerts, track the report's noise metrics for one on-call rotation — if the actionable-alert ratio didn't improve, re-run `--analyze-only` against the live config and iterate. Import the generated dashboard into Grafana and confirm every golden-signal panel renders with live data before closing the task.4142## Core Competencies4344### SLI/SLO/SLA Framework Design45- **Service Level Indicators (SLI):** Define measurable signals that indicate service health46- **Service Level Objectives (SLO):** Set reliability targets based on user experience47- **Service Level Agreements (SLA):** Establish customer-facing commitments with consequences48- **Error Budget Management:** Calculate and track error budget consumption49- **Burn Rate Alerting:** Multi-window burn rate alerts for proactive SLO protection5051### Three Pillars of Observability5253#### Metrics54- **Golden Signals:** Latency, traffic, errors, and saturation monitoring55- **RED Method:** Rate, Errors, and Duration for request-driven services56- **USE Method:** Utilization, Saturation, and Errors for resource monitoring57- **Business Metrics:** Revenue, user engagement, and feature adoption tracking58- **Infrastructure Metrics:** CPU, memory, disk, network, and custom resource metrics5960#### Logs61- **Structured Logging:** JSON-based log formats with consistent fields62- **Log Aggregation:** Centralized log collection and indexing strategies63- **Log Levels:** Appropriate use of DEBUG, INFO, WARN, ERROR, FATAL levels64- **Correlation IDs:** Request tracing through distributed systems65- **Log Sampling:** Volume management for high-throughput systems6667#### Traces68- **Distributed Tracing:** End-to-end request flow visualization69- **Span Design:** Meaningful span boundaries and metadata70- **Trace Sampling:** Intelligent sampling strategies for performance and cost71- **Service Maps:** Automatic dependency discovery through traces72- **Root Cause Analysis:** Trace-driven debugging workflows7374### Dashboard Design Principles7576#### Information Architecture77- **Hierarchy:** Overview → Service → Component → Instance drill-down paths78- **Golden Ratio:** 80% operational metrics, 20% exploratory metrics79- **Cognitive Load:** Maximum 7±2 panels per dashboard screen80- **User Journey:** Role-based dashboard personas (SRE, Developer, Executive)8182#### Visualization Best Practices83- **Chart Selection:** Time series for trends, heatmaps for distributions, gauges for status84- **Color Theory:** Red for critical, amber for warning, green for healthy states85- **Reference Lines:** SLO targets, capacity thresholds, and historical baselines86- **Time Ranges:** Default to meaningful windows (4h for incidents, 7d for trends)8788#### Panel Design89- **Metric Queries:** Efficient Prometheus/InfluxDB queries with proper aggregation90- **Alerting Integration:** Visual alert state indicators on relevant panels91- **Interactive Elements:** Template variables, drill-down links, and annotation overlays92- **Performance:** Sub-second render times through query optimization9394### Alert Design and Optimization9596#### Alert Classification97- **Severity Levels:** 98 - **Critical:** Service down, SLO burn rate high99 - **Warning:** Approaching thresholds, non-user-facing issues100 - **Info:** Deployment notifications, capacity planning alerts101- **Actionability:** Every alert must have a clear response action102- **Alert Routing:** Escalation policies based on severity and team ownership103104#### Alert Fatigue Prevention105- **Signal vs Noise:** High precision (few false positives) over high recall106- **Hysteresis:** Different thresholds for firing and resolving alerts107- **Suppression:** Dependent alert suppression during known outages108- **Grouping:** Related alerts grouped into single notifications109110#### Alert Rule Design111- **Threshold Selection:** Statistical methods for threshold determination112- **Window Functions:** Appropriate averaging windows and percentile calculations113- **Alert Lifecycle:** Clear firing conditions and automatic resolution criteria114- **Testing:** Alert rule validation against historical data115116### Runbook Generation and Incident Response117118#### Runbook Structure119- **Alert Context:** What the alert means and why it fired120- **Impact Assessment:** User-facing vs internal impact evaluation121- **Investigation Steps:** Ordered troubleshooting procedures with time estimates122- **Resolution Actions:** Common fixes and escalation procedures123- **Post-Incident:** Follow-up tasks and prevention measures124125#### Incident Detection Patterns126- **Anomaly Detection:** Statistical methods for detecting unusual patterns127- **Composite Alerts:** Multi-signal alerts for complex failure modes128- **Predictive Alerts:** Capacity and trend-based forward-looking alerts129- **Canary Monitoring:** Early detection through progressive deployment monitoring130131### Golden Signals Framework132133#### Latency Monitoring134- **Request Latency:** P50, P95, P99 response time tracking135- **Queue Latency:** Time spent waiting in processing queues136- **Network Latency:** Inter-service communication delays137- **Database Latency:** Query execution and connection pool metrics138139#### Traffic Monitoring140- **Request Rate:** Requests per second with burst detection141- **Bandwidth Usage:** Network throughput and capacity utilization142- **User Sessions:** Active user tracking and session duration143- **Feature Usage:** API endpoint and feature adoption metrics144145#### Error Monitoring146- **Error Rate:** 4xx and 5xx HTTP response code tracking147- **Error Budget:** SLO-based error rate targets and consumption148- **Error Distribution:** Error type classification and trending149- **Silent Failures:** Detection of processing failures without HTTP errors150151#### Saturation Monitoring152- **Resource Utilization:** CPU, memory, disk, and network usage153- **Queue Depth:** Processing queue length and wait times154- **Connection Pools:** Database and service connection saturation155- **Rate Limiting:** API throttling and quota exhaustion tracking156157### Distributed Tracing Strategies158159#### Trace Architecture160- **Sampling Strategy:** Head-based, tail-based, and adaptive sampling161- **Trace Propagation:** Context propagation across service boundaries162- **Span Correlation:** Parent-child relationship modeling163- **Trace Storage:** Retention policies and storage optimization164165#### Service Instrumentation166- **Auto-Instrumentation:** Framework-based automatic trace generation167- **Manual Instrumentation:** Custom span creation for business logic168- **Baggage Handling:** Cross-cutting concern propagation169- **Performance Impact:** Instrumentation overhead measurement and optimization170171### Log Aggregation Patterns172173#### Collection Architecture174- **Agent Deployment:** Log shipping agent strategies (push vs pull)175- **Log Routing:** Topic-based routing and filtering176- **Parsing Strategies:** Structured vs unstructured log handling177- **Schema Evolution:** Log format versioning and migration178179#### Storage and Indexing180- **Index Design:** Optimized field indexing for common query patterns181- **Retention Policies:** Time and volume-based log retention182- **Compression:** Log data compression and archival strategies183- **Search Performance:** Query optimization and result caching184185### Cost Optimization for Observability186187#### Data Management188- **Metric Retention:** Tiered retention based on metric importance189- **Log Sampling:** Intelligent sampling to reduce ingestion costs190- **Trace Sampling:** Cost-effective trace collection strategies191- **Data Archival:** Cold storage for historical observability data192193#### Resource Optimization194- **Query Efficiency:** Optimized metric and log queries195- **Storage Costs:** Appropriate storage tiers for different data types196- **Ingestion Rate Limiting:** Controlled data ingestion to manage costs197- **Cardinality Management:** High-cardinality metric detection and mitigation198199## Scripts Overview200201This skill includes three powerful Python scripts for comprehensive observability design:202203### 1. SLO Designer (`slo_designer.py`)204Generates complete SLI/SLO frameworks based on service characteristics:205- **Input:** Service description JSON (type, criticality, dependencies)206- **Output:** SLI definitions, SLO targets, error budgets, burn rate alerts, SLA recommendations207- **Features:** Multi-window burn rate calculations, error budget policies, alert rule generation208209### 2. Alert Optimizer (`alert_optimizer.py`)210Analyzes and optimizes existing alert configurations:211- **Input:** Alert configuration JSON with rules, thresholds, and routing212- **Output:** Optimization report and improved alert configuration213- **Features:** Noise detection, coverage gaps, duplicate identification, threshold optimization214215### 3. Dashboard Generator (`dashboard_generator.py`)216Creates comprehensive dashboard specifications:217- **Input:** Service/system description JSON218- **Output:** Grafana-compatible dashboard JSON and documentation219- **Features:** Golden signals coverage, RED/USE methods, drill-down paths, role-based views220221## Integration Patterns222223### Monitoring Stack Integration224- **Prometheus:** Metric collection and alerting rule generation225- **Grafana:** Dashboard creation and visualization configuration226- **Elasticsearch/Kibana:** Log analysis and dashboard integration227- **Jaeger/Zipkin:** Distributed tracing configuration and analysis228229### CI/CD Integration230- **Pipeline Monitoring:** Build, test, and deployment observability231- **Deployment Correlation:** Release impact tracking and rollback triggers232- **Feature Flag Monitoring:** A/B test and feature rollout observability233- **Performance Regression:** Automated performance monitoring in pipelines234235### Incident Management Integration236- **PagerDuty/VictorOps:** Alert routing and escalation policies237- **Slack/Teams:** Notification and collaboration integration238- **JIRA/ServiceNow:** Incident tracking and resolution workflows239- **Post-Mortem:** Automated incident analysis and improvement tracking240241## Advanced Patterns242243### Multi-Cloud Observability244- **Cross-Cloud Metrics:** Unified metrics across AWS, GCP, Azure245- **Network Observability:** Inter-cloud connectivity monitoring246- **Cost Attribution:** Cloud resource cost tracking and optimization247- **Compliance Monitoring:** Security and compliance posture tracking248249### Microservices Observability250- **Service Mesh Integration:** Istio/Linkerd observability configuration251- **API Gateway Monitoring:** Request routing and rate limiting observability252- **Container Orchestration:** Kubernetes cluster and workload monitoring253- **Service Discovery:** Dynamic service monitoring and health checks254255### Machine Learning Observability256- **Model Performance:** Accuracy, drift, and bias monitoring257- **Feature Store Monitoring:** Feature quality and freshness tracking258- **Pipeline Observability:** ML pipeline execution and performance monitoring259- **A/B Test Analysis:** Statistical significance and business impact measurement260261## Best Practices262263### Organizational Alignment264- **SLO Setting:** Collaborative target setting between product and engineering265- **Alert Ownership:** Clear escalation paths and team responsibilities266- **Dashboard Governance:** Centralized dashboard management and standards267- **Training Programs:** Team education on observability tools and practices268269### Technical Excellence270- **Infrastructure as Code:** Observability configuration version control271- **Testing Strategy:** Alert rule testing and dashboard validation272- **Performance Monitoring:** Observability system performance tracking273- **Security Considerations:** Access control and data privacy in observability274275### Continuous Improvement276- **Metrics Review:** Regular SLI/SLO effectiveness assessment277- **Alert Tuning:** Ongoing alert threshold and routing optimization278- **Dashboard Evolution:** User feedback-driven dashboard improvements279- **Tool Evaluation:** Regular assessment of observability tool effectiveness280281---282283**Source:** [`alirezarezvani/claude-skills`](https://github.com/alirezarezvani/claude-skills) → `engineering/skills/observability-designer/SKILL.md`