For AI agents: A markdown version of this page is available at https://docs.datadoghq.com/delivery_performance/dora_metrics/data_collected.md. A documentation index is available at /llms.txt.

DORA Metrics Data Collected

This product is not supported for your selected Datadog site. ().

Overview

DORA Metrics generates events that have associated fields and tags.

Event TypeDescription
DeploymentA single code deployment uniquely identified by env, service, and version tags.

Deployments can be marked as failed and are used to compute deployment frequency, change failure rate, and failed deployment recovery time.
Pull RequestA pull request included in a deployment. Contains metadata such as author, reviewers, labels, and time spent drafting, reviewing, and merging. Commits are nested within their associated pull request.

Pull requests are used to analyze code review workflows and PR-level cycle time.
CommitAn event generated for each individual commit included in a deployment. Contains metadata and is automatically linked to the corresponding deployment. Commits are nested within their associated pull request.

Commits are used to compute change lead time.

Note: DORA Metrics events have a 2-year retention period.

Default tags

All events contain the following tags if any are available:

  • service
  • team
  • env
  • version
  • source
  • repository_id

For more information about using tags, see Getting Started with Tags.

Custom tags

Deployment events can be enriched with custom tags to filter DORA Metrics. There are two potential sources for these tags:

  • Catalog: If a deployment event is associated with services in Catalog, it is automatically enriched with the language tag and the custom tags defined in the Service Definitions.
  • DORA Metrics API: Up to 100 user-provided custom tags can be added to deployment events in the API.

For more information about using custom tags in DORA Metrics, see DORA Metrics Overview.

Event-specific fields

Deployment fields

FieldDescription
DurationDuration of the deployment.
Avg Change Lead TimeThe average duration of change lead time of all commits.
Avg Time to PR ReadyThe average duration of time to PR ready of all commits.
Avg Review TimeThe average duration of review time of all commits.
Avg Merge TimeThe average duration of merge time of all commits.
Avg Time to DeployThe average duration of time to deploy of all commits.
Number of CommitsCount of all commits included in a deployment.
Deployment TypeType of deployment (standard, rollback, or rollforward).
Change FailureBoolean indicating whether a deployment is marked as a change failure.
Recovery TimeDuration in seconds between a failed deployment’s finished_at and its remediation’s finished_at. Only available for deployments marked as change failures.
Remediation TypeThe type of remediation applied (rollback or rollforward). Only available for deployments marked as change failures.

Pull request fields

FieldDescription
PR Cycle TimeTotal duration from the first commit to merge.
Time to PR ReadyDuration from the first commit to when the PR is marked as ready for review.
Review TimeDuration from PR being marked ready for review to approval.
Merge TimeDuration from PR approval to merging.
Time to DeployDuration from merging to the start of deployment.
Deploy TimeDuration from start of deployment to end of deployment.
Number of CommitsCount of commits included in the pull request.
Number of ReviewersCount of reviewers who reviewed the pull request.
Number of Files ChangedCount of files changed in the pull request. Only available for GitHub.
Number of Lines AddedCount of lines added in the pull request. Only available for GitHub.
Number of Lines DeletedCount of lines deleted in the pull request. Only available for GitHub.
Total Number of Lines ChangedTotal count of lines added and deleted in the pull request. Only available for GitHub.
Time to First Human ReviewDuration until the pull request receives its first review from a human. Only available for GitHub.
Number of CommentsCount of comments on the pull request. Only available for GitHub.
Number of Human CommentsCount of comments on the pull request from humans. Only available for GitHub.
Fully AutomatedBoolean indicating whether the pull request was created and merged without human involvement.
Creator Bot TypeType of bot that created the pull request.
Creator Bot NameName of the bot that created the pull request.
Time CI FailingTotal duration that CI remained in a failing state across commits in the pull request. Requires CI Visibility.
Test Session DurationTotal duration of test sessions for the pull request’s head or merge commit. Requires Test Optimization.
Test Session Duration After ApprovalTotal duration of test sessions for the pull request’s head or merge commit after the pull request was approved. Requires Test Optimization.
Time to PassDuration from the first CI attempt until the first successful pipeline execution for the pull request’s head or merge commit. Requires CI Visibility.
Time to Pass After ApprovalDuration from the first CI attempt after pull request approval until the first successful pipeline execution for the pull request’s head or merge commit. Requires CI Visibility.
Patch CoveragePercentage of new or modified lines in the pull request’s head or merge commit that are covered by tests. Requires Code Coverage.

Commit fields

FieldDescription
Change Lead TimeDuration it takes for a commit to get into production.
Time to PR ReadyDuration from commit creation to when the PR is marked as ready for review.
Review TimeDuration from PR being marked ready for review to approval.
Merge TimeDuration from PR approval to merging.
Time to DeployDuration from merging to start of deployment.
Deploy TimeDuration from start of deployment to end of deployment.
Has Failed JobsBoolean indicating whether any CI job execution failed for the commit, including failures that passed after a retry. Requires CI Visibility.
Has Failed TestsBoolean indicating whether any test execution failed because of a non-flaky test in the commit. Requires Test Optimization.
Has New Flaky TestsBoolean indicating whether any new flaky tests were detected in the commit’s test sessions. Requires Test Optimization.

Further Reading