Skip to content
Marvex

Guide

The Complete Guide to DORA Metrics

Four numbers that are easy to chart and surprisingly hard to define. Almost every argument about DORA data is really an argument about where the clock starts and what counts.

A complete working reference for the four DORA metrics — deployment frequency, lead time for changes, change failure rate and failed deployment recovery time — covering how each is defined, instrumented, misread and improved.

DORA MetricsMarvex EngineeringEngineering Intelligence, Shiprocket16 min read
A monitor displaying deployment and delivery time-series charts
2
Deployment detection models in Marvex: merge to a production branch, or a CI/CD workflow run
4
DORA metrics computed from the same connected source data

Where the four metrics come from, and what they claim

The four metrics originate in 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 statistically associated with organisational performance, rather than for measures of developer effort. Four survived: two describing throughput, two describing stability.

Throughput is deployment frequency and lead time for changes. Stability is change failure rate and the time taken to restore service after a failed change — published originally as mean time to restore, and renamed failed deployment recovery time in later DORA reports to make clear it is scoped to failures caused by a change rather than to every incident an organisation experiences.

The programme's most consequential structural finding is that throughput and stability are not a trade-off: in its survey population the same organisations tend to score well on both. That is worth citing accurately. It says the two move together in the data the programme collected; it does not say that deploying more often will, by itself, make your systems more reliable. The mechanism the research points at is smaller batches, faster feedback and better automation, all of which improve both at once.

One more framing note. None of the four measures individual productivity, and none was designed to. They describe a delivery system. A team can improve all four while every individual works exactly as before, because what gets fixed is queueing, batch size and feedback latency — not effort.

  • Source: the DORA research programme, summarised in Accelerate
  • Throughput: deployment frequency, lead time for changes
  • Stability: change failure rate, failed deployment recovery time
  • The throughput/stability correlation is a research finding about a survey population, not a causal promise

Deployment frequency

Definition: how often an organisation successfully releases change to production.

Read as a speed metric it becomes a leaderboard. Read as an inverse measure of batch size it becomes useful. If you deploy fortnightly, every release contains a fortnight of accumulated change, and everything downstream of that — review burden, blast radius, the difficulty of attributing a regression to a specific change — follows from the batch rather than from the deploy button.

That is why the metric predicts things it appears unrelated to. Large batches worsen change failure rate because more independent changes ship together, and they slow recovery because the rollback surface is larger and the bisect space wider. This also explains why deployment frequency is hard to improve directly: the number moves when you fix whatever forces work to accumulate, not when you deploy the same accumulated batch more enthusiastically.

The definition traps are all about what counts. A deploy to staging is not a deployment. A redeploy of an unchanged artefact should not count, or a flapping pipeline will flatter you. A release built but gated behind an unreleased feature flag is a judgement call — most teams count it, on the grounds that the mechanically risky part has happened and only the exposure is deferred. Whatever you decide, decide once and apply it everywhere, because two teams with different definitions cannot be compared no matter how similar their charts look.

  • A low deployment frequency is usually a batch-size symptom
  • Exclude staging deploys and no-change redeploys
  • Decide the feature-flag rule once and apply it consistently
  • Improve it by removing what forces work to accumulate

Lead time for changes

Definition, as DORA states it: the time from code committed to code successfully 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 measures are useful; they are not the same measure. Blending them produces a number that nobody trusts and everybody argues about, and the argument is never resolved because the two sides are measuring different things.

The DORA definition is deliberately scoped to the part of the path engineering controls end to end. If you want the whole picture, measure both and keep them labelled separately: commit-to-production describes your delivery machinery, idea-to-production describes your organisation. The second is usually much larger, and the gap between them is often the most interesting number in the building.

Within commit-to-production, the aggregate is far less actionable than its parts. A four-day lead time consisting of three days waiting for a first review is an entirely different problem from four days queued behind a shared staging environment. This is why Marvex splits pull request time into first response or pickup, review, rework and merge time — the aggregate tells you it is slow, the breakdown tells you where.

