Lesson 1 of 7 DevOps Metrics and Dashboards

Designing a Dashboard for Flow Metrics

This lesson defines cycle time, lead time and time to recovery, and explains how to show them on a dashboard.

Learning outcomes

After completing this lesson, you will be able to:

  • Distinguish lead time from cycle time.
  • Explain where time to recovery data comes from.
  • Identify suitable Azure DevOps widgets.
  • Interpret a cumulative flow diagram.

Choosing measures that lead to decisions

A metric is useful only if a change in its value would make someone act differently. Before adding a chart to a dashboard, ask what decision it supports and who will make that decision. A count of commits has no such decision attached, whereas a rising cycle time prompts a team to look for a bottleneck. It is also wise to pair measures: a team that is judged only on speed will sacrifice stability, so a speed measure should appear beside a quality or stability measure.

The skills measured name three flow measures explicitly: cycle time, time to recovery and lead time. These terms have precise meanings, and exam options rely on the difference.

Lead time, cycle time and time to recovery

Lead time

In Azure Boards, lead time is the elapsed time from when a work item is created until it reaches a Completed state. It includes the time an item waits in the backlog, so it is close to what a requester experiences. A long lead time with a short cycle time means that items wait a long time before anyone starts them, which is a prioritization or capacity issue and is not a development problem.

Cycle time

Cycle time is the elapsed time from when a work item first enters an In Progress state until it reaches a Completed state. It measures how long the team takes once work has started. If an item is reactivated, the measure still runs from the first time the item entered progress until its final completion, so reopened work correctly appears as slower.

Time to recovery

Time to recovery, often stated as mean time to recovery (MTTR), measures how long it takes to restore service after a failure. It starts when the failure begins, or when it is detected if that is what can be measured, and ends when users are served normally again. Unlike the previous two, it does not come from work item states alone. It is usually derived from incident records or from alerts and their resolution in Azure Monitor.

The following example shows how lead time and cycle time differ for one work item.

EventDateEffect
Work item created1 MarchLead time starts
Moved to Active15 MarchCycle time starts
Moved to Closed19 MarchBoth end
Result18 days lead time, 4 days cycle timeThe item waited 14 days before work began
Fill in the number

Lead time and cycle time for one item

Exam skills 1.2.1

Work out lead time and cycle time from a work item's history.

Log in to try this activity Interactive activities are free with an account.

Azure DevOps dashboards and widgets

An Azure DevOps dashboard belongs to a team or a project, and it holds widgets. Team dashboards suit a team's own view, while project dashboards are suited to wider audiences. Dashboard permissions can restrict who edits them. Several widgets matter for flow.

  • The Lead Time and Cycle Time widgets are scatter plots, with one dot per completed item. They show a rolling average and a standard deviation band, so that outliers are easy to find.
  • The Cumulative Flow Diagram shows the count of items in each state over time. The vertical width of a band shows work in progress in that state, and the horizontal distance across the bands approximates cycle time.
  • The Velocity and Burndown widgets support sprint planning.
  • The Chart for Work Items widget draws the result of a saved query, and Query Results and Query Tile show a list or a count.
  • Pipeline widgets show recent build history, and test widgets show pass rate trends.

Reading a cumulative flow diagram is a frequent exam task. If the band for a state widens over time, items are entering that state more quickly than they leave, so that state is a bottleneck. If the top line stops rising, no new work is arriving. If the Done line flattens while the others rise, the team has stopped finishing work, regardless of how busy it appears.

The following diagram sketches a cumulative flow diagram over eight weeks in which one band keeps widening, which reveals a bottleneck.

A cumulative flow diagram over eight weeks. The In Test band widens from 5 to 40 items while the In Development band stays at 10: items enter test faster than they leave, so test is the bottleneck. The team should limit work in progress in test and move developers towards test automation.
Only the two bands discussed are drawn.
Scenario questions

Reading flow widgets

Exam skills 1.2.1

Interpret what dashboard widgets show about flow.

Log in to try this activity Interactive activities are free with an account.
Worked example

Reading a chart

A cumulative flow diagram for the last eight weeks shows the In Test band growing from a height of 5 items to 40 items, while the In Development band stays constant at 10 items. The team's cycle time has risen. What is the most likely cause, and what should the team do?

The widening band identifies In Test as the bottleneck: items enter test more quickly than they leave. The team should limit work in progress in test and direct developers towards test automation, or towards helping with test work. Raising development capacity would feed more items into the queue. The constant In Development band shows that development is not the constraint, so increasing its limit would not help.

Check yourself

A team's cycle time is steady, but lead time keeps rising. What does this suggest?

Show answer

Items are waiting longer before work starts. The team works at the same pace, so the delay lies in the backlog or in prioritization.

Exam Tips

Remember for the exam

  • Lead time starts at creation; cycle time starts at first entry to In Progress.
  • A long lead time with a short cycle time means items wait in the backlog.
  • A widening band in a cumulative flow diagram marks a bottleneck.
  • Time to recovery comes from incidents or alerts, not work item states.
  • Pair speed measures with stability measures.