CI/CD Analytics

Research
Introduced by
Jez Humble and David Farley
Year
2010
Type
Pipeline measurement framework
Family
DevOps Metrics

What does it do?

CI/CD analytics is the measurement and analysis of continuous integration and continuous deployment pipelines, used to track how quickly and reliably software changes reach production.

Its best-known set is the four key metrics: deployment frequency, lead time, change failure rate, and mean time to recovery (MTTR). These metrics are associated with the research reported in Forsgren, Humble and Kim's Accelerate (2018), while Humble and Farley's Continuous Delivery (2010) describes the build, test and deployment automation that such pipelines measure.

The intuition behind the method

A pipeline records events as a side effect of running: commits arrive, builds and tests run, and deployments are made. Analytics turns these records into measurements of how the delivery process behaves over time. The four key metrics summarise two sides of delivery: speed (how often and how quickly changes ship) and stability (how often changes fail and how quickly service is restored). Because the values come from logged timestamps and outcomes rather than estimates, a team can compare them against its own history. They describe the process but do not by themselves explain why a trend changed.

History

Humble and Farley's Continuous Delivery (2010) describes build, test and deployment automation as the basis for reliable releases, which is the process that CI/CD analytics measures. Duvall, Matyas and Glover's Continuous Integration (2007) covers the practice of integrating and testing changes automatically, the stage whose records the pipeline logs. Forsgren, Humble and Kim's Accelerate (2018) reports on DevOps performance and is the source associated with the four key metrics. The four metrics are now widely referred to as DORA metrics, a name linked to the research reported in Forsgren, Humble and Kim (2018).

When to use it

Choose CI/CD analytics when a team has an automated pipeline that records commits, builds, tests and deployments, and when deployments happen often enough for trends in the metrics to become visible. It suits DevOps and continuous delivery settings, including cloud-native and containerised systems. It is less informative for projects that release in infrequent batches, because there are too few events for the metrics to change meaningfully. Do not use the metrics as a performance rating of individuals, and do not compare raw values across teams whose pipelines and definitions differ. The results are most useful when the team agrees on the definitions and reviews the numbers together.

Limitations and considerations

  • The metrics show that a change failed or that recovery was slow, but not why; root-cause analysis is still required.
  • Deployment frequency and change failure rate can move in opposite directions when quality practices lag, so each metric is only meaningful alongside the others.
  • Instrumentation adds work to the pipeline and can add run time, a cost to weigh against the information gained.
  • Values depend on how each team defines a deployment, a failure and a recovery, so raw numbers are not directly comparable between teams.
  • Metrics based on few releases or incidents are unstable, so an apparent improvement or deterioration may reflect normal variation rather than a real change.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Lead time and deployment frequency are derived from logged commit and release timestamps, so they can be recomputed the same way each time and do not depend on estimates.
  • Change failure rate and MTTR show whether faster delivery is coming at the cost of stability, which a throughput count alone cannot show.
  • Because the four metrics are read together, a change in one (for example, more frequent releases) can be checked against its effect on the others.
  • Trends in change failure rate or MTTR can prompt investigation before a major outage occurs.

Applications

  • DevOps maturity assessment: comparing a team's own metric trends over time rather than against other teams' values.
  • Incident response: tracking MTTR and grouping failures to identify recurring patterns.
  • Capacity planning: checking whether deployment frequency has levelled off, which may indicate a process or pipeline limit.
  • Quality assurance: relating changes in test investment to changes in change failure rate.
  • Process improvement: comparing the four metrics before and after a process change, while recognising that other factors may also have changed.

How it works

How it works

1

Add logging at the build, test and deployment stages so that each commit, pipeline run and release leaves a timestamped record. The metric definitions, such as where lead time starts and what counts as a failed change, should be fixed at this stage.

2

Collect the recorded events over time: commit and deployment timestamps, test outcomes, deployment results, and incident start and resolution times. No model is fitted at this step; it builds the history against which later values are read.

3

Compute the four metrics from the logged records over a fixed time window. Deployment frequency is the number of production deployments divided by the length of the window. Lead time is the mean interval, across changes, from the commit timestamp to the production deployment timestamp. Change failure rate is the number of deployed changes that needed a fix or rollback divided by the total number of deployed changes. MTTR is the mean interval, across incidents, from the incident start timestamp to the timestamp at which service is restored. Each team should state which events and timestamps it uses for these definitions, because the values depend on them.

4

Read the metrics as trends. A falling MTTR suggests recovery is improving, a rising change failure rate suggests quality is slipping, and a deployment frequency that stops rising may point to a capacity limit. Each reading is a hypothesis to test through root-cause analysis rather than a conclusion. Metrics built from few releases or incidents are noisy, so a short-term movement may reflect chance; read trends over a window that contains enough events and compare any change with the normal variation in the team's own history before acting on it.

Common pitfalls

  • Tracking a single metric, such as deployment frequency, rewards the easiest number to raise; the four metrics are intended to be read together.
  • Gaming: a team that skips review to shorten lead time, or that does not record real failures as failures, produces numbers that look better without better delivery.
  • Changing definitions over time, for example moving the start point of lead time, breaks trend comparisons.
  • Poor instrumentation, such as missing or misordered timestamps, produces misleading values that look precise.

Frequently asked questions

What are the Four Key Metrics (DORA metrics)?

Deployment frequency (how often changes are deployed), lead time (commit to production), change failure rate (the share of changes that require a fix), and mean time to recovery (time to resolve a production incident). Together they are used to describe delivery speed and stability.

How do I compute lead time accurately?

Measure from the code commit timestamp to the moment the change is deployed to production. The interval includes code review, CI tests, deployment approval and the deployment itself. Automated tools such as GitHub Actions and GitLab CI can log these timestamps. Teams should fix one definition of the start point and apply it consistently.

Is high deployment frequency always good?

Not necessarily. Deployment frequency is only meaningful alongside change failure rate: frequent deployments with many failures indicate instability. Smaller changes are usually easier to test and to roll back, which can help keep failure rates down, but whether this holds depends on the team's context. The acceptable failure rate is a team decision and should be judged against the team's own trend rather than a fixed benchmark.

How do I reduce mean time to recovery (MTTR)?

Investing in observability (logs, metrics and traces), maintaining runbooks, and training for incident response all help. Feature flags can allow quick rollbacks, and blue-green deployments can limit the impact of a faulty release. Blameless post-mortems help identify systemic causes.

Sources

  1. Humble, J., & Farley, D. (2010). Continuous Delivery: Reliable Software Releases through Build, Test, and Deployment Automation. Addison-Wesley.

    ISBN: 0321601912
  2. Forsgren, N., Humble, J., & Kim, G. (2018). Accelerate: The Science of Lean Software and DevOps. IT Revolution Press.

    ISBN: 1942788339
  3. Duvall, P. M., Matyas, S. M., & Glover, A. (2007). Continuous Integration: Improving Software Quality and Reducing Risk. Addison-Wesley.

    ISBN: 0321336380