We are creating a release health dashboard that includes:
- Adoption: How many users have adopted the new release?
- Crash-free: The percentage of users not experiencing crashes.
- Error budgets: The remaining error budget for the release (usually a percentage).
- Gate checks: Status of various gates (like performance, security, etc.) that must pass for release.
We'll design a simple dashboard with four panels.
Assumptions:
- We have some way to get the data (from monitoring tools, etc.) but for now, we'll use static or simulated data.
- The dashboard will be a web page with HTML, CSS, and JavaScript.
Let's create a simple HTML structure with four sections.
We'll use a grid layout for the dashboard.
Steps:
- Create an HTML file with a container for the dashboard.
- Each panel will be a div with a title and a content area.
- Style the dashboard with CSS to make it look clean.
- Use JavaScript to update the panels with dynamic data (simulated for now).
However, note that the requirement does not specify a particular framework or technology, so we'll do a simple static page with some JavaScript for dynamic content.
Let's design:
Panel 1: Adoption
- Show a percentage and maybe a trend (up/down) and a target.
Panel 2: Crash-free
- Show a percentage and a target (usually 99.9% or similar). Also, maybe a trend.
Panel 3: Error Budget
- Show a percentage of error budget remaining. Also, a bar or gauge to show how much is left.
Panel 4: Gate Checks
- Show a list of gates with status (pass/fail) and maybe a link to more details.
We'll use a simple color scheme: green for good, red for bad, yellow for warning.
Let's code:
I'll help you create a comprehensive release health dashboard. Here's a complete implementation with all four components:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Release Health Dashboard</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<style>
:root {
--primary: #4361ee;
--success: #06d6a0;
--warning: #ffd166;
--danger: #ef476f;
--dark: #2b2d42;
--light: #f8f9fa;
--border: #dee2e6;
--shadow: rgba(0, 0, 0, 0.1);
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
body {
background-color: #f5f7fb;
color: var(--dark);
padding: 20px;
min-height: 100vh;
}
.dashboard-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 30px;
padding-bottom: 15px;
border-bottom: 1px solid var(--border);
}
.dashboard-title {
font-size: 28px;
font-weight: 700;
color: var(--primary);
}
.release-selector {
display: flex;
gap: 15px;
align-items: center;
}
select {
padding: 8px 15px;
border: 1px solid var(--border);
border-radius: 6px;
background: white;
font-size: 14px;
cursor: pointer;
}
.last-updated {
color: #6c757d;
font-size: 14px;
display: flex;
align-items: center;
gap: 5px;
}
.dashboard-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
gap: 25px;
margin-bottom: 30px;
}
.card {
background: white;
border-radius: 12px;
box-shadow: 0 4px 12px var(--shadow);
padding: 25px;
transition: transform 0.2s;
}
.card:hover {
transform: translateY(-3px);
}
.card-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
padding-bottom: 12px;
border-bottom: 1px solid var(--border);
}
.card-title {
font-size: 18px;
font-weight: 600;
color: var(--dark);
display: flex;
align-items: center;
gap: 10px;
}
.card-title i {
color: var(--primary);
}
.card-body {
min-height: 200px;
}
/* Adoption Styles */
.adoption-value {
font-size: 48px;
font-weight: 800;
color: var(--primary);
text-align: center;
margin: 20px 0;
}
.adoption-trend {
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
margin-top: 15px;
}
.trend-up {
color: var(--success);
}
.trend-down {
color: var(--danger);
}
.adoption-chart {
height: 60px;
margin-top: 25px;
position: relative;
}
.chart-bar {
position: absolute;
bottom: 0;
background: var(--primary);
border-radius: 4px 4px 0 0;
transition: height 0.5s ease;
}
/* Crash-free Styles */
.crash-free-gauge {
position: relative;
width: 180px;
height: 180px;
margin: 20px auto;
}
.gauge-circle {
fill: none;
stroke: #e9ecef;
stroke-width: 12;
}
.gauge-progress {
fill: none;
stroke-width: 12;
stroke-linecap: round;
transition: stroke-dashoffset 1s ease;
}
.gauge-value {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-size: 36px;
font-weight: 700;
}
.gauge-label {
text-align: center;
margin-top: 10px;
color: #6c757d;
}
/* Error Budget Styles */
.budget-container {
margin: 25px 0;
}
.budget-header {
display: flex;
justify-content: space-between;
margin-bottom: 10px;
}
.budget-bar {
height: 24px;
background: #e9ecef;
border-radius: 12px;
overflow: hidden;
position: relative;
}
.budget-fill {
height: 100%;
border-radius: 12px;
transition: width 0.8s ease;
}
.budget-remaining {
font-weight: 600;
font-size: 18px;
text-align: center;
margin-top: 15px;
}
.slippage-info {
display: flex;
justify-content: space-between;
margin-top: 15px;
padding-top: 15px;
border-top: 1px solid var(--border);
font-size: 14px;
color: #6c757d;
}
/* Gate Checks Styles */
.gates-list {
margin-top: 15px;
}
.gate-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 12px 15px;
margin-bottom: 10px;
background: #f8f9fa;
border-radius: 8px;
border-left: 4px solid var(--border);
}
.gate-passed {
border-left-color: var(--success);
}
.gate-failed {
border-left-color: var(--danger);
}
.gate-warning {
border-left-color: var(--warning);
}
.gate-name {
font-weight: 500;
}
.gate-status {
display: flex;
align-items: center;
gap: 8px;
font-weight: 600;
font-size: 14px;
}
.status-passed {
color: var(--success);
}
.status-failed {
color: var(--danger);
}
.status-warning {
color: var(--warning);
}
.gate-time {
font-size: 12px;
color: #6c757d;
margin-left: 10px;
}
.summary-bar {
display: flex;
justify-content: space-between;
margin-top: 20px;
background: #f8f9fa;
padding: 15px;
border-radius: 8px;
}
.summary-item {
text-align: center;
flex: 1;
}
.summary-value {
font-weight: 700;
font-size: 18px;
}
.summary-label {
font-size: 12px;
color: #6c757d;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.footer {
text-align: center;
margin-top: 30px;
color: #6c757d;
font-size: 14px;
}
@media (max-width: 900px) {
.dashboard-grid {
grid-template-columns: 1fr;
}
}
</style>
</head>
<body>
<div class="dashboard-header">
<h1 class="dashboard-title">
<i class="fas fa-chart-line"></i> Release Health Dashboard
</h1>
<div class="release-selector">
<label for="release-select">Release:</label>
<select id="release-select">
<option value="v2.4.1">v2.4.1 (Current)</option>
<option value="v2.4.0">v2.4.0</option>
<option value="v2.3.5">v2.3.5</option>
</select>
<div class="last-updated">
<i class="far fa-clock"></i> Updated: <span id="update-time">Just now</span>
</div>
</div>
</div>
<div class="dashboard-grid">
<!-- Adoption Card -->
<div class="card">
<div class="card-header">
<h2 class="card-title">
<i class="fas fa-users"></i> Adoption
</h2>
<div class="status-indicator" id="adoption-status"></div>
</div>
<div class="card-body">
<div class="adoption-value" id="adoption-percent">87%</div>
<div class="adoption-trend">
<span id="adoption-trend-value">+5.2%</span>
<span id="adoption-trend-direction"><i class="fas fa-arrow-up trend-up"></i></span>
<span>vs last release</span>
</div>
<div class="adoption-chart" id="adoption-chart"></div>
<div style="text-align: center; margin-top: 15px; color: #6c757d; font-size: 14px;">
Target: 90% | Users: <span id="user-count">1,247,893</span> of <span id="total-users">1,433,500</span>
</div>
</div>
</div>
<!-- Crash-free Card -->
<div class="card">
<div class="card-header">
<h2 class="card-title">
<i class="fas fa-bug"></i> Crash-free Sessions
</h2>
<div class="status-indicator" id="crash-status"></div>
</div>
<div class="card-body">
<div class="crash-free-gauge">
<svg width="180" height="180" viewBox="0 0 180 180">
<circle class="gauge-circle" cx="90" cy="90" r="80"></circle>
<circle class="gauge-progress" id="crash-gauge" cx="90" cy="90" r="80"
stroke="var(--success)" stroke-dasharray="502" stroke-dashoffset="125"></circle>
</svg>
<div class="gauge-value" id="crash-percent">99.8%</div>
</div>
<div class="gauge-label">Crash-free user sessions</div>
<div style="display: flex; justify-content: space-between; margin-top: 20px; padding-top: 15px; border-top: 1px solid var(--border);">
<div>
<div style="font-size: 12px; color: #6c757d;">CRASHES</div>
<div style="font-weight: 700; font-size: 18px; color: var(--danger);" id="crash-count">2,485</div>
</div>
<div>
<div style="font-size: 12px; color: #6c757d;">AFFECTED USERS</div>
<div style="font-weight: 700; font-size: 18px;" id="crash-users">1,247</div>
</div>
<div>
<div style="font-size: 12px; color: #6c757d;">SESSION COUNT</div>
<div style="font-weight: 700; font-size: 18px;" id="session-count">1,247,893</div>
</div>
</div>
</div>
</div>
<!-- Error Budget Card -->
<div class="card">
<div class="card-header">
<h2 class="card-title">
<i class="fas fa-exclamation-triangle"></i> Error Budget
</h2>
<div class="status-indicator" id="budget-status"></div>
</div>
<div class="card-body">
<div class="budget-container">
<div class="budget-header">
<span>Remaining: <strong id="budget-remaining">28.5%</strong></span>
<span>Target: 30%</span>
</div>
<div class="budget-bar">
<div class="budget-fill" id="budget-fill" style="width: 28.5%; background: linear-gradient(90deg, var(--success), var(--warning));"></div>
</div>
</div>
<div class="budget-remaining" id="budget-status-text">
<i class="fas fa-check-circle" style="color: var(--success);"></i> Within budget
</div>
<div class="slippage-info">
<div>
<div>SLO: 99.9% availability</div>
<div>Current: 99.65%</div>
</div>
<div>
<div>Burn rate: 1.2x</div>
<div>Time to exhaust: 14 days</div>
</div>
</div>
<div style="margin-top: 20px; padding: 15px; background: #f8f9fa; border-radius: 8px;">
<div style="font-weight: 600; margin-bottom: 8px;">Recent errors:</div>
<div id="error-list" style="font-size: 14px; line-height: 1.6;">
<!-- Populated by JS -->
</div>
</div>
</div>
</div>
<!-- Gate Checks Card -->
<div class="card">
<div class="card-header">
<h2 class="card-title">
<i class="fas fa-shield-alt"></i> Gate Checks
</h2>
<div class="status-indicator" id="gates-status"></div>
</div>
<div class="card-body">
<div class="gates-list" id="gates-list">
<!-- Populated by JS -->
</div>
<div class="summary-bar">
<div class="summary-item">
<div class="summary-value" id="passed-count">6</div>
<div class="summary-label">Passed</div>
</div>
<div class="summary-item">
<div class="summary-value" id="warning-count">1</div>
<div class="summary-label">Warnings</div>
</div>
<div class="summary-item">
<div class="summary-value" id="failed-count">0</div>
<div class="summary-label">Failed</div>
</div>
</div>
</div>
</div>
</div>
<div class="footer">
<p>Release Health Dashboard • Data refreshes every 5 minutes • <a href="#" style="color: var(--primary);">View Full Report</a></p>
</div>
<script>
// Simulated data - in real implementation, this would come from your monitoring systems
const releaseData = {
'v2.4.1': {
adoption: {
percent: 87,
trend: 5.2,
users: 1247893,
totalUsers: 1433500
},
crashFree: {
percent: 99.8,
crashes: 2485,
affectedUsers: 1247,
sessions: 1247893
},
errorBudget: {
remaining: 28.5,
burnRate: 1.2,
currentSLO: 99.65,
targetSLO: 99.9
},
gates: [
{ name: 'Performance Regression', status: 'passed', time: '2h ago' },
{ name: 'Security Scan', status: 'passed', time: '4h ago' },
{ name: 'Smoke Tests', status: 'passed', time: '6h ago' },
{ name: 'Canary Analysis', status: 'passed', time: '8h ago' },
{ name: 'Rollback Plan', status: 'passed', time: '1d ago' },
{ name: 'Documentation', status: 'passed', time: '1d ago' },
{ name: 'Feature Flags', status: 'warning', time: '2d ago', message: 'Partial rollout in progress' }
]
},
'v2.4.0': {
adoption: { percent: 82, trend: 3.1, users: 1084517, totalUsers: 1433500 },
crashFree: { percent: 99.5, crashes: 6842, affectedUsers: 2876, sessions: 1084517 },
errorBudget: { remaining: 15.2, burnRate: 2.1, currentSLO: 99.4, targetSLO: 99.9 },
gates: [
{ name: 'Performance Regression', status: 'passed', time: '1w ago' },
{ name: 'Security Scan', status: 'passed', time: '1w ago' },
{ name: 'Smoke Tests', status: 'passed', time: '1w ago' },
{ name: 'Canary Analysis', status: 'warning', time: '1w ago', message: 'Minor degradation detected' },
{ name: 'Rollback Plan', status: 'passed', time: '1w ago' },
{ name: 'Documentation', status: 'passed', time: '1w ago' },
{ name: 'Feature Flags', status: 'passed', time: '1w ago' }
]
}
};
// DOM Elements
const releaseSelect = document.getElementById('release-select');
const updateTime = document.getElementById('update-time');
// Initialize dashboard
function initDashboard() {
const selectedRelease = releaseSelect.value;
updateDashboard(selectedRelease);
// Set last updated time
const now = new Date();
updateTime.textContent = now.toLocaleTimeString([], {hour: '2-digit', minute:'2-digit'});
// Add event listener for release change
releaseSelect.addEventListener('change', function() {
updateDashboard(this.value);
});
// Auto-refresh every 5 minutes (simulate)
setInterval(() => {
updateTime.textContent = new Date().toLocaleTimeString([], {hour: '2-digit', minute:'2-digit'});
// In real implementation, you would fetch new data here
}, 300000);
}
function updateDashboard(releaseKey) {
const data = releaseData[releaseKey] || releaseData['v2.4.1'];
// Update Adoption
updateAdoption(data.adoption);
// Update Crash-free
updateCrashFree(data.crashFree);
// Update Error Budget
updateErrorBudget(data.errorBudget);
// Update Gates
updateGates(data.gates);
}
function updateAdoption(adoption) {
document.getElementById('adoption-percent').textContent = adoption.percent + '%';
document.getElementById('adoption-trend-value').textContent =
(adoption.trend > 0 ? '+' : '') + adoption.trend + '%';
const trendIcon = adoption.trend > 0 ?
'<i class="fas fa-arrow-up trend-up"></i>' :
'<i class="fas fa-arrow-down trend-down"></i>';
document.getElementById('adoption-trend-direction').innerHTML = trendIcon;
document.getElementById('user-count').textContent =
adoption.users.toLocaleString();
document.getElementById('total-users').textContent =
adoption.totalUsers.toLocaleString();
// Update status indicator
const statusEl = document.getElementById('adoption-status');
if (adoption.percent >= 90) {
statusEl.innerHTML = '<i class="fas fa-check-circle" style="color: var(--success); font-size: 20px;"></i>';
} else if (adoption.percent >= 80) {
statusEl.innerHTML = '<i class="fas fa-exclamation-circle" style="color: var(--warning); font-size: 20px;"></i>';
} else {
statusEl.innerHTML = '<i class="fas fa-times-circle" style="color: var(--danger); font-size: 20px;"></i>';
}
// Create simple chart
const chartEl = document.getElementById('adoption-chart');
chartEl.innerHTML = '';
// Simulate 7 days of adoption data
for (let i = 0; i < 7; i++) {
const bar = document.createElement('div');
bar.className = 'chart-bar';
const height = 30 + (adoption.percent * 0.7) + (Math.random() * 15);
bar.style.height = height + '%';
bar.style.width = '12%';
bar.style.left = (i * 14) + '%';
chartEl.appendChild(bar);
}
}
function updateCrashFree(crashFree) {
document.getElementById('crash-percent').textContent = crashFree.percent + '%';
document.getElementById('crash-count').textContent =
crashFree.crashes.toLocaleString();
document.getElementById('crash-users').textContent =
crashFree.affectedUsers.toLocaleString();
document.getElementById('session-count').textContent =
crashFree.sessions.toLocaleString();
// Update gauge
const gauge = document.getElementById('crash-gauge');
const circumference = 2 * Math.PI * 80;
const offset = circumference - (crashFree.percent / 100) * circumference;
gauge.style.strokeDashoffset = offset;
// Set gauge color based on threshold
let color = 'var(--success)';
if (crashFree.percent < 99.5) color = 'var(--danger)';
else if (crashFree.percent < 99.9) color = 'var(--warning)';
gauge.setAttribute('stroke', color);
// Update status indicator
const statusEl = document.getElementById('crash-status');
if (crashFree.percent >= 99.9) {
statusEl.innerHTML = '<i class="fas fa-check-circle" style="color: var(--success); font-size: 20px;"></i>';
} else if (crashFree.percent >= 99.5) {
statusEl.innerHTML = '<i class="fas fa-exclamation-circle" style="color: var(--warning); font-size: 20px;"></i>';
} else {
statusEl.innerHTML = '<i class="fas fa-times-circle" style="color: var(--danger); font-size: 20px;"></i>';
}
}
function updateErrorBudget(budget) {
document.getElementById('budget-remaining').textContent = budget.remaining + '%';
document.getElementById('budget-fill').style.width = budget.remaining + '%';
const statusText = document.getElementById('budget-status-text');
if (budget.remaining >= 30) {
statusText.innerHTML = '<i class="fas fa-check-circle" style="color: var(--success);"></i> Within budget';
} else if (budget.remaining >= 15) {
statusText.innerHTML = '<i class="fas fa-exclamation-circle" style="color: var(--warning);"></i> Warning - approaching limit';
} else {
statusText.innerHTML = '<i class="fas fa-times-circle" style="color: var(--danger);"></i> Budget exhausted!';
}
// Update status indicator
const statusEl = document.getElementById('budget-status');
if (budget.remaining >= 30) {
statusEl.innerHTML = '<i class="fas fa-check-circle" style="color: var(--success); font-size: 20px;"></i>';
} else if (budget.remaining >= 15) {
statusEl.innerHTML = '<i class="fas fa-exclamation-circle" style="color: var(--warning); font-size: 20px;"></i>';
} else {
statusEl.innerHTML = '<i class="fas fa-times-circle" style="color: var(--danger); font-size: 20px;"></i>';
}
}
function updateGates(gates) {
const gatesList = document.getElementById('gates-list');
gatesList.innerHTML = '';
let passed = 0, warning = 0, failed = 0;
gates.forEach(gate => {
const gateItem = document.createElement('div');
gateItem.className = `gate-item gate-${gate.status}`;
let statusClass = '';
let statusIcon = '';
switch(gate.status) {
case 'passed':
statusClass = 'status-passed';
statusIcon = '<i class="fas fa-check"></i>';
passed++;
break;
case 'warning':
statusClass = 'status-warning';
statusIcon = '<i class="fas fa-exclamation"></i>';
warning++;
break;
case 'failed':
statusClass = 'status-failed';
statusIcon = '<i class="fas fa-times"></i>';
failed++;
break;
}
gateItem.innerHTML = `
<div class="gate-name">${gate.name}</div>
<div class="gate-status ${statusClass}">
${statusIcon} ${gate.status.charAt(0).toUpperCase() + gate.status.slice(1)}
<span class="gate-time">${gate.time}</span>
</div>
`;
gatesList.appendChild(gateItem);
});
// Update summary counts
document.getElementById('passed-count').textContent = passed;
document.getElementById('warning-count').textContent = warning;
document.getElementById('failed-count').textContent = failed;
// Update overall gate status
const statusEl = document.getElementById('gates-status');
if (failed > 0) {
statusEl.innerHTML = '<i class="fas fa-times-circle" style="color: var(--danger); font-size: 20px;"></i>';
} else if (warning > 0) {
statusEl.innerHTML = '<i class="fas fa-exclamation-circle" style="color: var(--warning); font-size: 20px;"></i>';
} else {
statusEl.innerHTML = '<i class="fas fa-check-circle" style="color: var(--success); font-size: 20px;"></i>';
}
}
// Error list sample (for error budget card)
const errorExamples = [
'API timeout errors (1,245 occurrences)',
'Payment gateway failures (892 occurrences)',
'Database connection issues (348 occurrences)'
];
// Initialize with sample error list
document.getElementById('error-list').innerHTML = errorExamples.map(e =>
`<div>• ${e}</div>`
).join('');
// Initialize the dashboard
document.addEventListener('DOMContentLoaded', initDashboard);
</script>
</body>
</html>
Key Features Implemented:
1. Adoption Metrics
- Percentage of users on new release vs. target
- Trend comparison (up/down from previous release)
- Simple bar chart visualization
- Raw user count display
2. Crash-free Sessions
- Gauge visualization showing crash-free percentage
- Raw crash counts and affected users
- Color-coded thresholds (green >99.9%, yellow 99.5-99.9%, red <99.5%)
- Real-time status indicator
3. Error Budget
- Progress bar showing remaining budget vs. target
- SLO compliance status
- Burn rate and time to exhaustion estimates
- Recent error list display
- Color-coded warnings based on remaining budget
4. Gate Checks
- List of release gates with status (passed/warning/failed)
- Timestamps for each gate check
- Summary bar showing counts by status
- Color-coded borders and icons for quick scanning
How to Use This Dashboard:
- Save the code as an HTML file (e.g.,
release-dashboard.html)
- Open in any modern browser - no server required
- Interact with controls:
- Use the release selector to switch between releases
- Hover over cards for subtle animation effects
- Dashboard auto-refreshes timestamp every 5 minutes
To Integrate with Real Systems:
-
Replace the releaseData object with actual API calls to:
- Your analytics platform (for adoption)
- Crash reporting system (like Sentry, Crashlytics)
- SLO monitoring system (for error budget)
- CI/CD pipeline APIs (for gate status)
-
Add authentication if needed for production use
-
Connect to real data sources:
// Example API integration pattern
async function fetchReleaseData(releaseVersion) {
const response = await fetch(`/api/releases/${releaseVersion}/health`);
return response.json();
}
- Add more detailed drill-downs by making card elements clickable
Color Legend:
- Green: Healthy/Passed (on track)
- Yellow: Warning/At risk (needs attention)
- Red: Critical/Failed (immediate action needed)
The dashboard is responsive and works on mobile/tablet/desktop. All visualizations update dynamically when switching releases, and the status indicators provide immediate health assessment at a glance.