DORA Metrics across Teams
DORA Metrics from a Deploy Log computed the delivery metrics for one team. A platform team needs them across many teams, for one reason above all: to show whether the platform makes delivery better. That means segmenting by whether a service is on the golden path, comparing before and after migrations, and avoiding the traps that make cross-team numbers lie.
One pipeline of events for everyone
The platform is in a lucky position: if every service deploys through the same CI and GitOps flow, every deploy produces the same events. A typical collection setup:
| Event | Source | Fields |
|---|---|---|
| change merged | Git host webhook | service, commit, first commit time, merge time |
| deployed to production | Argo CD notification or the CD job | service, commit, time |
| deployment failed / rolled back | Argo CD health, rollback commit, incident tool | service, commit, time |
| recovered | incident tool, next healthy deploy | service, time |
Plus the catalog for who owns the service and whether it's on the golden path (from the template's .golden-path.yaml or a catalog annotation). Open-source options for collecting and showing DORA metrics include the Four Keys project's approach (events into a warehouse) and Apache DevLake; many portals have DORA plugins.
Segmenting by golden path
from statistics import median
# (service, team, on golden path?, lead time in hours for each production deploy, failed?)
DEPLOYS = [
("shortlinks", "team-growth", True, [3, 5, 2, 4, 6, 3, 2, 5], [0, 0, 0, 1, 0, 0, 0, 0]),
("redirector", "team-links", True, [8, 6, 9, 7, 5, 6], [0, 0, 1, 0, 0, 0]),
("linkly", "team-links", True, [4, 3, 6, 5, 4, 3, 4], [0, 0, 0, 0, 0, 1, 0]),
("analytics", "team-growth", False, [30, 52, 41], [1, 0, 0]),
("billing-sync", "team-billing", False, [96, 120], [0, 1]),
]
DAYS = 28
def summarise(rows):
leads = [l for r in rows for l in r[3]]
fails = [f for r in rows for f in r[4]]
return {"services": len(rows),
"deploys/week per service": round(len(leads) / len(rows) / (DAYS / 7), 1),
"median lead time h": median(leads),
"change fail rate": f"{sum(fails) / len(fails):.0%}"}
for label, on in (("golden path", True), ("off-road", False)):
print(f"{label:12}", summarise([r for r in DEPLOYS if r[2] == on]))golden path {'services': 3, 'deploys/week per service': 1.8, 'median lead time h': 5, 'change fail rate': '14%'}
off-road {'services': 2, 'deploys/week per service': 0.6, 'median lead time h': 52, 'change fail rate': '40%'}
That table is the platform team's headline result, with a big caveat: selection bias. Teams that adopted the golden path early may be the teams that were already fast; billing-sync may be off-road because it's hard. A fair comparison looks at the same services before and after they moved:
from statistics import median
# weekly median lead time (hours) for services that migrated to the golden path in week 5
history = {
"redirector": [30, 28, 33, 31, 9, 7, 8, 6],
"linkly": [22, 25, 21, 24, 7, 5, 6, 5],
"qr-codes": [40, 38, 44, 41, 39, 20, 15, 12], # migrated in week 5, slower to adopt the new flow
}
MIGRATION_WEEK = 5
for svc, weeks in history.items():
before = median(weeks[:MIGRATION_WEEK - 1])
after = median(weeks[MIGRATION_WEEK - 1:])
print(f"{svc:11} before {before:5.1f} h after {after:5.1f} h ({(after - before) / before:+.0%})")
all_before = median(w for weeks in history.values() for w in weeks[:MIGRATION_WEEK - 1])
all_after = median(w for weeks in history.values() for w in weeks[MIGRATION_WEEK - 1:])
print(f"{'all':11} before {all_before:5.1f} h after {all_after:5.1f} h ({(all_after - all_before) / all_before:+.0%})")redirector before 30.5 h after 7.5 h (-75%)
linkly before 23.0 h after 5.5 h (-76%)
qr-codes before 40.5 h after 17.5 h (-57%)
all before 30.5 h after 7.5 h (-75%)
The before/after view per service survives the "they were already fast" objection, and shows qr-codes took longer to benefit: a prompt to ask that team what got in the way (often: an onboarding gap, which is a platform bug).
Traps in cross-team DORA numbers
- Different definitions of "deploy" and "failure". If one team counts config changes as deploys and another doesn't, comparisons are meaningless. The platform can fix this by defining the events once, in the shared pipeline.
- Averages across very different services. A batch job that deploys monthly isn't a slow team. Compare like with like (by service type from the catalog) and compare each service mainly with its own past.
- Goodhart's law. "When a measure becomes a target, it ceases to be a good measure." Publish trends and use them to find the next experiment; don't rank teams or set per-team targets.
- Platform-caused failures. When the shared pipeline breaks, every team's change fail rate rises. Tag failures by cause, so platform incidents count against the platform team's own SLOs.
- Ignoring the human side. DORA measures the delivery system, not whether people are burning out to sustain it. The next lesson adds that.
Test yourself
Why is comparing golden-path services with off-road services not enough to prove the platform helps?
- DORA can't be segmented
- Selection bias: teams that adopted early may already have been faster; compare the same services before and after migrating
- Off-road services don't deploy
- Lead time can't be measured
Which practice keeps cross-team DORA metrics comparable?
- Each team defines its own events
- The platform defines deploy, failure and recovery events once, in the shared pipeline
- Use averages across all services
- Rank teams monthly