Main Points
- Pick five KPIs or fewer for leadership: one for speed, one for stability, one for quality and two for your current problem.
- Lead time for changes is the best single summary of delivery health.
- Pair every speed KPI with a quality KPI, or teams will trade one for the other.
- Use KPIs as team signals and never as personal targets.
Ask five engineering leaders which KPIs they track and you get ten answers, most of them about activity: commits, story points, hours. Those numbers say how busy a team is. The nine below say whether the team delivers working software at a speed the business can use, and each one can be pulled from tools you already have.
I use them as a set, because a speed measure without a quality measure rewards the wrong behavior. A software engineering consulting baseline review starts with the first four. If you are building your plan from scratch, the sequence in my software engineering roadmap shows when to introduce each one.
What Separates a KPI From a Metric
A metric is any number you can measure. A KPI is a metric tied to a decision: someone looks at it on a schedule and changes what they do. Pull request count is a metric. Lead time, with a named owner and a target, is a KPI. My guide to software engineering metrics covers the wider set, and the KPIs here are the short list worth reporting upward.
| KPI | What it reveals | Typical reference |
|---|---|---|
| 1. Lead Time for Changes | Speed of your whole delivery path | Hours to days from commit to production |
| 2. Deployment Frequency | How small your batches are | Daily or weekly for most healthy product teams |
| 3. Change Failure Rate | Whether fast changes also work | Under 15 percent is a common target for mature teams |
| 4. Time to Restore Service | How well you recover | Under one hour is a strong result for customer-facing systems |
| 5. Cycle Time | Where work waits | 3 to 7 days from work started to work done, for typical stories |
| 6. Defect Escape Rate | How well tests catch bugs | Falling quarter over quarter matters more than the absolute figure |
| 7. Technical Debt Ratio | How much code drag you carry | Under 5 percent is a typical goal in static analysis tools |
| 8. Sprint Predictability | Whether dates can be trusted | 80 percent or higher of committed work finished is a healthy range |
| 9. Developer Onboarding Time | How friendly your setup is | Two to four weeks to a first production change is common |
Lead Time for Changes
Lead time is the clock from the moment a developer commits a change to the moment it runs in production. It is the single best summary of how smooth your delivery path is, because every manual approval, slow build and waiting queue adds to it. If you track only one KPI, I would pick this one.
Leaders like it because it ignores opinions. A team with a lead time of two days can react to a customer problem the same week. A team at three weeks cannot. Look at the median and the 90th percentile, since a few stuck changes hide behind a good average.
How to measure it
- Record the timestamp of the first commit on a change.
- Record the timestamp of the production deploy that contains it.
- Subtract the two for every change in the period.
- Report the median and the 90th percentile.
- Review the slowest changes to find the queue they waited in.
Requirements to Track It
Your Git host and deployment logs already hold both timestamps. A small script or the DORA metrics view in GitLab or a tool such as Sleuth is usually enough.
Deployment Frequency
Deployment frequency counts how often you push changes to production. It shows batch size indirectly: teams that deploy often ship small changes, and small changes are easier to test, review and roll back.
Read it with care. A high number from a single noisy service says little. Count per product or per team, and look at the trend rather than the absolute figure. A team moving from monthly to weekly releases has made a big step even if it is nowhere near daily.
Steps to track it
- Decide what counts as a production deployment for each service.
- Log one event per deployment from the pipeline.
- Group events per team and per week.
- Plot the trend over at least a quarter.
- Check frequency against failure rate before celebrating.
Helpful Tools
Any CI system can emit deployment events. GitHub Actions deployments, GitLab environments and Argo CD all keep a history you can export.
Change Failure Rate
Change failure rate is the share of deployments that need a rollback, a hotfix or other immediate action. It balances the speed measures above: shipping fast only counts if the changes work.
The hard part is the definition. Agree in writing what counts as a failure, such as any deploy followed by a rollback or an incident within 24 hours. Without that, two teams report the same quality with different numbers, and the KPI loses meaning.
Setting it up
- Write one sentence that defines a failed change.
- Link each incident or rollback to the deploy that caused it.
- Divide failed deploys by all deploys per month.
- Break the number down by service.
- Review every failure in a short blameless note.
Where the Data Lives
Incident tools such as PagerDuty or Opsgenie can link incidents to releases. A spreadsheet of rollbacks works fine for the first quarter.
Time to Restore Service
Time to restore measures how long it takes to recover from a failure that affects users. It captures your monitoring, your rollback path and the clarity of your incident routine in one number.
A short time to restore lets you take more risks in releases, because mistakes become cheap. Leaders should watch the median and also the worst case of the quarter, since one long outage shapes customer trust more than ten short ones.
How to improve and track it
- Start the clock when customers are affected, not when someone notices.
- Stop it when service is back to normal.
- Record the cause category for each incident.
- Add automated rollback for the most common cause.
- Drill the routine once a quarter with a mock incident.
Setup and Tooling
Monitoring platforms such as Datadog or Grafana give you the start time, and your incident log gives the end. Status page tools help you keep the data consistent.
Cycle Time
Cycle time measures how long a work item takes from the moment someone starts it to the moment it is done. Unlike lead time, it includes the coding and review phase, so it reveals where work waits: in review, in testing or in a handoff.
I find the breakdown more useful than the total. A story that spends one day coding and four days waiting for review has a review problem, not a developer problem. Show the stages as a stacked bar and the conversation becomes practical.
Steps to break it down
- Map the states your tickets pass through.
- Pull the timestamps of each state change.
- Compute time in each state per item.
- Find the state with the longest median wait.
- Set a small target for that state and check it monthly.
What to Use
Jira and Linear both provide cycle time reports. If your states are messy, clean them up first, because the data is only as good as your workflow.
Defect Escape Rate
Defect escape rate is the share of bugs found by customers or in production compared with all bugs found. It shows how well your tests and reviews catch problems before release.
Do not turn it into a target for individuals. When people are rewarded for a low number, bugs get relabeled as feature requests. Use it as a team signal, and combine it with severity so a rare critical bug counts more than ten cosmetic ones.
Making it reliable
- Tag every bug with where it was found.
- Define severity levels in one paragraph.
- Count escaped and caught bugs per release.
- Review the three worst escapes each quarter.
- Add a test for each escape before closing it.
Data Sources
Your issue tracker holds the data if you add one field for where the bug was found. Static analysis tools like SonarQube can add a view of risky code.
Technical Debt Ratio
Technical debt ratio compares the estimated cost of fixing known code problems with the cost of building the code. Static analysis tools calculate it automatically from rules such as duplication, complexity and known vulnerabilities.
The number is a rough estimate, not a measurement of lost money. Its value is in the trend and in the hot spots it points to. When the ratio climbs for three months in a row on code that changes often, your team is borrowing against future speed.
Using it well
- Run the analysis on every pull request.
- Set a gate on new code only, so legacy does not block work.
- Track the ratio per module.
- Match the worst modules with the most changed files.
- Fund fixes for the overlap first.
Tools Behind It
SonarQube and similar scanners report the ratio out of the box. Pair them with your Git history to see which flagged files change most.
Sprint Predictability
Sprint predictability compares what the team committed to at the start of a sprint with what it finished. Stakeholders care about it because it decides whether delivery dates can be trusted.
Low predictability usually comes from unclear scope, hidden dependencies or interruptions, not from slow developers. Pushing the team to commit less often fixes the number without fixing the cause, so review why work was carried over every few sprints.
Steps to improve it
- Record committed and completed items per sprint.
- Mark each carry-over with a reason.
- Group the reasons by type.
- Fix the most frequent cause first.
- Look at the three-sprint average, not a single sprint.
Where to Look
Any agile board gives you the commitment data. A simple chart of the last ten sprints is enough to start the conversation.
Developer Onboarding Time
Onboarding time is the number of days from a new developer's start date to their first change in production. It reflects the quality of your documentation, setup scripts and team habits, which makes it a quiet KPI for engineering health.
If a newcomer needs six weeks to ship, the same friction slows every existing developer a little each day. They just no longer notice. Ask each new hire to log what blocked them in week one and turn the list into fixes.
Making it measurable
- Record the start date and the date of the first merged change.
- Keep a list of blockers the newcomer hit.
- Turn each blocker into a ticket.
- Automate the local setup with one script.
- Re-measure with the next hire.
Getting the Data
A shared onboarding checklist in your wiki is the main tool. Dev container setups and a good README remove most of the setup time.
How to Choose Which KPIs to Report
Start from the problem you have today, not from a list. A few questions narrow the set quickly:
- Do releases feel slow? Start with lead time and deployment frequency.
- Do customers find bugs first? Start with change failure rate and defect escape rate.
- Do dates keep slipping? Add sprint predictability and cycle time.
- Does the code fight you? Watch the technical debt ratio on the busiest modules.
Most of the data comes from the software engineering tools you already pay for. Give every KPI one owner, one review date and one threshold that triggers action. A KPI nobody reviews is decoration. If your leaders want help turning these into a baseline and targets, the hurdles teams face when they first measure delivery are worth reading before the first meeting.
Sources
Throughput and instability definitions follow the DORA software delivery metrics guide.
Questions About Software Engineering KPIs
What Are the Most Important Software Engineering KPIs?
Lead time for changes, deployment frequency, change failure rate and time to restore service are the core four, taken from the DORA research program. Add defect escape rate for quality and sprint predictability for planning. Together they show speed, stability and trust without drowning leaders in numbers.
How Many KPIs Should an Engineering Team Track?
Five or fewer at the leadership level. More than that and nobody remembers them or acts on them. Teams can track more detailed metrics for their own use, but the KPI list should stay short, with an owner and an action threshold for each.
What Is the Difference Between KPIs and OKRs?
KPIs are ongoing health measures, such as lead time or failure rate. OKRs are time-bound goals, such as cutting lead time by 30 percent this quarter. A KPI becomes the key result of an OKR when you decide to move it on purpose.
Are Story Points a Good KPI?
No. Story points estimate relative effort for planning, and they differ between teams. Comparing them across teams or adding them up as output invites inflation. Use flow measures such as cycle time and lead time instead, which are based on elapsed time and need no estimates.
How Do We Start Measuring If We Have No Data?
Begin with lead time and deployment frequency, since your Git host and pipeline already hold the timestamps. Collect them for a month with a simple script. Add failure rate once you agree on the definition of a failed change. Perfect data is not needed to see the direction.
Can KPIs Be Gamed?
Yes, any number can. Defects get relabeled, releases get split into tiny pieces, and commits get padded. Reduce the risk by using KPIs as team signals, pairing speed with quality measures and never tying them to individual pay or rankings.
How Often Should Leaders Review Engineering KPIs?
Monthly for trends, with a quick weekly look at the stability numbers. Reviewing daily creates noise, and reviewing quarterly is too slow to change course. Keep each review short and end it with one decision about what to try next.
Please note: this guide is general information and not legal, financial or tax advice. Numbers and examples are typical-project estimates; confirm current details with your providers and advisers.
Did this article help you?
Thanks, noted.
Whitney Sorensen
Whitney leads the Umber editorial team and works with the consultants to turn real client projects into practical guides on software selection, custom development, integration and legacy modernization. Before joining Umber, she spent years writing and editing for engineering and IT teams. She has since reviewed architecture audits, system selections and modernization plans from client projects across industries from manufacturing to healthcare. She works remotely from the USA.