Read it with percentiles. Lead time distributions are heavily skewed; a small number of pathological changes drag the mean far above what a typical change experiences. Use the median for the typical case and a high percentile for the tail, and treat a widening gap between the two as a signal about consistency rather than speed.

  • DORA lead time is commit to production, not idea to production
  • Measure both if you want them — never merge them into one number
  • The stage breakdown is what makes the number actionable
  • Median plus a high percentile; the mean lies on skewed data

Change failure rate

Definition: the proportion of deployments to production that cause a degraded service requiring remediation — a rollback, a fix forward, a patch or a hotfix.

The arithmetic is trivial and the definition 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 conveniently improves whenever the team gets busier. If the number falls after a punishing quarter, suspect the reporting before you celebrate the stability.

The stronger approach anchors on an observable remediating action: a revert commit, a rollback deployment, a hotfix branch merged inside 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 instead of two independent manual counts.

Watch the denominator as carefully as the numerator. If the numerator counts only production releases while the denominator counts every pipeline run, your change failure rate will look superb and mean nothing. Both must be scoped to the same population of deployments.

Finally, resist the instinct to drive change failure rate to zero. A rate of zero across a long period usually means one of three things: you are not counting properly, you are shipping so rarely that each release is enormous, or you have stopped taking any risk at all. None of those is a healthy delivery system.

  • A failure needs an observable remediating action, not a recollection
  • Numerator and denominator must cover the same deployments
  • A falling CFR during a stressful period is usually a reporting artefact
  • Zero is a measurement smell, not an achievement

Failed deployment recovery time (MTTR)

Definition: how long it takes to restore service after a failure caused by a change reaching production.

The scoping is the part most implementations get wrong. This metric is about change-induced failures, not about every incident. A cloud provider outage, an expired certificate nobody deployed and a capacity event during a traffic spike are all real incidents and none of them belongs in this number, because the metric exists to describe how quickly your delivery system can undo its own mistakes. Mixing in unrelated incidents makes the metric a general reliability measure and destroys its connection to change failure rate.

The second problem is the clock. Start-of-incident is genuinely ambiguous: it can mean when the degradation began, when monitoring detected it, or when a human acknowledged it. These can differ by hours, and the gap between the first two is itself the most useful diagnostic you have — a long detection gap means the fix is observability, not incident response. Pick one definition, write it down, and if you can, track detection separately.

End-of-incident is equally slippery. Service restored is not the same as root cause understood, and not the same as the permanent fix shipped. The metric should end at service restored, with the follow-up tracked separately; teams that wait for the permanent fix produce a recovery time dominated by how long a proper fix takes to schedule.

Read it as a distribution, always. Recovery times are the most skewed of the four: a handful of genuinely hard incidents will dominate any average, and a mean recovery time is often a number that describes no incident that actually happened. Report the median alongside the worst case, and count the incidents — a fast recovery time computed from three events is not a measurement, it is an anecdote with error bars.

  • Scope to change-induced failures, not to every incident
  • Define the start of the clock and track detection separately if you can
  • Stop the clock at service restored; track the permanent fix separately
  • Report a median and a worst case, and always show the incident count

Instrumenting deployments: PR_MERGE versus WORKFLOW

Two of the four metrics — deployment frequency and lead time — depend entirely on knowing when change reached production, and that is the one thing a tool cannot infer for you. Marvex therefore supports two deployment detection models, and choosing between them is a real decision with real consequences for the numbers.

PR_MERGE treats a merge into a nominated production branch as a deployment. It fits teams whose pipeline releases automatically on merge, and it has the advantage of requiring nothing beyond the source control connection you already have. Its assumption is that merge and release are effectively simultaneous. Where a merge sits in a queue for hours before a scheduled release, this model will understate lead time.

