DORA metrics
How to Measure Deployments When You Have No Deployment Tool
Most teams that say they cannot measure DORA are missing a deployment record, not a metric. The record is usually already in Git or CI, unlabelled.
Two practical ways to detect deployments without a dedicated release tool — merges to a production branch and CI/CD workflow runs — including the failure modes of each and how to choose between them.
The missing record, not the missing metric
Teams that say they cannot measure DORA almost never lack the data. They lack one specific thing: a durable record that says "this change reached production at this time". Everything else — lead time, deployment frequency, and the link between a change and a later incident — is derived from that record.
A dedicated deployment tracker will give you that record cleanly, but you do not need one to start. Two sources are almost always available. The first is version control: a merge into a branch that you release from is a deployment event with a timestamp and a known set of commits. The second is CI/CD: a workflow or pipeline run that targets production has a start time, an end time, a conclusion, and a commit reference.
Both are approximations of the truth, and each is wrong in a different direction. Choosing between them is the single most consequential configuration decision in a delivery analytics setup, because it determines whether your deployment frequency describes your release behaviour or your branching convention. Marvex makes this explicit rather than hiding it: deployments are detected either as PR_MERGE or as WORKFLOW, and the choice is yours per configuration.
- You need a durable "change reached production at time T" record, not a new tool
- Two available sources: merges to a release branch, or CI/CD runs
- The choice determines whether the metric describes releases or branching
Option one: merge to a production branch
PR_MERGE treats a merge into a nominated branch — main, master, production, release, whatever you actually deploy from — as a deployment. It is the lowest-friction option because it requires no pipeline changes at all, and the data already exists in GitHub or GitLab going back through your history, so you get a populated trend on day one rather than starting a clock from zero.
It is accurate when merge and release are tightly coupled: if merging to main triggers a deploy within minutes and essentially always succeeds, the merge timestamp is a good proxy for the release timestamp. Many teams practising continuous deployment are in exactly this position.
It goes wrong in three specific ways. If you merge to main continuously but release on a schedule, PR_MERGE measures your merge cadence and calls it deployment frequency, which will make you look far faster than you are. If a deploy fails after the merge, PR_MERGE counts a deployment that never reached production. And if you release from tags cut off main rather than from main itself, the merge is upstream of the release decision and the two can diverge by days.
Use it when merging is releasing. If someone can point at a gap between the merge and the release — a train, a window, a manual promotion — the proxy is measuring the wrong event and you should move to the pipeline.
- Zero pipeline work, and historical data is already there
- Accurate when merge to the release branch triggers a deploy immediately
- Wrong when releases are batched, scheduled, tagged, or can fail after merge
Option two: the CI/CD workflow run
WORKFLOW treats a run of a nominated CI/CD workflow as the deployment. This is closer to the truth because the pipeline is the thing that actually performs the release, and it carries an outcome, so a failed deploy can be excluded from the count or — more usefully — recorded as a signal in its own right.
It needs three decisions made deliberately. First, which workflows count: name them explicitly rather than accepting anything that runs on the default branch, or your build and test workflows will be counted as deployments. Second, which environment: a pipeline that deploys to staging and production in separate jobs needs the production job identified, not the whole run. Third, what to do with retries: a workflow re-run after a transient failure is not a second deployment of the same change, and counting it inflates frequency exactly when the system is least healthy.
The trade-off is history. Pipeline definitions change, workflows get renamed, and a team that reorganised its CI six months ago may have a discontinuity in the series. That is not a reason to avoid the approach; it is a reason to annotate the date and to avoid reading a trend straight across it.
For teams with any gap between merging and releasing — a release train, a change window, a manual promotion, a canary that runs for an hour — WORKFLOW is the correct choice, and using PR_MERGE instead will systematically overstate deployment frequency and understate lead time.
- Name the specific workflows that deploy — do not accept every run on main
- Identify the production job when one pipeline covers several environments
- Decide whether a re-run counts, and be consistent about it
- Expect a discontinuity in the series wherever pipeline definitions changed
What to do about lead time and about failures
Once a deployment record exists, lead time follows from it. For each deployment, find the commits it carried and take the elapsed time from each commit to the deployment timestamp. Two conventions exist for aggregating: the oldest commit in the batch (pessimistic, reflects the worst wait) or the median across commits. Whichever you use, note that a large batch will contain very old commits and will therefore produce a long lead time — which is not a measurement bug, it is the metric correctly reporting a batching problem.
Failures need their own record, and this is where most instrumentation efforts stall. The reliable signals are the ones that leave evidence without anyone remembering to do anything: a revert commit landing on the release branch, a rollback deployment of a previous artefact, a hotfix branch merged within a defined window after a release, or an incident record whose start time falls after a deployment. Marvex sources incidents and feeds them into both change failure rate and mean time to recovery, so the two stability metrics stay consistent with each other.
Resist the temptation to build a perfect linkage before you start. A change failure rate computed from revert-and-hotfix evidence is imperfect but stable, and a stable imperfect measure that everybody understands is far more useful than a precise one that depends on a form being filled in.
- Lead time = commit timestamp to deployment timestamp, aggregated consistently
- Prefer failure signals that leave evidence: reverts, rollbacks, hotfixes, linked incidents
- A long lead time on a large batch is the metric working, not a bug
A sequence that gets you to a usable baseline
Start by writing the definition down before touching any configuration. One paragraph: what counts as a deployment, which environment, which branches or workflows, what happens to retries and to failed runs. This document is what makes the numbers arguable in a productive way later.
Then connect source control — GitHub or GitLab — and pick the detection mode that matches the definition you just wrote. If merge equals release, PR_MERGE; if anything sits between them, WORKFLOW. Configure the production branch or the specific workflows explicitly rather than relying on a default.
Next, sanity-check against reality. Take a week you remember and compare the recorded deployments against what actually happened. Missing deployments usually mean a workflow was not included; phantom ones usually mean retries or a non-production job is being counted. This step takes an hour and prevents months of arguing with a chart.
Only then add failure detection, and only then start reading trends. Give it a few weeks before treating any movement as signal — you are establishing a baseline, not grading a quarter. Once the baseline is real, the same records support change failure rate, recovery time, and the ability to ask Velo a question like "how did deployment frequency change this month" and get an answer from your data rather than from someone remembering.
- Write the deployment definition down before configuring anything
- Pick PR_MERGE only if merging is releasing; otherwise use WORKFLOW
- Reconcile one known week against the recorded deployments before trusting trends
- Treat the first few weeks as a baseline, not as a verdict
Frequently asked questions
Can you measure DORA metrics without a deployment tracking tool?
Should a merge to main count as a deployment?
What is the difference between PR_MERGE and WORKFLOW deployment detection?
How do you calculate lead time once deployments are detected?
How do you detect a failed change without a formal incident process?
How long before deployment metrics are trustworthy?
Keep reading
Marvex