Engineering metrics that matter: DORA, SPACE and what to avoid
How to measure an engineering team without breaking it: DORA delivery metrics, the SPACE framework, flow metrics, developer experience, metrics in the AI era, team vs individual metrics, and how to introduce them so they help rather than get gamed.
Key takeaways
- Use metrics to help teams see and improve their system, not to rank individuals.
- DORA's delivery metrics show speed and stability together. The best teams are good at both.
- Productivity has several dimensions. Combine at least three, including how developers experience their work.
- Activity counts such as lines of code, commits and "% AI code" are easily gamed and say little about value.
- Introduce metrics with the team, explain what they're for, and look at trends rather than targets.
"What gets measured gets managed," the saying goes. In software engineering, what gets measured badly gets gamed. Counting lines of code produces verbose code; counting tickets produces tiny tickets; ranking engineers by commits destroys collaboration.
Good metrics do something different: they help a team see its own system, notice problems early and check whether changes help. This guide covers the frameworks worth knowing (DORA, SPACE and flow metrics), what changes with AI tools, which metrics to avoid, and how to introduce measurement without damaging trust. It continues with Alex and the Payments team at Northwind Cloud.
#Why measure at all?
Engineering work is hard to see. Without data, conversations about speed, quality and improvement run on anecdotes: the last incident, the loudest complaint, a feeling that "things are slow". Good metrics:
- show trends that individual experiences hide
- make problems visible early, such as rising lead times or growing review queues
- test whether changes work: did the new review process actually help?
- support conversations with stakeholders with evidence rather than opinion
The goal is learning, not judgment.
#DORA: delivery performance
The DORA research program, now part of Google Cloud, has studied software delivery for over a decade. It identified four key metrics that together describe delivery performance:
| Metric | Question | Strong teams (approx.) |
|---|---|---|
| Deployment frequency | How often do we deploy to production? | On demand, often many times a day |
| Lead time for changes | How long from commit to production? | Less than a day |
| Change failure rate | What share of deployments cause a problem? | Around 5% or less |
| Time to restore service | How quickly do we recover from failure? | Less than an hour |
Recent DORA reports call the last metric failed deployment recovery time, and have explored additional measures such as rework rate. The exact thresholds shift from year to year; the trend in your own team matters more than a benchmark.
DORA's most important finding is that speed and stability aren't a trade-off. The best teams deploy more often and fail less, because small, frequent changes are easier to test, review and roll back. Practices that drive both include continuous integration, trunk-based development, automated testing, loosely coupled architecture and a culture where people can raise problems.
When Alex started measuring, the Payments team deployed about once a week, with a lead time of around five days and a change failure rate of about 15%. Large, infrequent releases were the cause of both the slowness and the failures. Over six months of moving to smaller changes and automated checks, they reached daily deployments with a failure rate under 5%.
#SPACE: productivity has several dimensions
Developer productivity can't be captured in a single number. The SPACE framework, from researchers at GitHub, Microsoft and the University of Victoria, describes five dimensions:
- Satisfaction and well-being: how fulfilled and healthy developers are, and whether they'd recommend their team.
- Performance: outcomes, such as quality, reliability and customer impact.
- Activity: counts of actions, such as pull requests or deployments. Useful in context, dangerous alone.
- Communication and collaboration: how well information flows, how reviews work, how people find help.
- Efficiency and flow: how easily work moves without interruptions, delays and handoffs.
The framework's advice: use at least three dimensions together, including at least one perceptual measure such as a survey. Activity alone is always misleading.
#Flow metrics
Flow metrics look at how work moves from idea to customer:
- Cycle time: how long an item takes from starting work to done.
- Throughput: how many items are completed per week.
- Work in progress (WIP): how many items are in progress at once.
- Flow efficiency: the share of cycle time spent actively working, versus waiting.
Flow efficiency is often surprisingly low: work waits for review, for decisions, for another team. Reducing waiting usually speeds things up more than working harder. Throughput data also makes forecasting more reliable, as the forecasting with data guide shows.
#Developer experience
How developers experience their work, including build times, flaky tests, unclear requirements, interruptions and tooling, strongly affects both productivity and retention. Measure it with short, regular surveys:
- "How easy is it to get your work done?"
- "What slowed you down most this month?"
- "How often are you interrupted when trying to focus?"
- "How confident are you deploying a change?"
Combine survey results with system data. If engineers say builds are slow and build times confirm it, you've found a clear investment case.
#Metrics in the AI era
AI coding assistants change what activity metrics mean. More code can be produced faster, which makes some old metrics even less useful:
- Lines of code and commit counts inflate without any change in value.
- "% of code written by AI" says nothing about quality, maintainability or customer impact.
- Review load often rises, because reviewing generated code becomes the bottleneck.
What to watch instead:
- Delivery and stability together: if lead time improves but change failure rate rises, AI may be adding speed without quality.
- Review time and pull request size: large, AI-generated pull requests are hard to review well.
- Rework: code changed again soon after being merged.
- Developer experience: whether people feel more effective, or more pressured.
DORA's 2024 research found that greater AI adoption was associated with modest improvements in individual productivity and code quality, but also with slightly lower delivery throughput and stability, a reminder that faster code generation doesn't automatically produce faster, safer delivery. The managing AI-augmented teams guide covers how to adapt.
#Metrics to avoid or handle carefully
- Lines of code: rewards verbosity. Worse with AI.
- Commits or pull requests per person: rewards splitting work artificially.
- Story points or velocity compared across teams: points aren't comparable between teams.
- Hours worked: measures presence, not value, and harms well-being.
- Individual leaderboards of any kind: destroy collaboration and invite gaming.
- "% AI-generated code": says nothing about quality or value.
Warning Goodhart's law: when a measure becomes a target, it ceases to be a good measure. Use metrics for learning, not for rewards or rankings.
#Team metrics, not individual ones
Most of these metrics describe teams and systems, not individuals. Software is built collaboratively: a quick review from a colleague, a design suggestion, help debugging. Individual metrics hide that work, and penalize the people doing it.
Individual performance is better assessed through expectations, evidence and feedback, as described in performance management. If you see something worrying in team data, it's a reason to ask questions, not to draw conclusions about a person.
#How to introduce metrics
How you introduce metrics matters as much as which ones you choose:
- Start with the team's questions. "What would help us see where we're slow?" is better than a dashboard from above.
- Explain the purpose clearly, and say what the data won't be used for: not for individual performance ratings.
- Start small: two or three metrics, automated where possible.
- Look at trends, not single values or comparisons with other teams.
- Review together regularly, in retrospectives or a monthly review, and decide on one improvement at a time.
- Revisit the metrics themselves: are they still useful? Are they being gamed?
The Payments team started with three: lead time, change failure rate, and a monthly two-question developer survey. Reviewing them in the monthly retrospective turned "deployments are painful" from a complaint into a project with visible results.
#Reporting to stakeholders
Leadership will ask how the team is doing. Give them:
- Outcomes first: what was delivered and its impact on customers or the business.
- A few trend lines with context: delivery speed, stability, quality.
- Explanations of significant changes, good or bad.
- What you're doing about problems.
Avoid dashboards without commentary. Numbers without context invite the wrong conclusions.
#A starter dashboard for one team
If you're starting from nothing, a dashboard of six numbers covers most of what a single team needs. Review it monthly, looking at trends over the last six months rather than single values.
| Dimension | Metric | Source |
|---|---|---|
| Speed | Lead time for changes | Version control and deployment pipeline |
| Speed | Deployment frequency | Deployment pipeline |
| Stability | Change failure rate | Incident tracker linked to deployments |
| Stability | Time to restore service | Incident tracker |
| Flow | Pull request review time | Version control |
| Experience | "How easy is it to get your work done?" (1–5) | Monthly two-question survey |
Add more only when the team has a specific question that these can't answer. For a group of teams, the same metrics aggregated, with each team's own trend visible, give leaders a view without turning numbers into rankings.
The Payments team's first review of this dashboard produced one finding that changed their work: pull requests waited an average of 26 hours for a first review. Agreeing a four-hour review norm in their charter cut lead time by more than a day.
#Common mistakes
- Measuring individuals with team metrics.
- Targets on metrics that then get gamed.
- Activity metrics treated as productivity.
- Comparing teams on numbers that aren't comparable.
- Dashboards nobody discusses.
- No perceptual data: only system metrics, no developer voice.
- Introducing metrics without the team.
#Checklist
- We track delivery speed and stability together.
- We combine at least three dimensions, including a developer survey.
- Metrics are used for team learning, not individual ratings, and the team knows this.
- We look at trends, discussed regularly, with one improvement at a time.
- We don't use lines of code, commit counts or "% AI code" as productivity measures.
- Reports to stakeholders include outcomes and context, not just numbers.
Next: managing up and stakeholders.
Keep reading
How engineering management changes when engineers work with AI assistants and agents: expectations, review capacity, context and guardrails, skills and growth for juniors and seniors, measuring impact, hiring, and keeping the pace sustainable.
How to design an interview loop that predicts performance and treats candidates fairly: competencies, scorecards, behavioral and technical questions, take-homes vs live coding, interviewing in the AI era, reducing bias, and running debriefs.
How to onboard software engineers so they're productive and connected quickly: preparing before day one, the first day and week, buddies, a first change in production, 30/60/90-day goals, remote onboarding, and how to measure it.