Most engineering leaders are asked some version of the same question: are we getting faster or slower, and is quality holding up? Story points and ticket counts do not answer it. The four DORA metrics do, which is why they have become the default starting point for measuring software delivery.
DORA stands for DevOps Research and Assessment, a long-running research programme now part of Google Cloud. Its research identified four measures that together describe delivery performance. This guide explains each metric, how to measure it reliably, and what actually moves it. It complements our introduction to what DevOps is and the measurement work in our DevOps consulting engagements.
The four key metrics
| Metric | What it measures | Type | How to calculate |
|---|---|---|---|
| Deployment frequency | How often you release to production | Throughput | Count of successful production deployments per day or week, per service |
| Lead time for changes | How long a change takes to reach users | Throughput | Time from commit (or merge) to running in production; report the median |
| Change failure rate | How often a deployment causes a problem | Stability | Deployments needing a rollback, hotfix or incident, divided by total deployments |
| Time to restore service | How quickly you recover from a failed change | Stability | Time from the failure being detected to service being restored; report the median |
Newer DORA material refers to the fourth metric as failed deployment recovery time, to make clear that it covers failures caused by changes rather than every outage. DORA has also discussed additional measures such as reliability over the years. The original four remain the practical core and the best place to start.
Why the four work as a set
Each pair keeps the other honest. A team can raise deployment frequency by shipping carelessly, but change failure rate will rise. A team can cut its failure rate by releasing rarely and testing for weeks, but lead time will balloon. Looking at all four together shows whether you are genuinely improving or just trading one problem for another. The key insight behind the research is that speed and stability are not opposites: small, frequent, well-tested changes tend to improve both.
Few failures but long waits. Reduce batch size, automate approvals and speed up the pipeline.
Frequent, reliable releases. Protect it: watch for creeping pipeline times and test debt.
Slow and fragile. Start with automated tests and a reliable, repeatable deployment before trying to go faster.
Frequent releases that often break. Invest in tests, gradual rollouts and monitoring before adding speed.
How to measure DORA metrics reliably
The hardest part is not the arithmetic but the definitions. Two teams can report very different numbers for identical behaviour simply because they define deployment or failure differently.
- 01Define terms
Write down what counts as a production deployment and what counts as a failure (rollback, hotfix, incident above a set severity).
- 02Pick sources
Use version control for commits and merges, the CI/CD tool for deployments, and the incident or on-call tool for failures and recovery.
- 03Link events
Tag each deployment with its commits and each incident with the deployment that caused it.
- 04Calculate per service
Report weekly or monthly, use medians for time-based metrics, and show trends rather than single values.
- 05Review and act
Discuss the numbers in retrospectives and choose one constraint to work on next.
A few practical tips:
- Start manually if you have to. A spreadsheet updated weekly from deployment logs and the incident channel is better than waiting months for a dashboard.
- Automate once definitions settle. Some CI/CD platforms, GitLab among them, offer built-in DORA reporting, and engineering analytics tools can collect the data across systems. A short script against your CI and incident APIs also works.
- Use medians, not averages. One change that waited three weeks for a holiday freeze will distort an average for months.
- Segment by service. A mobile app with app store review and an internal API have very different natural rhythms; one combined number hides both.
Decide the awkward edge cases up front and write the answers next to your definitions. Does a configuration-only change count as a deployment? Does a failed deployment that was stopped before reaching users count as a failure? Does recovery end when a rollback finishes, or when the root cause is fixed? There is no single right answer, but there must be one consistent answer, or the trend becomes meaningless.
A worked example
Take a hypothetical service over one month. It had 20 production deployments, so deployment frequency is roughly five a week. Three of those deployments needed a rollback or hotfix, so the change failure rate is 3 divided by 20, or 15 percent. The median time from merge to production across all changes was two days, and the median time to restore the three failed changes was 90 minutes. The numbers are illustrative, not a benchmark; the point is that each one comes straight from records you already have, with no estimation or self-reporting.
How to improve each metric
Improvement comes from the system, not from asking people to work harder. Find the biggest constraint, change one thing, and watch the trend. Lead time is often the best place to look first, because breaking it into stages (coding, waiting for review, waiting for the pipeline, waiting for release) usually reveals one queue that dominates.
- Break work into smaller pull requests and stories
- Adopt trunk-based development with short-lived branches
- Automate deployment end to end
- Use feature flags to ship unfinished work switched off
- Speed up CI by caching and parallelising tests
- Agree a review turnaround time within the team
- Replace manual approvals with automated policy checks
- Provide on-demand test environments
- Add automated tests at the right levels
- Roll out gradually with canary or blue-green releases
- Keep database migrations backward compatible
- Turn every incident review into a concrete fix
- Alert on user-facing symptoms, not just server metrics
- Make rollback a single, tested command
- Keep runbooks next to the alerts they belong to
- Practise incident response before you need it
Most of these levers live in the pipeline, covered in our CI/CD pipeline guide, and in testing practice, covered in building a QA process for agile teams. Recovery time depends heavily on monitoring; our support and maintenance team pays as much attention to restore paths as to uptime.
Pitfalls to avoid
- Ranking teams against each other. Context differs: a payments service in fintech and a marketing site carry very different risks. Compare a team with its own past, not with its neighbours.
- Setting targets on a single metric. Once a measure becomes a target it stops being a good measure. Splitting one deployment into five raises frequency without delivering anything.
- Ignoring what the numbers cannot see. DORA metrics say nothing about whether you are building the right thing, or about developer wellbeing. Pair them with product outcomes and regular team feedback.
- Treating it as a one-off report. The value is in the trend and the conversation it prompts every few weeks.
Your first month with DORA metrics
If you have never measured delivery before, keep the first month deliberately small. Pick one or two services with an engaged team. Agree the definitions in a short meeting and write them down. Collect the last few weeks of deployments and incidents by hand to get a rough baseline, even if some data is missing. Share the numbers with the team first, not with management, and ask what they think is slowing them down; the answer usually matches what the data shows. Then choose one improvement, such as smaller pull requests or a faster test stage, and look at the trend again after a few weeks. Only automate the collection once the definitions have survived a couple of review cycles.
Beyond the four keys
Once the basics are in place, many teams add service-level objectives for reliability, developer experience surveys, and frameworks such as SPACE that look at satisfaction and collaboration as well as activity. A rising change failure rate is also often a symptom of accumulated shortcuts; our guide to technical debt explains how to spot and pay that down.
At DivTech we help teams set up honest, automated DORA measurement and then work through the constraints it reveals. Contact us if you would like help getting a first baseline.
Frequently asked questions
What are the four DORA metrics?
Deployment frequency, lead time for changes, change failure rate and time to restore service (also called failed deployment recovery time). The first two measure throughput and the last two measure stability.
Where does the data for DORA metrics come from?
Usually from version control (commits and merges), the CI/CD system (deployments) and the incident or on-call tool (failures and recovery). Linking deployments to commits and incidents to deployments is the key step.
What is a good DORA score?
The most useful comparison is with your own previous quarter. Context such as regulation, app store review and system risk changes what is realistic, so focus on steady improvement in the trend rather than an external benchmark.
Can DORA metrics be used for individual performance reviews?
They should not be. They describe how a team's delivery system behaves; applying them to individuals invites gaming and discourages collaboration such as pairing and reviewing.