L2. DevOps Metrics and Dashboards: Cycle Time, Lead Time & Time to Recovery
Course outlineLesson 2 of 18
Current DORA delivery metrics, the difference between lead time and cycle time, and how a cumulative flow diagram makes a bottleneck stage visually obvious before it becomes a crisis.
Understanding DORA Metrics
DORA currently documents five software delivery metrics. AZ-400 asks you to design useful metrics across project, development, testing, security, delivery and operations; it does not prescribe a fixed four-metric checklist.
Current DORA delivery metrics
Deployment Frequency measures how often you release code to production. Use it with stability metrics for the same application or service. Lead Time for Changes measures the time from a code commit to that change running in production. This includes build, test, approval, and deployment time. Change fail rate measures the proportion of deployments that require immediate intervention, such as a rollback or hotfix. Use it alongside deployment rework rate to assess delivery instability. Failed deployment recovery time measures recovery after a failed deployment requiring intervention. This is narrower than recovery from any incident. Deployment rework rate is the proportion of unplanned deployments caused by production incidents. Older material refers to four keys and MTTR; use the current names when building dashboards.Lead Time vs Cycle Time
These terms are often confused, so the exam tests the distinction carefully. DORA change lead time runs from commit to production. Azure Boards lead time runs from work item creation to completion. They start at different events and must not be mixed. Cycle Time measures from when work actively starts ("In Progress") to completion ("Done"). It is a narrower window that excludes planning and specification time.
In practice: Lead time is what matters for delivery speed; cycle time helps identify bottlenecks within active development.
Cumulative Flow Diagrams
A Cumulative Flow Diagram (CFD) visualizes the count of work items in each workflow state over time. The vertical axis shows the count; the horizontal axis shows time. Each colored band represents a state (To Do, In Progress, Code Review, Done).
When one band widens over time, work is piling up in that state. A widening "Code Review" band means reviews are a bottleneck. CFDs make bottlenecks immediately visible before they become crises.
Azure DevOps Dashboards and Widgets
Azure DevOps provides built-in widgets:
- Sprint Burndown and Burnup charts
- Velocity trends
- Cumulative Flow Diagrams
- Build and Release dashboards
For Azure Boards work-item reports, use Analytics views in Power BI. Views expose flat work-item lists, not pipeline data or work-item hierarchies. Use suitable OData Analytics entities for other supported reporting needs. This allows you to combine Azure DevOps data with external systems and refresh on your schedule.
Metrics Per Functional Area
Different stakeholders need different metrics:
- Planning team: velocity, burndown, sprint health
- Development team: PR cycle time, code churn, branch coverage
- Testing team: test pass rate, code coverage trends
- Security team: vulnerability count, vulnerability age
- Operations team: MTTR, incident count, deployment success rate
Designing dashboards per functional area ensures each group sees the metrics that matter to them. Exam tip: The AZ-400 exam emphasizes that metrics must be actionable and tied to business goals. A dashboard full of metrics nobody uses is worse than useless.
References
Continue Learning
- ✓DORA change lead time starts at commit; Boards lead time starts at work item creation; Boards cycle time starts when active work begins
- ✓Current DORA metrics: change lead time, deployment frequency, failed deployment recovery time, change fail rate and deployment rework rate
- ✓A Cumulative Flow Diagram visualizes the count of work items in each state over time and is the standard tool for spotting where work is piling up (a bottleneck stage)
- ✓Azure DevOps Analytics Views and the OData Analytics feed let teams build custom Power BI dashboards for metrics not covered by out-of-the-box widgets
- ✓Dashboards should be designed per functional area (planning, development, testing, security, delivery, operations), not just one generic delivery metric, to match what each stakeholder group actually needs to see
1. Which metric specifically measures the time from a code commit to that change being successfully running in production?
2. A team notices that work items are piling up in the "Code Review" column of their board while other columns stay empty. Which visualization would make this bottleneck immediately visible?
3. A team needs a custom dashboard combining Azure DevOps work item data with data from an external system, refreshed on a schedule, beyond what built-in widgets support. What should they use?