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
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, o..."4version: 1.0.05author:6 name: "Alireza Rezvani"7 github: alirezarezvani8tags: [observability, designer]9category: engineering10platforms: [macos, linux, windows]11license: MIT12metadata:13 hermes:14 related_skills: [observability, designer]15 source: https://skillmd.com/skills/nous-hermeshub/observability-designer16 upstream: "claude-skills"17 original_author: "Alireza Rezvani"18---1920# Observability Designer (POWERFUL)2122**Category:** Engineering 23**Tier:** POWERFUL 24**Description:** Design comprehensive observability strategies for production systems including SLI/SLO frameworks, alerting optimization, and dashboard generation.2526## Overview2728Observability Designer creates production-ready dashboards, alert configurations, and monitoring strategies across the three pillars (metrics, logs, traces).2930**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`).3132## Quick Start3334```bash35# Dashboard spec (Grafana JSON + docs) for a service36python3 scripts/dashboard_generator.py --service-type api --name payments --criticality critical --role sre --format grafana -o dashboard.json --doc-output dashboard.md3738# Analyze an existing alert config for noise, duplicates, and coverage gaps39python3 scripts/alert_optimizer.py --input alerts.json --analyze-only --report alert_report.json40# ...then emit the optimized config once the report is reviewed:41python3 scripts/alert_optimizer.py --input alerts.json --output alerts_optimized.json4243# Quick SLO scaffold (hand off to slo-architect for the real error-budget work)44python3 scripts/slo_designer.py --service-type api --criticality high --user-facing true --service-name payments -o slo_scaffold.json45```4647**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.4849## Core Competencies5051### SLI/SLO/SLA Framework Design52- **Service Level Indicators (SLI):** Define measurable signals that indicate service health53- **Service Level Objectives (SLO):** Set reliability targets based on user experience54- **Service Level Agreements (SLA):** Establish customer-facing commitments with consequences55- **Error Budget Management:** Calculate and track error budget consumption56- **Burn Rate Alerting:** Multi-window burn rate alerts for proactive SLO protection5758### Three Pillars of Observability5960#### Metrics61- **Golden Signals:** Latency, traffic, errors, and saturation monitoring62- **RED Method:** Rate, Errors, and Duration for request-driven services63- **USE Method:** Utilization, Saturation, and Errors for resource monitoring64- **Business Metrics:** Revenue, user engagement, and feature adoption tracking65- **Infrastructure Metrics:** CPU, memory, disk, network, and custom resource metrics6667#### Logs68- **Structured Logging:** JSON-based log formats with consistent fields69- **Log Aggregation:** Centralized log collection and indexing strategies70- **Log Levels:** Appropriate use of DEBUG, INFO, WARN, ERROR, FATAL levels71- **Correlation IDs:** Request tracing through distributed systems72- **Log Sampling:** Volume management for high-throughput systems7374#### Traces75- **Distributed Tracing:** End-to-end request flow visualization76- **Span Design:** Meaningful span boundaries and metadata77- **Trace Sampling:** Intelligent sampling strategies for performance and cost78- **Service Maps:** Automatic dependency discovery through traces79- **Root Cause Analysis:** Trace-driven debugging workflows8081### Dashboard Design Principles8283#### Information Architecture84- **Hierarchy:** Overview → Service → Component → Instance drill-down paths85- **Golden Ratio:** 80% operational metrics, 20% exploratory metrics86- **Cognitive Load:** Maximum 7±2 panels per dashboard screen87- **User Journey:** Role-based dashboard personas (SRE, Developer, Executive)8889#### Visualization Best Practices90- **Chart Selection:** Time series for trends, heatmaps for distributions, gauges for status91- **Color Theory:** Red for critical, amber for warning, green for healthy states92- **Reference Lines:** SLO targets, capacity thresholds, and historical baselines93- **Time Ranges:** Default to meaningful windows (4h for incidents, 7d for trends)9495#### Panel Design96- **Metric Queries:** Efficient Prometheus/InfluxDB queries with proper aggregation97- **Alerting Integration:** Visual alert state indicators on relevant panels98- **Interactive Elements:** Template variables, drill-down links, and annotation overlays99- **Performance:** Sub-second render times through query optimization100101### Alert Design and Optimization102103#### Alert Classification104- **Severity Levels:** 105 - **Critical:** Service down, SLO burn rate high106 - **Warning:** Approaching thresholds, non-user-facing issues107 - **Info:** Deployment notifications, capacity planning alerts108- **Actionability:** Every alert must have a clear response action109- **Alert Routing:** Escalation policies based on severity and team ownership110111#### Alert Fatigue Prevention112- **Signal vs Noise:** High precision (few false positives) over high recall113- **Hysteresis:** Different thresholds for firing and resolving alerts114- **Suppression:** Dependent alert suppression during known outages115- **Grouping:** Related alerts grouped into single notifications116117#### Alert Rule Design118- **Threshold Selection:** Statistical methods for threshold determination119- **Window Functions:** Appropriate averaging windows and percentile calculations120- **Alert Lifecycle:** Clear firing conditions and automatic resolution criteria121- **Testing:** Alert rule validation against historical data122123### Runbook Generation and Incident Response124125#### Runbook Structure126- **Alert Context:** What the alert means and why it fired127- **Impact Assessment:** User-facing vs internal impact evaluation128- **Investigation Steps:** Ordered troubleshooting procedures with time estimates129- **Resolution Actions:** Common fixes and escalation procedures130- **Post-Incident:** Follow-up tasks and prevention measures131132#### Incident Detection Patterns133- **Anomaly Detection:** Statistical methods for detecting unusual patterns134- **Composite Alerts:** Multi-signal alerts for complex failure modes135- **Predictive Alerts:** Capacity and trend-based forward-looking alerts136- **Canary Monitoring:** Early detection through progressive deployment monitoring137138### Golden Signals Framework139140#### Latency Monitoring141- **Request Latency:** P50, P95, P99 response time tracking142- **Queue Latency:** Time spent waiting in processing queues143- **Network Latency:** Inter-service communication delays144- **Database Latency:** Query execution and connection pool metrics145146#### Traffic Monitoring147- **Request Rate:** Requests per second with burst detection148- **Bandwidth Usage:** Network throughput and capacity utilization149- **User Sessions:** Active user tracking and session duration150- **Feature Usage:** API endpoint and feature adoption metrics151152#### Error Monitoring153- **Error Rate:** 4xx and 5xx HTTP response code tracking154- **Error Budget:** SLO-based error rate targets and consumption155- **Error Distribution:** Error type classification and trending156- **Silent Failures:** Detection of processing failures without HTTP errors157158#### Saturation Monitoring159- **Resource Utilization:** CPU, memory, disk, and network usage160- **Queue Depth:** Processing queue length and wait times161- **Connection Pools:** Database and service connection saturation162- **Rate Limiting:** API throttling and quota exhaustion tracking163164### Distributed Tracing Strategies165166#### Trace Architecture167- **Sampling Strategy:** Head-based, tail-based, and adaptive sampling168- **Trace Propagation:** Context propagation across service boundaries169- **Span Correlation:** Parent-child relationship modeling170- **Trace Storage:** Retention policies and storage optimization171172#### Service Instrumentation173- **Auto-Instrumentation:** Framework-based automatic trace generation174- **Manual Instrumentation:** Custom span creation for business logic175- **Baggage Handling:** Cross-cutting concern propagation176- **Performance Impact:** Instrumentation overhead measurement and optimization177178### Log Aggregation Patterns179180#### Collection Architecture181- **Agent Deployment:** Log shipping agent strategies (push vs pull)182- **Log Routing:** Topic-based routing and filtering183- **Parsing Strategies:** Structured vs unstructured log handling184- **Schema Evolution:** Log format versioning and migration185186#### Storage and Indexing187- **Index Design:** Optimized field indexing for common query patterns188- **Retention Policies:** Time and volume-based log retention189- **Compression:** Log data compression and archival strategies190- **Search Performance:** Query optimization and result caching191192### Cost Optimization for Observability193194#### Data Management195- **Metric Retention:** Tiered retention based on metric importance196- **Log Sampling:** Intelligent sampling to reduce ingestion costs197- **Trace Sampling:** Cost-effective trace collection strategies198- **Data Archival:** Cold storage for historical observability data199200#### Resource Optimization201- **Query Efficiency:** Optimized metric and log queries202- **Storage Costs:** Appropriate storage tiers for different data types203- **Ingestion Rate Limiting:** Controlled data ingestion to manage costs204- **Cardinality Management:** High-cardinality metric detection and mitigation205206## Scripts Overview207208This skill includes three powerful Python scripts for comprehensive observability design:209210### 1. SLO Designer (`slo_designer.py`)211Generates complete SLI/SLO frameworks based on service characteristics:212- **Input:** Service description JSON (type, criticality, dependencies)213- **Output:** SLI definitions, SLO targets, error budgets, burn rate alerts, SLA recommendations214- **Features:** Multi-window burn rate calculations, error budget policies, alert rule generation215216### 2. Alert Optimizer (`alert_optimizer.py`)217Analyzes and optimizes existing alert configurations:218- **Input:** Alert configuration JSON with rules, thresholds, and routing219- **Output:** Optimization report and improved alert configuration220- **Features:** Noise detection, coverage gaps, duplicate identification, threshold optimization221222### 3. Dashboard Generator (`dashboard_generator.py`)223Creates comprehensive dashboard specifications:224- **Input:** Service/system description JSON225- **Output:** Grafana-compatible dashboard JSON and documentation226- **Features:** Golden signals coverage, RED/USE methods, drill-down paths, role-based views227228## Integration Patterns229230### Monitoring Stack Integration231- **Prometheus:** Metric collection and alerting rule generation232- **Grafana:** Dashboard creation and visualization configuration233- **Elasticsearch/Kibana:** Log analysis and dashboard integration234- **Jaeger/Zipkin:** Distributed tracing configuration and analysis235236### CI/CD Integration237- **Pipeline Monitoring:** Build, test, and deployment observability238- **Deployment Correlation:** Release impact tracking and rollback triggers239- **Feature Flag Monitoring:** A/B test and feature rollout observability240- **Performance Regression:** Automated performance monitoring in pipelines241242### Incident Management Integration243- **PagerDuty/VictorOps:** Alert routing and escalation policies244- **Slack/Teams:** Notification and collaboration integration245- **JIRA/ServiceNow:** Incident tracking and resolution workflows246- **Post-Mortem:** Automated incident analysis and improvement tracking247248## Advanced Patterns249250### Multi-Cloud Observability251- **Cross-Cloud Metrics:** Unified metrics across AWS, GCP, Azure252- **Network Observability:** Inter-cloud connectivity monitoring253- **Cost Attribution:** Cloud resource cost tracking and optimization254- **Compliance Monitoring:** Security and compliance posture tracking255256### Microservices Observability257- **Service Mesh Integration:** Istio/Linkerd observability configuration258- **API Gateway Monitoring:** Request routing and rate limiting observability259- **Container Orchestration:** Kubernetes cluster and workload monitoring260- **Service Discovery:** Dynamic service monitoring and health checks261262### Machine Learning Observability263- **Model Performance:** Accuracy, drift, and bias monitoring264- **Feature Store Monitoring:** Feature quality and freshness tracking265- **Pipeline Observability:** ML pipeline execution and performance monitoring266- **A/B Test Analysis:** Statistical significance and business impact measurement267268## Best Practices269270### Organizational Alignment271- **SLO Setting:** Collaborative target setting between product and engineering272- **Alert Ownership:** Clear escalation paths and team responsibilities273- **Dashboard Governance:** Centralized dashboard management and standards274- **Training Programs:** Team education on observability tools and practices275276### Technical Excellence277- **Infrastructure as Code:** Observability configuration version control278- **Testing Strategy:** Alert rule testing and dashboard validation279- **Performance Monitoring:** Observability system performance tracking280- **Security Considerations:** Access control and data privacy in observability281282### Continuous Improvement283- **Metrics Review:** Regular SLI/SLO effectiveness assessment284- **Alert Tuning:** Ongoing alert threshold and routing optimization285- **Dashboard Evolution:** User feedback-driven dashboard improvements286- **Tool Evaluation:** Regular assessment of observability tool effectiveness