Bookmarks

DORA metrics

Four measures used to judge how fast and how reliably software is delivered: deployment frequency, lead time for changes, change failure rate and time to restore service.

Also: four key metrics, four keys, four key DevOps metrics

checked 9 Nov

All terms

DORA metrics show how quickly a team gets from a commit to working code in production and how reliably it does so. The team calculates them from the history of its own deployments and incidents, so they are used to judge delivery and to plan improvements.

The four metrics

MetricWhat it measuresProcess aspect
Deployment frequencyhow often the organisation successfully releases code to productionspeed
Lead time for changeshow long a commit takes from being recorded in the version control system to deployment in productionspeed
Change failure ratewhat percentage of deployments results in a failure in productionstability
Time to restore servicehow long it takes to restore service after a failure in productionstability

Two of the metrics describe the speed of the flow of changes and two describe stability. DORA research has shown that speed and stability do not contradict each other: the best teams are good at all the measures at once, not good at some at the expense of others.

How they are calculated

Each metric is calculated from process events: the times of commits and deployments, incident and rollback records. Data is collected from the CI/CD system and the incident tracker, and the measures are tracked as trends over a long period.

bashSimplified calculation of lead time for changes
# lead time of one deployment, in minutesdeploy_at=$(date -u +%s)commit_at=$(git log -1 --format=%ct HEAD)echo $(( (deploy_at - commit_at) / 60 ))

Where the term comes from

Research under the DevOps Research and Assessment (DORA) programme has been running since 2014, and the 2015 report already calls the four measures the key metrics of delivery. The methodology was described in the 2018 book Accelerate by Nicole Forsgren, Jez Humble and Gene Kim. Since 2018 the research has been carried out inside Google Cloud, and the name “four keys” was established by the open source Four Keys project, which Google released in 2020 to collect these metrics from GitHub and GitLab.

The set changes: in 2021 reliability was added to the metrics as a measure of operational results. The current DORA guidance (as of January 2026) has five measures: time to restore service is counted only for failed deployments — failed deployment recovery time — and instability combines the change failure rate with the share of rework after incidents in production — deployment rework rate.

How they are used

  • Measure them for one application or service at a time: comparing a mobile app with a mainframe system says nothing about either team.
  • Do not turn the metrics into targets: a demand to “deploy every day by the end of the year” will push teams to game the numbers (Goodhart’s law).
  • The measures belong to everyone: development, operations and releases; assigning a metric to a single team leads to responsibility being shifted onto others.
  • Compare a team with its own past, not with other teams: the goal is improvement over time, not competition.

Sources

the term is written from these pages

Verified 9 Nov

Not to be confused with

what it is mixed up with and how it differs

  • team velocity

    Velocity is an internal measure of work in story points used for sprint planning; DORA metrics measure the outcome of delivery, not the volume of tasks.

  • MTTRmean time to recovery

    MTTR is the mean time to recovery taken from the logs of any incidents; DORA’s time to restore service is counted for production failures as one of the team’s four metrics.

  • KPIkey performance indicator

    A KPI is any target measure of an organisation; DORA metrics are a specific set of four measures of software delivery in particular.

In depth in the references

where the topic is covered in detail