# DORA Metrics That Show Their Working

> Most engineering dashboards fail the same test: ask “where does that number come from?” and nobody can say. The AI Director of Engineering starts with the organisation and the flow of change: teams and ownership, and DORA and review flow from your code host and CI/CD, with every number’s definition, source and the records behind it.

Source: https://www.ticketresolve.ai/blog/dora-metrics-that-show-their-working · Published 2026-11-17 · TicketResolve AI

At a quarterly business review, the CTO of a 120-engineer company shows a slide with four DORA metrics: deployment frequency 52 a week, lead time 1.8 days, change failure rate 4%, time to restore 38 minutes. They look excellent.

The CFO, who used to run an engineering team, asks two questions. *"Does 52 deployments include staging?"* It does: the dashboard counted every successful pipeline run. *"How do you count a failed change?"* The dashboard counts any deployment within two hours before an incident as a failure, so it's both over-counting (deployments that just happened to be nearby) and under-counting (bad changes that caused problems a day later).

Then a team lead mentions, quietly, that the same dashboard has a "top committers" leaderboard that's been making two of her engineers miserable.

Nobody had lied. But nobody could say where the numbers came from, and some of what the dashboard measured was doing harm.

Most engineering dashboards fail the same test: ask "where does that number come from?" and nobody can say.

## First, the basics

- **DORA metrics** are four widely used measures of how well software delivery works, from the DevOps Research and Assessment programme:
  - **Deployment frequency**: how often changes reach production.
  - **Lead time for changes**: how long a change takes from being written to running in production.
  - **Change failure rate**: what share of production changes cause a problem.
  - **Time to restore**: how long it takes to recover when something breaks.
- **A code host** (GitHub, GitLab or Bitbucket) stores code. **A pull request** proposes a change; **merging** accepts it. **A merge commit** records it.
- **CI/CD** is the pipeline that builds, tests and deploys changes. **Production** is what customers use.
- **Review flow** measures how pull requests move through review: time to first review, time to merge, how long they wait.
- **Ownership** is which team is responsible for which repositories and services.
- **Bus factor** (here, resilience) is how much depends on one person.

**Why does this matter?** Engineering metrics shape decisions about headcount, process and priorities. If the numbers can't explain themselves, they can be wrong in ways nobody notices. And metrics that rank individuals make people optimise for the metric instead of the work.

## The problem, in plain terms

1. **Definitions are hidden**, so staging and production get mixed.
2. **Timing gets treated as cause**: a deployment before an incident isn't necessarily the cause.
3. **Missing data shows as zero.**
4. **Individual leaderboards** (commits, lines of code) do harm.
5. **Nobody owns some services**, and nobody notices until they break.

## Four DORA measures, each with its working

- **Deployment frequency** counts **successful deployments to the environments you call production**.
- **Lead time for changes** runs from **a pull request being opened to its change running in production**. When a production deployment **carries the merge commit**, that's exact; when it doesn't, we use **the next production deployment after the merge**, and **show how many of each there were**, rather than blending them silently.
- **Change failure rate** counts **failed production deployments plus successful ones that a person linked to an incident**. **A deployment that merely happened shortly before an incident doesn't count: timing isn't cause.**
- **Time to restore** is **the median time from opening to resolving an infrastructure incident**.

**Click any of them** and you get **the definition, the source, when it was calculated and the deployments, pull requests or incidents behind it**. **No data means a dash and an explanation, not a zero.**

## Review flow without the leaderboard

**Time to first review, time to merge, pull requests waiting more than a day, and the share of very large changes** come from the pull request lifecycle we read from GitHub, GitLab or Bitbucket: **timestamps, sizes, reviewers, never code**.

**What you won't find: commit counts per person, lines-of-code comparisons or automatic ratings.** **Measures are team-level.** **Who wrote which change is visible only to people with the individual-data permission, and only as context.**

## Ownership and resilience

Teams, people, reporting lines and skills sit alongside **what each team owns**: repositories, services, domains, components. **The gaps come out on their own**:

- **a deployed service nobody owns**;
- **a team without a lead**;
- **a skill only one person has**;
- **a repository where one person made nine in ten of the changes**.

That last one is about **resilience**: **the fix is a second maintainer, not a performance conversation**.

## A worked example, start to finish

Here's the same CTO, Elena, setting up Engineering Intelligence before the next quarterly review.

**Week 1, Monday.** In **Engineering intelligence → Code**, she connects GitHub with a read-only token and chooses 38 repositories. Pull requests sync every 30 minutes. Deployments come from the CI/CD integration already connected for Deployment intelligence.

**Monday, 11:00.** In **Engineering Leadership → Teams**, she adds seven teams with their leads, missions, objectives and weekly capacity, then people with their roles, managers and skills.

**Monday, 14:00.** She assigns each repository and deployed service to one team. **Gaps** lists:

- **2 deployed services nobody owns**: `pdf-renderer` and `legacy-webhooks`;
- **a team without a lead**: Data Platform, since a resignation last month;
- **a skill only one person has**: Kafka operations;
- **one repository where one person made 91% of the changes**: `billing-core`.

She assigns the two services, names an acting lead and asks the billing team to add a second maintainer for `billing-core`.

**Monday, 15:00.** The **command center**, last 30 days, shows deployment frequency as a **dash**, with the explanation: no production environment names set. In **Settings**, she sets production environment names to `prod` and `production-eu`.

