The user wants an "error budget burn dashboard" that correlates three specific elements:
- Incidents: When things break.
- Releases: When code changes happen.
- Customer Impact: How users are affected (errors, latency, feature unavailability).
The output should be a structure for a dashboard, likely describing the panels, metrics, and visualizations needed. I need to adopt a Site Reliability Engineering (SRE) perspective.
Key Concepts to Integrate:
- SLI (Service Level Indicator): The metric (e.g., availability, latency).
- SLO (Service Level Objective): The target (e.g., 99.9%).
- Error Budget: The difference between the SLO and reality.
- Burn Rate: How fast the error budget is being consumed.
- Alerting: When to wake people up.
Structure of the Dashboard:
A good dashboard tells a story.
- Top Section: High-level status (The "Heartbeat"). Are we currently burning budget too fast? What's the remaining budget?
- Middle Section: Correlation (The "Why"). Visualizing Releases vs. Incidents vs. SLI breaches.
- Bottom Section: Detailed breakdown (The "What"). Top offending endpoints, specific error codes.
Drafting the Panels (Iterative refinement):
- Panel 1: Error Budget Remaining. This is the most important single number. A gauge or a timeline graph showing the budget depleting.
- Panel 2: Burn Rate. How fast are we going? Needs thresholds (e.g., 2x burn is okay, 10x burn is critical).
- Panel 3: The Timeline (Correlation). This is the core request. I need a time-series chart.
- Layer 1: SLI performance (e.g., Success Rate).
- Layer 2: Deploy markers (vertical lines or annotations).
- Layer 3: Incident windows (highlighted background regions).
- Panel 4: Impact Analysis. "Customer Impact" needs to be quantified. Failed requests per minute, distinct users affected.
Tooling Context:
I shouldn't tie this strictly to one tool (like Grafana or Datadog) unless asked, but I should write it in a way that applies to most (e.g., PromQL/Grafana is a safe mental model). I will provide a generic description that can be adapted to any observability stack.
Refining the Correlation Logic:
The user specifically asked to correlate incidents, releases, and impact.
- Scenario: A release happens (Release) → Error rate spikes (SLI drop) → PagerDuty fires (Incident) → Users see 500s (Impact).
- The dashboard needs to make this sequence visually obvious.
Section Breakdown:
- Header/Context: What service is this? What is the SLO window (30 days rolling)?
- The "Budget" View: Current budget status.
- The "Burn" View: Current burn rate vs. ideal burn rate.
- The "Correlation" View (The Meat): This needs to be a composite chart.
- Graph: Good events / Total events.
- Overlay: Release annotations.
- Overlay: Incident start/end times.
- The "Impact" View: Quantifying the pain. "How many users actually got errors?"
Tone and Style:
Professional, technical, actionable. Use standard SRE terminology.
Self-Correction during drafting:
- Initial thought: Just list metrics.
- Correction: A dashboard is visual. I need to describe how to visualize it (e.g., "Stat Panel," "Time Series with Annotations").
- Initial thought: Focus on generic errors.
- Correction: Needs to tie back to "Burn Rate" specifically. Fast burn = high impact.
Final Polish:
Add a section on "Actionable Insights" or "Drill-down capabilities" to show how to use the dashboard. Define the specific formulas (SLI = good/total).
Plan:
- Define the SLO/SLI context.
- Structure the dashboard into logical rows.
- Detail the specific visualizations and data sources.
- Explain the correlation logic (how to read the chart).
- Provide a mock configuration (e.g., PromQL snippets).
Let's write it out.
Here is a comprehensive design for an Error Budget Burn Dashboard.
This dashboard is designed to answer three critical questions simultaneously:
- Reliability: Are we currently burning our error budget too fast?
- Velocity: Did a recent release trigger the burn?
- Impact: Is this actually affecting users, or is it just noise?
Dashboard: Service Reliability & Velocity Correlation
Global Filters:
Service_Name
SLO_Target (e.g., 99.9%)
Time_Range (Default: Last 7 Days)
Section 1: The "Burning" Overview (Executive Summary)
This section provides an immediate health check without needing to read complex graphs.
Panel 1.1: Current SLO Status (Gauge)
- Metric:
1 - (sum(rate(http_requests_total{status=~"5.."}[5m])) / sum(rate(http_requests_total[5m])))
- Visualization: Single Gauge.
- Thresholds:
- Green: > SLO Target (e.g., >99.9%)
- Yellow: < SLO Target but > (SLO Target - Buffer)
- Red: < (SLO Target - Buffer)
- Purpose: Are we currently meeting our promise?
Panel 1.2: Remaining Error Budget (Stat)
- Metric:
(Target_SLO - Current_Availability) / (1 - Target_SLO)
- Unit: Percentage (%).
- Purpose: How much "room for error" is left before we breach the SLO? If this hits 0%, feature development should theoretically freeze to focus on reliability.
Panel 1.3: Burn Rate Alert Status (Text/State Timeline)
- Visualization: A series of icons indicating current Burn Rate severity (based on the Google SRE Error Budget windowing strategy).
- 🔥 Critical: 1h Burn Rate consumed > 10.8% of budget.
- 🚨 High: 6h Burn Rate consumed > 5.4% of budget.
- ⚠️ Medium: 3d Burn Rate consumed > 10% of budget.
- Purpose: Tells you how urgently you need to react.
Section 2: The Correlation Layer (The "Why")
This is the core of your request. It aligns Release markers, Error Spikes, and Budget Consumption on a single timeline.
Panel 2.1: Error Budget Consumption Waterfall (Time Series)
- Metric (Line):
sum(increase(http_requests_total{status=~"5.."}[1h])) (The volume of errors).
- Metric (Area):
accumulated_error_budget_burn (A calculated field showing total budget consumed over time).
- Annotation Layer (Releases):
- Source: CI/CD API (Jenkins/GitHub/GitLab) or
deploy_time metric.
- Display: Vertical dashed lines with the Git Commit Hash or Version Number as the label.
- Annotation Layer (Incidents):
- Source: Incident Tool (PagerDuty/Opsgenie) or
incident_start metric.
- Display: Red background shading spanning the duration of the incident.
- Goal: Visualize the "step up" in budget burn immediately following a release vertical line.
Panel 2.2: Traffic & Error Ratio (Time Series - Stacked)
- Metric:
sum(rate(http_requests_total[5m])) by status_code.
- Visualization: Stacked Area Chart.
- Green: 2xx
- Yellow: 4xx
- Red: 5xx
- Correlation: Overlay the same Release Markers from Panel 2.1.
- Goal: Determine if a release caused a spike in 5xx errors or if it caused a drop in total traffic (suggesting network failure or load balancer issues).
Section 3: Customer Impact Analysis (The "Who")
Quantifying the blast radius.
Panel 3.1: Distinct Users Affected (Time Series)
- Metric:
count(count_values("user_id", http_requests_total{status=~"5.."}))
- Goal: Raw error counts can be inflated by one retry-looping script. This panel shows how many unique humans are experiencing the failure.
Panel 3.2: Top Impacted Features (Table)
- Metric:
sum by (endpoint, method) (increase(http_requests_total{status=~"5.."}[1h]))
- Transform: Sort Descending.
- Columns:
HTTP Method | Endpoint | Error Count | % of Total Errors
- Goal: Quickly pinpoint which specific API endpoint is draining the budget.
Section 4: Release Velocity vs. Stability (Change Failure Rate)
A higher-level view for Engineering Leaders.
Panel 4.1: Change Failure Rate (Bar Gauge)
- Formula:
(Number of Releases causing Incidents) / (Total Number of Releases) * 100
- Time Window: Last 30 Days.
- Goal: Is the team shipping bad code frequently?
Panel 4.2: Mean Time To Recovery (MTTR) (Stat)
- Metric: Average duration of the "Incident" annotations correlated in Panel 2.1.
- Goal: When we do burn the budget, how fast do we stop the bleeding?
Technical Implementation Guide
To build this dashboard effectively, you need to correlate distinct data sources. Here is how to wire it up:
1. The SLO Calculation (Prometheus Example)
You cannot visualize burn without calculating the budget.
# The rate at which we are consuming our monthly error budget
(
(1 - (sum(rate(http_requests_total{status!~"5..", service="my-service"}[30d]))
/
sum(rate(http_requests_total{service="my-service"}[30d]))
))
- (1 - 0.999) # 0.999 is the Target SLO
)
2. Adding Release Markers (The "Correlation" Key)
You need a way to inject events into your time-series database.
- Method A (Metrics): Use a tool like
grafana-events or a simple CI/CD script to push a metric deployment_timestamp{version="1.2.3"} when a deploy finishes.
- Method B (Annotations): Configure Grafana to query your ElasticSearch, Loki, or GitHub directly for release timestamps.
3. Incident Correlation
- Use the Webhook functionality in your on-call tool (PagerDuty/OpsGenie) to write an
incident_active metric (1 for active, 0 for resolved) to your time-series DB. Use this metric to create the "Red Background" shading in Section 2.
How to Read This Dashboard
- Check Panel 1.1: If it's Green, go home. If it's Red, proceed to Panel 2.
- Check Panel 2.1: Look for a vertical Release Line. Is there a Red Error Spike immediately to the right of it?
- Yes: It’s a deployment issue. Roll back or patch immediately.
- No: Look for an Incident background shade. If there is a spike but no release, it’s likely infrastructure (Database overloaded, DNS, etc.).
- Check Panel 3.2: Identify exactly which endpoint is failing to guide the fix.