Metrics That Define High-Performance CI/CD Workflows

DORA's five delivery metrics plus the pipeline metrics that drive them: duration, queue time, flaky tests. Formulas and how to collect them.

Aug 22, 2025 - 14:50
Nov 6, 2026 - 20:03
 0  93
TOPICDevOps BasicsPractical guide
Metrics That Define High-Performance CI/CD Workflows

High-performance CI/CD is defined by two layers of metrics. Outcome metrics, the DORA set of change lead time, deployment frequency, change fail rate, failed deployment recovery time and deployment rework rate, show whether delivery is fast and stable. Pipeline metrics such as build duration, queue time, success rate and flaky test rate explain why those outcomes are good or bad.

Most articles stop at the DORA list. This guide pairs each outcome metric with the pipeline signals that drive it, gives formulas you can compute from GitLab, GitHub Actions or Jenkins data, and shows how to keep the numbers honest. For the wider picture of CI/CD stages and tools, start with our CI/CD pipeline examples from big tech pillar.

Key takeaways

  • DORA now describes five software delivery metrics in two groups: throughput (lead time, deployment frequency, recovery time) and instability (change fail rate, rework rate).
  • In 2023 DORA renamed mean time to restore to failed deployment recovery time, counting only failures caused by a deployment. Deployment rework rate was added in 2024.
  • Pipeline health metrics (duration, queue time, success rate, flakiness, time to fix a red main branch) are the levers that move DORA numbers.
  • Measure teams against their own trend, not against each other, and never turn these metrics into individual targets.
  • Collect data automatically from your CI system and deployment events. Manual spreadsheets drift within weeks.

Layer 1: delivery outcome metrics (DORA)

DORA (DevOps Research and Assessment) has studied software delivery performance for over a decade. Its current model uses five metrics. Our What is DevOps guide introduces them; here is how to apply them to a pipeline.

MetricGroupDefinitionTypical data source
Change lead timeThroughputTime from a change being committed to it running in productionCommit timestamps plus production deployment events
Deployment frequencyThroughputHow often changes are deployed to productionProduction deployment jobs or CD tool events
Failed deployment recovery timeThroughputTime to recover when a deployment causes a failure in productionIncident records linked to deployments
Change fail rateInstabilityShare of deployments that cause a failure needing immediate interventionDeployments plus incidents, rollbacks or hotfixes
Deployment rework rateInstabilityShare of deployments that are unplanned, made to fix a production incidentDeployments tagged as hotfix or incident response

Two common mistakes are worth calling out. First, recovery time counts only failures caused by a change; a cloud provider outage is an operational incident, not a delivery metric. Second, DORA treats reliability as a separate operational measure rather than one of the delivery metrics. Track SLOs alongside, but keep the definitions apart. Our posts on why DORA metrics matter and 12 key DevOps metrics cover the organisational side.

Formulas you can implement

change_lead_time      = median( prod_deploy_time - commit_time )   per change
deployment_frequency  = count(prod_deployments) / days_in_period
change_fail_rate      = failed_prod_deployments / total_prod_deployments
recovery_time         = median( recovered_time - failed_deploy_time )
rework_rate           = unplanned_prod_deployments / total_prod_deployments

Use medians or percentiles (p50, p90) for time metrics. A mean is pulled around by one change that sat in review for a month.

Layer 2: pipeline health metrics

DORA tells you the result. These metrics tell you where to act. They come straight from your CI system.

Pipeline metricWhat it measuresDORA metric it movesWarning sign
Pipeline duration (p50, p90)Wall-clock time from trigger to finishLead time, recovery timep90 rising week over week
Queue timeTime jobs wait for a runner or agentLead timeWaits of minutes at peak hours
Pipeline success rateShare of runs that pass on the default branchDeployment frequencyMain branch red for hours
Flaky test rateTests that pass and fail on the same commitLead time, change fail rateDevelopers re-run jobs by habit
Time to restore a red main branchFrom first failing run to next passing runDeployment frequencyBroken builds left overnight
Review timeFrom merge request opened to approvedLead timeChanges wait days for review
Batch sizeLines or commits per deploymentChange fail rateLarge weekly release bundles
Rollback rateDeployments revertedChange fail rate, reworkRollbacks becoming routine
Security findings blocking releaseCritical issues found by scanners in the pipelineChange fail rateFindings ignored or bypassed
Cost per pipeline runRunner minutes or compute spendIndirectCost growing faster than run count

Lead time broken into stages

Change lead time hides several waits. Splitting it shows where the time actually goes:

  1. Coding to merge request opened: mostly a team habit (small, frequent changes help).
  2. Waiting for review: often the biggest share in practice.
  3. CI on the merge request: pipeline duration plus queue time.
  4. Merge to production deploy: release batching, approvals and CD duration.

If review time dominates, faster runners will not help. If CI dominates, look at caching, parallel jobs and test selection. Our guide on speeding up Docker builds in CI/CD covers one common bottleneck.

How to collect the data

GitLab

GitLab records deployments to environments when jobs declare an environment. Its DORA metrics feature (in the higher paid tiers) reports deployment frequency, lead time, time to restore service and change failure rate per project or group, and exposes them through an API:

curl --header "PRIVATE-TOKEN: $GITLAB_TOKEN" \
  "https://gitlab.example.com/api/v4/projects/42/dora/metrics?metric=deployment_frequency&interval=daily"

Mark production jobs with a production environment so deployments are counted:

deploy_prod:
  stage: deploy
  script:
    - ./deploy.sh production
  environment:
    name: production
    url: https://shop.example.com
  rules:
    - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH

GitLab labels for incidents determine what counts as a failure, so agree on those labels before you trust the numbers.

GitHub Actions

Every workflow run has start and end times available through the REST API, and deployments to environments are recorded as deployment objects. A short query pulls recent run durations:

gh api "repos/OWNER/REPO/actions/runs?branch=main&per_page=50" \
  --jq '.workflow_runs[] | [.name, .conclusion, .run_started_at, .updated_at] | @tsv'

Using environment: production in deployment jobs creates deployment records you can count for deployment frequency and link to commits for lead time.

Jenkins

The Jenkins Prometheus metrics plugin exposes job and build metrics on an HTTP endpoint that Prometheus can scrape. Build duration and result per job give you pipeline duration and success rate. Pair it with deployment events from your CD step to compute DORA numbers.

Prometheus and Grafana

Once build and deployment events are metrics, dashboards are straightforward. If your deployment step increments a counter labelled by service and result, a PromQL query gives a change fail rate:

sum(increase(deployments_total{env="production",result="failed"}[30d]))
/
sum(increase(deployments_total{env="production"}[30d]))

The metric name here is an example you would define yourself. Our list of CI/CD monitoring tools and tools to measure DevOps performance metrics compare ready-made options such as Grafana dashboards, Sleuth, LinearB and the open-source Four Keys project.

What "high performance" looks like

DORA publishes performance clusters in each State of DevOps report, and the thresholds change from year to year. Check the current report on dora.dev rather than copying numbers from old articles. The patterns are stable, though:

  • Throughput and stability move together. Teams that deploy more often tend to have lower change fail rates, because changes are smaller.
  • Fast teams keep the main branch green and fix it first when it breaks.
  • Pipelines that give feedback in minutes, not hours, keep developers in flow and keep batch sizes small.
  • Recovery is mostly about rollback ability and feature flags, not heroics.

Practices that improve the numbers

Problem metricPractice to try
Long pipeline durationDependency and layer caching, parallel test shards, running only affected tests
High queue timeAutoscaling runners, separating heavy and light jobs onto different runner pools
Flaky testsQuarantine list with an owner and deadline; track flake rate per test
Long review timeSmaller merge requests, review SLAs, CODEOWNERS routing
High change fail rateQuality gates, canary or blue/green rollouts, post-deploy checks
Slow recoveryOne-command rollback, feature flags, clear on-call runbooks
High rework rateBetter pre-production testing and smaller batches; review incident causes

For the gating side, see 10 CI/CD quality gates for production reliability and post-deployment validation steps.

Keeping metrics honest

  • Agree definitions first. Write down what counts as a production deployment, a failure and a recovery. Inconsistent definitions make trends meaningless.
  • Do not set metrics as individual targets. When a number becomes a target, people optimise the number. Splitting one change into five tiny deploys raises frequency without improving anything.
  • Compare a team with its own past. A payments team and an internal tools team have different risk profiles.
  • Read throughput and instability together. Deployment frequency rising while change fail rate also rises is not progress.
  • Review monthly, act on one bottleneck at a time.

Metrics, pipelines and GitLab CI are covered hands-on in our DevOps training, available in our Kharadi, Pune classroom and live online.

Frequently asked questions

What are the most important CI/CD metrics?

Start with the DORA delivery metrics (change lead time, deployment frequency, change fail rate, failed deployment recovery time and deployment rework rate), then add pipeline duration, queue time, success rate and flaky test rate to find the causes.

What are the five DORA metrics?

Change lead time, deployment frequency and failed deployment recovery time measure throughput. Change fail rate and deployment rework rate measure instability. Rework rate was added in 2024.

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

MTTR usually covers any incident. DORA's failed deployment recovery time, renamed in 2023, counts only the time to recover from failures caused by a deployment, which keeps it focused on delivery.

How do I measure lead time for changes?

For each change, subtract the commit timestamp from the time that commit reached production, then report the median and p90 over a period. Split it into review, CI and release stages to find the bottleneck.

What is a good pipeline duration?

There is no universal number. Aim for feedback on a merge request within minutes, and watch the p90 trend. A rising p90 usually points to growing test suites, cache misses or runner shortages.

How do I find flaky tests?

Track tests that both pass and fail on the same commit, or that pass only on retry. Most CI systems and test reporting tools can flag these. Quarantine them with an owner and fix date.

Can DORA metrics be used to rank developers?

They should not be. DORA designed them for teams and systems. Using them as individual targets encourages gaming and hides the real constraints.

Which tools calculate DORA metrics automatically?

GitLab has built-in DORA reporting in higher tiers, and tools such as Sleuth, LinearB and the open-source Four Keys project compute them from Git, CI and incident data.

References

Interested in learning more?Get a callback from our training advisors.

What's Your Reaction?

Like Like 0
Dislike Dislike 0
Love Love 0
Funny Funny 0
Angry Angry 0
Sad Sad 0
Wow Wow 0
Mridul I am a passionate technology enthusiast with a strong focus on DevOps, Cloud Computing, and Cybersecurity. Through my blogs at DevOps Training Institute, I aim to simplify complex concepts and share practical insights for learners and professionals. My goal is to empower readers with knowledge, hands-on tips, and industry best practices to stay ahead in the ever-evolving world of DevOps.