WORKFLOW treats a successful run of a named CI/CD workflow as a deployment. It fits teams with an explicit deploy job, a release train, or a manual promotion step, and it is the more accurate model whenever merge and release are decoupled. Its cost is configuration: you must name the workflow, and you must keep that name correct when the pipeline is renamed or replaced — a stale workflow name produces a deployment frequency of zero, which looks like a delivery collapse and is actually a config error.

The two models produce genuinely different numbers on the same repository, which is why the choice must be recorded rather than defaulted into. A monorepo with several deployable services is the case that most often needs WORKFLOW, because merges to the production branch there do not map one-to-one onto releases of anything.

One practical check before trusting any DORA dashboard: take a week you remember well and confirm the deployment count matches what actually shipped. Almost every implausible DORA number in existence is a deployment detection problem rather than a delivery problem.

  • PR_MERGE: merge to a production branch counts as a deployment
  • WORKFLOW: a successful named CI/CD run counts as a deployment
  • Decoupled merge and release means WORKFLOW is the accurate model
  • Validate against a week you remember before trusting the trend

Reading the four together

The four metrics are a set, and reading any one alone produces a predictable mistake.

Deployment frequency alone rewards shipping recklessly. Lead time alone rewards avoiding hard work. Change failure rate alone rewards shipping nothing. Recovery time alone rewards declaring fewer incidents. Each pathology is neutralised by its pair, which is exactly why the set has four members and not one composite score.

Some useful joint readings. Deployment frequency up and change failure rate flat means the batch-size work is landing — this is the good pattern. Deployment frequency up and change failure rate up means you have moved risk rather than reduced it, usually by cutting a check. Lead time down and rework share up means review is being rushed. Change failure rate down and recovery time up is the classic signature of a reporting change rather than a delivery change: fewer things are being labelled failures, and the ones that survive the relabelling are the genuinely hard ones.

And resist the composite. There is a persistent temptation to compress four metrics into a single delivery score so it fits on an executive slide. Every such score has the same defect: it can be improved by making the organisation worse, because the weighting is arbitrary and the components trade against each other. Four numbers on a slide is not too many.

  • Each metric alone has a pathology; the pairing is the point
  • Frequency up with CFR flat is the pattern you are aiming for
  • CFR down with recovery time up usually means the definition changed
  • Never compress the four into a single score

Moving the numbers: a sequence that works

The order matters, because the four metrics have a dependency structure. Attack them in the wrong order and you spend a quarter on something the system will not let you improve yet.

First, fix measurement. Validate deployment detection against a week you remember, agree the change failure definition, and check that repositories map to the right teams. Nothing downstream is worth doing on data you do not trust, and the credibility cost of publishing a wrong number early is higher than the delay.

Second, attack pull request size. It is the highest-leverage single change available and it needs no organisational permission: smaller changes get picked up sooner, reviewed more carefully, reworked less and are far easier to attribute a failure to. Every other metric improves as a side effect.

Third, attack pickup time — the wait before anyone looks at a change. It is usually the largest single stage in cycle time and it is a routing problem, fixed by naming a reviewer rather than assigning a team, setting a first-response expectation, and capping how many reviews one person holds concurrently.

Fourth, attack merge time, which is where pipeline duration and flaky tests live. This one costs real engineering effort, which is why it comes after the two free wins.

Only then push on deployment frequency directly. By this point the batch sizes are smaller, the queue is shorter and the pipeline is faster, so releasing more often is a decision rather than a fight. Doing it first, without the preceding work, just ships the same large batches more anxiously.

  • Validate the measurement before publishing anything
  • Pull request size first — it is free and it moves everything
  • Pickup time second — routing and reviewer capacity
  • Merge time third — pipeline duration and flakiness
  • Deployment frequency last, once it is a decision rather than a fight
DORAdeployment frequencylead time for changeschange failure rateMTTRAccelerate

Frequently asked questions

What are the four DORA metrics?