**Monday, 15:05.** The four measures:

- **Deployment frequency: 23 a week** (not 52; staging is no longer counted).
- **Lead time: 2.6 days**, with the breakdown: 71% exact (deployment carried the merge commit), 29% from the next production deployment after merge.
- **Change failure rate: 9%**: 5 failed production deployments and 4 successful ones a person linked to an incident, out of 99.
- **Time to restore: 52 minutes**, median.

**Monday, 15:15.** She clicks **change failure rate** and sees the 9 deployments behind it. Three deployments that happened just before incidents aren't counted, because nobody linked them.

**Monday, 15:30.** **Review flow**: time to first review 9 hours, time to merge 1.4 days, 18 pull requests waiting more than a day, 12% very large changes. Team-level. No leaderboard.

**Quarterly review.** Elena shows the new numbers, clicks into each to show definitions and the records behind them, and explains the drop from 52 to 23 deployments: it's production only now. The CFO is satisfied. The team lead's engineers no longer see a leaderboard.

## Five more real-world scenarios

### 1. Deployments without the merge commit

**Situation.** Some pipelines don't send the merge commit with deployments.

**How TR handles it.** Lead time uses the next production deployment after the merge for those, and shows how many of each kind there were.

### 2. A deployment just before an incident

**Situation.** A deployment happened 20 minutes before an outage.

**How TR handles it.** It doesn't count as a failure unless a person links it to the incident. Timing isn't cause.

### 3. A manager wants individual stats

**Situation.** A manager asks for commits per engineer.

**How TR handles it.** There are no per-person commit counts, line comparisons or ratings. Measures are team-level.

### 4. A service with no owner

**Situation.** An old service is still deployed but nobody remembers whose it is.

**How TR handles it.** It appears under Gaps as a deployed service nobody owns.

### 5. One maintainer for a critical repository

**Situation.** One engineer made 95% of the changes to the payments library.

**How TR handles it.** It's flagged as a resilience gap. The fix is a second maintainer.

## Before and after

**Before.** Flattering numbers that counted staging and treated timing as cause, and a leaderboard making engineers miserable.

**After.** Four DORA measures with their definitions, sources and records one click away, lead time that shows how it was measured, failures linked by a person, team-level review flow, and ownership gaps found on their own.

## How to tell it's working

- **Anyone can click a metric** and explain it.
- **Ownership gaps fall to zero.**
- **Single-maintainer repositories get second maintainers.**
- **Teams discuss review flow**, not individual output.

## Who it's for

- **CTOs and VPs of engineering** who report delivery performance.
- **Engineering managers** who improve flow.
- **Finance and leadership** who want metrics they can trust.

## How it fits with the rest of TicketResolve

This was the first phase of **Engineering Intelligence**, the AI Director of Engineering. Deployments come from **Deployment intelligence**; incidents from **DevOps & SRE**. Next came projects and delivery forecasts, quality and technical debt, capacity and budget, the **AI Director** and reports.

## Mistakes to avoid

- **Leaving production names unset.** Deployment frequency shows a dash until you set them.
- **Linking every nearby deployment to incidents.** Link only the ones that caused them.
- **Using ownership gaps against people.** They're about resilience.

## Do it in TicketResolve, step by step

**Where:** Engineering Leadership (`/dashboard/engineering-leadership`) and Organization (`/dashboard/engineering-leadership/organization`). **You'll need:** a read-only token for your code host, deployments from your CI/CD, and admin access to set teams. **Full guides:** [Setting up teams and ownership](https://www.ticketresolve.ai/docs/guide/engineering-setup) and [Reading the engineering command center](https://www.ticketresolve.ai/docs/guide/engineering-command-center).

1. **Connect the code host.** **Engineering intelligence → Code**: connect GitHub, GitLab or Bitbucket with a read-only token and choose repositories. Pull requests sync every 30 minutes.
2. **Add teams.** **Engineering Leadership → Teams → Add a team**, with its lead, mission, objectives and weekly capacity.
3. **Add people.** Add each person with their role, manager and skills. Managers with individual access can add code-host logins to link pull requests.
4. **Assign ownership.** Assign each repository and deployed service to one team. Unowned ones are listed under **Gaps**.
5. **Set production names.** If deployment frequency shows a dash, set your production environment names in **Settings**.
6. **Pick a period and team.** Filter by 7 to 90 days, a team or a repository.
7. **Open a measure.** Click any figure to read its definition and source and see the deployments, pull requests or incidents behind it.

**How to check it worked:** every DORA measure shows a value or a dash with an explanation, and clicking it opens the records behind it.

## Frequently asked questions

**Which deployments count?**
Successful deployments to the environments you call production.

**How is lead time measured?**
From a pull request being opened to its change running in production, exact when the deployment carries the merge commit.

**What counts as a failed change?**
A failed production deployment, or a successful one a person linked to an incident.

**Does a deployment just before an incident count as a failure?**
No. Timing isn't cause.

**What does a dash mean?**
No data, with an explanation. It's never shown as zero.

**Is any code read?**
No. Only timestamps, sizes and reviewers.

**Are there individual leaderboards?**
No. Measures are team-level.

**What's a resilience gap?**
For example, a repository where one person made nine in ten of the changes. The fix is a second maintainer.
