A balanced quality dashboard should combine reliability, delivery, code health, and user impact. Below are pragmatic metrics, how to collect them, sensible alert patterns, and common gaming/pitfalls.
- Production Error Rate (errors per 1k requests)
- Collect: instrument services (logs/metrics); aggregate by service/endpoint.
- Alert: sustained >2σ above baseline or >0.5% error rate for critical endpoints.
- Pitfalls: batching/aggregation can hide localized spikes; teams may silence alerts or mark errors non-critical.
- Mean Time to Detect (MTTD) & Mean Time to Repair (MTTR)
- Collect: time between incident start (alerts/log anomalies) and first ack / resolution in incident tracker.
- Alert: MTTR trending up >20% quarter-over-quarter.
- Pitfalls: redefining “resolved” to artificially shorten MTTR; ignoring partial fixes.
- Change Failure Rate (CFR)
- Collect: % of deployments causing rollbacks, hotfixes, or incidents within X hours (tracked in CI/CD + incident system).
- Alert: CFR >5–10% over a month.
- Pitfalls: small teams can mask CFR by batching fewer releases; label hotfixes inconsistently.
- Deployment/Cycle Time (commit → prod)
- Collect: CI/CD timestamps; median and 95th percentile.
- Alert: median increases >30% or p95 spikes.
- Pitfalls: rushing to reduce time may drop testing; teams might deploy “no-op” releases to show better cadence.
- Test Flakiness / False Negative Rate
- Collect: CI results per test over time; flake rate = tests with intermittent failures / total runs.
- Alert: flake rate >1–2% for critical suites.
- Pitfalls: quarantining flaky tests without fixing; deleting flaky tests to improve pass rate.
- Code Review Lead Time & Review Coverage
- Collect: PR open → first approval; % of changes with >=1 review.
- Alert: median review time >24–48 hours or coverage <90%.
- Pitfalls: perfunctory approvals to hit targets; reviewers rubber-stamping.
- Code Churn and Hotspots
- Collect: lines changed per file/module over time; heatmaps.
- Alert: sustained high churn in core modules or many recent authors on same files.
- Pitfalls: refactors inflate churn; churn used as productivity proxy.
- User-impacting SLOs (availability/latency p95)
- Collect: real user monitoring, metrics by region/feature.
- Alert: SLO burn rate >2x baseline within rolling window.
- Pitfalls: choosing easy SLOs, ignoring minority-region issues.
- Escaped Defects (bugs found in prod per release)
- Collect: issue tracker labelled “prod-bug”; map to release.
- Alert: >X critical defects per release (set per product scale).
- Pitfalls: reclassifying prod bugs as “edge cases” or deferring triage.
- Security Findings (vulnerabilities by severity & time-to-fix)
- Collect: SAST/DAST scans, dependency scanners; ticketing for fixes.
- Alert: any high/critical vuln with >72h to triage.
- Pitfalls: ignoring low-severity findings that aggregate risk; marking as “accepted risk” without review.
Guiding principles: prefer trend-based alerts over hard thresholds, combine multiple signals (e.g., CFR + MTTR), and accompany metrics with qualitative reviews. To prevent gaming, pair metrics with audits, require contextual annotations for exceptions, and emphasize outcome-focused SLOs rather than vanity numbers.