Deployment frequency (how often change is released to production), lead time for changes (time from code committed to code running in production), change failure rate (the proportion of deployments causing a degraded service that needs remediation) and failed deployment recovery time, originally published as mean time to restore (how long it takes to restore service after a change-induced failure). They come from the DORA research programme summarised in the book Accelerate, and are designed as two pairs: the first two describe throughput, the second two describe stability, so neither can be optimised in isolation without the other pair showing it.

How is lead time for changes defined exactly?

DORA defines it as the time from code committed to code successfully running in production. That is narrower than the everyday use of "lead time", which usually starts at the idea, the ticket or the sprint commitment. Both are legitimate measures of different things — commit-to-production describes the delivery machinery engineering controls, idea-to-production describes the whole organisation — but they must be kept separate and labelled, because blending them produces a number nobody trusts. Within commit-to-production, the aggregate is far less useful than a breakdown into first response, review, rework and merge time.

What is the difference between MTTR and failed deployment recovery time?

They are the same metric under two names, and the rename was a clarification. Later DORA reports renamed mean time to restore to failed deployment recovery time to make explicit that the metric is scoped to failures caused by a change reaching production, not to every incident an organisation experiences. A cloud provider outage, an expired certificate or a capacity event during a traffic spike are real incidents but do not belong in this metric, because it exists to describe how quickly a delivery system can undo its own mistakes. Mixing in unrelated incidents severs its connection to change failure rate.

How should a deployment be detected if there is no deployment tool?

Two models cover almost every setup. The first treats a merge into a nominated production branch as a deployment — accurate when the pipeline releases automatically on merge, and available from source control data alone. The second treats a successful run of a named CI/CD workflow as a deployment — the accurate choice whenever merge and release are decoupled by a release train, a promotion step or a manual approval. Marvex supports both (PR_MERGE and WORKFLOW). The two produce different numbers on the same repository, so the choice should be made deliberately, recorded, and validated against a week whose releases you remember.

What counts as a change failure?

A deployment counts as a failure when it causes a degraded service that requires remediation — a rollback, a fix forward, a patch or a hotfix. The reliable way to identify one is an observable remediating action rather than a memory: a revert commit, a rollback deployment, a hotfix merged inside a defined window, or an incident record linked to a release. Definitions that depend on someone remembering to declare an incident measure incident-declaration culture instead, and they improve whenever the team gets busier. The denominator must cover the same population of deployments as the numerator, or the ratio is meaningless.

Is a change failure rate of zero good?

It is almost always a measurement problem rather than an achievement. A sustained zero usually means one of three things: failures are not being captured because the definition depends on manual declaration, deployments are so infrequent that each one is an enormous batch heavily gated by manual testing, or the organisation has stopped taking any risk it could learn from. A healthy delivery system running frequent small changes will have a non-zero, stable change failure rate and will recover quickly. Investigate a zero the same way you would investigate an implausibly good number anywhere else.

Should DORA metrics be compared between teams?

Compare each team against its own trend rather than against other teams. Absolute values depend on what is being shipped and to whom: a team releasing an independently deployable web service and a team releasing a shared library or base image face different constraints, and a lower deployment frequency on a shared dependency is often the correct behaviour rather than a deficiency. Cross-team comparison also requires identical definitions of deployment and of failure, which rarely survives contact with different pipelines. Trends are comparable across teams; the raw numbers usually are not.

How often should DORA metrics be reviewed?

Monthly for trend and decision-making, with a quarterly deeper review. Weekly resolution on delivery data is mostly noise — a holiday, a release freeze, a conference or two people on leave produce swings that look like signal and are not — so weekly review tends to generate reactions to randomness. A monthly rhythm is long enough for a real change to become visible and short enough to act on. Reserve the quarterly review for the questions that need a longer window: whether an investment paid off, whether a structural change worked, and whether the metric definitions still match how the organisation ships.

Keep reading

Marvex

See it on your own delivery data

Connect GitHub, GitLab or Jira and Marvex builds your DORA, cycle-time and sprint views from the history you already have.