DORA metrics: what they measure and how to collect them
DORA lists five software delivery metrics in two groups, throughput and instability. Its guide says the data is available in a number of places, and the DORA team's Four Keys project shows one way to compute four of them.

The five metrics today
DORA measures software delivery with two factors. Throughput measures the number of changes that can pass through the system in a given period. Instability describes how well deployments of the software turn out.
Throughput has three metrics:
- Change lead time. How long a change takes from its commit to version control until it is deployed in production.
- Deployment frequency. How many deployments happen in a given period, or how much time passes between two of them.
- Failed deployment recovery time. How long recovery takes after a failed deployment that needs immediate intervention.
Instability has two:
- Change fail rate. The share of deployments after which immediate intervention is needed. DORA's examples of that intervention are a rollback and a hotfix.
- Deployment rework rate. The share of deployments that were unplanned and were made because of an incident in production.
DORA's research has repeatedly found that speed and stability are not tradeoffs. The metrics are correlated for most teams.
What changed from the four keys
DORA's history of the metrics gives the changes:
- DORA's first study dates from 2014 and used four variables: deployment frequency, lead time for changes, mean time to recover and change fail rate.
- In 2023, DORA renamed and redefined mean time to recover as failed deployment recovery time. Under the earlier definitions a failure that a software change started and a failure with an outside cause, a data center outage for instance, were counted alike.
- In 2024, DORA introduced deployment rework rate as a fifth metric.
- Failed deployment recovery time is now listed under throughput, and reliability is treated as a measure of operational performance.
How to collect the data
DORA's guide says the data for the metrics is available in a number of different places, and it cautions that building integrations to multiple systems for precise data may not be worth the initial investment. Its suggested starting points are conversations, the DORA Quick Check, and a source-available or commercial product that ships with integrations already built.
The DORA team's Four Keys project on GitHub shows one way to compute the numbers from pipeline and incident data. The repository is archived, and its README says it is not currently maintained. It covers four metrics, under earlier names: deployment frequency, lead time for changes, time to restore services and change failure rate.
Four Keys receives events from the development environment, such as GitHub or GitLab, and derives three tables:
deployments: the deployment ID, the list of change IDs in the deployment, and the time the deployment was completed. The table holds only successful deployments.changes: the change ID, the time it was created and the event type.incidents: the incident ID, the list of deployment IDs that caused the failure, the time created and the time resolved.
It then calculates:
- Deployment frequency as the daily volume of distinct deployments.
- Lead time for changes as the median time a commit takes to reach production.
- Time to restore services as the median time between the deployment that caused a failure and the remediation. The remediation is measured by closing the associated bug or incident report.
- Change failure rate as the number of failures per the number of deployments. Four deployments in a day with one failure is 25%.
The README warns about squash merging: the commit that lands on trunk loses its link to the branch's commits, and lead time cannot be measured for them. Four Keys has no deployment rework rate among its four metrics. To count DORA's ratio, record on each deployment whether it was unplanned and the result of an incident.
Pitfalls
DORA lists these:
- Setting metrics as a goal. DORA's example of a broad target is every application deploying several times a day by the end of the year. A target like that raises the chance that teams will game the metrics.
- One metric to rule them all. DORA tells teams to pick several metrics, some of which pull against each other in a healthy way.
- Disparate comparisons. DORA intends the metrics for a single application or service. Comparing a mobile app with a mainframe system can be misleading, and DORA calls blending metrics across teams problematic.
- Competing. The aim is your own team's performance getting better over time. It is not to compete against other teams or organizations.
- Siloed ownership. Giving each team its own isolated metric can produce friction and finger-pointing.
Where to start
DORA's next steps for the team that prioritizes, builds, delivers and operates one application:
- Set a baseline for the application's current performance with the DORA Quick Check.
- Talk through where the delivery process has friction. Mapping out the process may help.
- As a team, commit to improving the constraint or bottleneck that matters most.
- Turn the commitment into a plan, with more specific measures as leading indicators, such as how long code reviews take.
- Do the work, check the progress, and repeat.
DORA calls reducing the batch size of changes a common approach to improving all five metrics. Smaller changes are easier to recover from if there is a failure.
Sources
Want a second pair of eyes on yours? We do this work for a living.
More guides

Trunk-based development: short branches and small merges
CI/CD · 4 min read
One shared branch, branches that live a couple of days, and flags that hide unfinished work.

What a CI/CD pipeline should do on every commit
CI/CD · 2 min read
Seven checks, from the first build to the rollback.

SLOs and error budgets: how much failure is acceptable
Observability · 4 min read
SLI, SLO and SLA, the budget arithmetic, burn-rate alerts and a policy for an empty budget.