DORA metrics
The Four DORA Metrics, and How to Read Them Honestly
Four numbers are easy to put on a dashboard and surprisingly hard to define. Most disagreements about DORA data are really disagreements about where the clock starts.
A working definition of each of the four DORA metrics — deployment frequency, lead time for changes, change failure rate and failed deployment recovery time — with the measurement decisions that determine whether your numbers mean anything.
Where the four metrics come from
The four metrics come out of the DORA research programme — the multi-year State of DevOps research summarised in the book Accelerate by Nicole Forsgren, Jez Humble and Gene Kim. The programme surveyed software delivery organisations and looked for measures that were statistically associated with organisational performance rather than with developer effort. What survived was a set of four: two describing throughput, two describing stability.
Throughput is deployment frequency and lead time for changes. Stability is change failure rate and the time it takes to restore service after a failed change — originally published as mean time to restore, and renamed failed deployment recovery time in later DORA reports to make clear that it is scoped to failures caused by a change, not to every incident an organisation experiences.
The most important structural claim from that research is that throughput and stability are not opposites. The programme has repeatedly found that the same organisations score well on both, which is the opposite of the intuition that says shipping faster must mean breaking more. That claim is theirs, based on their survey population, and it is worth citing accurately: it says the two move together in the data they collected, not that shipping faster causes stability in your organisation.
None of the four measure individual productivity, and none of them were designed to. They describe a delivery system. A team can improve all four while every individual works exactly as hard as before, because the thing being fixed is queueing, batch size and feedback speed, not effort.
- Throughput: deployment frequency, lead time for changes
- Stability: change failure rate, failed deployment recovery time
- The DORA programme finds throughput and stability correlate positively — they are not a trade-off in its data
- None of the four is an individual performance measure
Deployment frequency is really a batch-size measure
Deployment frequency counts how often you release change to production. Read on its own it sounds like a speed metric, and it gets treated as a leaderboard. It is more useful read as an inverse measure of batch size: if you deploy once a fortnight, each release contains a fortnight of change, and everything downstream of that — review burden, blast radius, the difficulty of attributing a regression — is a consequence of the batch, not of the deploy button.
That is why the metric predicts things it appears to have nothing to do with. Large batches make change failure rate worse because more independent changes ship together, and they make recovery slower because the rollback surface is larger and the bisect space bigger. Improving deployment frequency without changing anything else is usually impossible, which is the point: the number moves when you fix the things that force work to accumulate.
The definition trap is what counts as a deployment. A deploy to staging is not a deployment. A release that is built but gated behind an unreleased feature flag is a judgement call — most teams count it, because the risky mechanical part (the artefact reaching production) has happened. Redeploys of an unchanged artefact should not count, or a flapping pipeline will flatter you.
- A low deployment frequency is usually a batch-size symptom, not laziness
- Exclude staging deploys and no-change redeploys
- Decide up front how you treat flag-gated releases, and apply it consistently
- Comparing two teams requires the same definition, not just the same chart
Lead time for changes: the clock starts at commit
Lead time for changes, as DORA defines it, is the time from code committed to code running in production. That is narrower than what most organisations mean by "lead time" in conversation, which usually starts at the idea, the ticket or the sprint commitment. Both are useful measures; they are not the same measure, and mixing them produces a number nobody trusts.
The DORA definition is deliberately scoped to the part of the pipeline engineering controls end to end. If you want to see the whole path, measure both and keep them labelled separately — commit-to-production tells you about your delivery machinery, idea-to-production tells you about your organisation.
Within commit-to-production, the aggregate is much less actionable than its parts. A four-day lead time made of three days of waiting for a first review is a completely different problem from four days of a queue for a shared staging environment. This is why Marvex breaks pull request time into first-response or pickup, review, rework and merge time: the aggregate says slow, the breakdown says where.
Percentiles matter here more than averages. Lead time distributions are heavily skewed — a handful of pathological changes drag the mean far above the experience of a typical change. Read the median for the typical case and a high percentile for the tail, and treat a widening gap between them as its own signal.
- DORA lead time = commit to production, not idea to production
- Measure both if you want them, but never blend them into one number
- Median plus a high percentile beats the mean on a skewed distribution
- Stage-level breakdown is what makes the number actionable
Change failure rate: the definition is the whole problem
Change failure rate is the proportion of deployments that cause a degraded service requiring remediation — a rollback, a fix-forward, a patch, a hotfix. The arithmetic is trivial. The definition of "failure" is where every organisation quietly diverges.
The most common failure mode is a definition that depends on human diligence: a deployment counts as failed if somebody remembers to declare an incident. That does not measure your change failure rate, it measures your incident-declaration culture, and it improves whenever the team gets busier. If the number falls after a stressful quarter, suspect the process before you celebrate.
The stricter alternative is to anchor on an observable remediating action. A revert commit, a rollback deployment, a hotfix branch merged within a defined window, an incident record linked to a release — all of these leave evidence that does not depend on anyone filling in a form. Marvex sources incidents from your incident data and feeds them into both change failure rate and recovery time, so the same underlying record drives both stability metrics rather than two separate manual counts.
Also be careful about the denominator. If you count only production releases in the numerator but every pipeline run in the denominator, your change failure rate will look excellent and mean nothing. Numerator and denominator must both be scoped to the same population of deployments.
- A failure needs an observable remediating action, not a memory
- Numerator and denominator must cover the same deployments
- A falling CFR during a stressful period is usually a reporting artefact
- Zero is not the target — a persistent zero usually means under-reporting
Recovery time, and reading the four as a set
Failed deployment recovery time measures how long it takes to restore service after a change-induced failure. It is the metric most sensitive to your definition of "restored": the moment the fix deploys, the moment error rates return to baseline, or the moment the incident is formally closed. Those can be hours apart. Pick one, and make sure the timestamp is captured automatically, because manually recorded end times drift towards whenever someone got round to updating the ticket.
The four metrics only make sense together. Deployment frequency without change failure rate rewards shipping anything. Change failure rate without deployment frequency rewards shipping nothing. Lead time without stability rewards skipping review. Any single metric, isolated and made a target, will be met in the cheapest available way.
The practical reading is a quadrant, not a scoreboard. Fast and stable means the system is working; keep going. Fast and unstable means your feedback loops before production are too weak for the pace, so invest in tests, canaries and progressive rollout rather than slowing down. Slow and stable often means safety is being bought with delay and manual gates, which stops working as the system grows. Slow and unstable means the batches are too large — attack batch size first, because it is upstream of both problems.
- Automate the recovery-end timestamp or it will drift
- Read throughput and stability side by side, always
- Fast and unstable: strengthen pre-production feedback, do not slow down
- Slow and unstable: reduce batch size before anything else
Frequently asked questions
What are the four DORA metrics?
Are DORA metrics a measure of individual developer productivity?
Does DORA lead time start when the ticket is created?
What counts as a deployment for deployment frequency?
Why is change failure rate so hard to measure accurately?
Should we aim for a change failure rate of zero?
How does Marvex calculate the four DORA metrics?
Keep reading
Marvex