DORA Metrics Data Collected

Cette page n'est pas encore disponible en français, sa traduction est en cours.
Si vous avez des questions ou des retours sur notre projet de traduction actuel, n'hésitez pas à nous contacter.

DORA Metrics is not available in the selected site () at this time.

DORA Metrics is in Preview.

Overview

DORA Metrics generates events that have associated fields and tags.

Event TypeDescription
DeploymentA single code deployment. Each deployment is uniquely identified by a specific combination of env, service, and version tags.
CommitA commit event is generated for each individual commit included in a deployment. These events contain metadata and are automatically linked to the corresponding deployment.
FailureA failure in production, such as an incident, rollback, or alert.

Default tags

All events contain the following tags if any are available:

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

Note: The severity tag is available for failure events when it is provided by the failure’s data source.

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

DORA metrics

DORA Metrics provide the following fields:

MetricDescription
Deployment FrequencyThe number of deployments detected by Datadog based on your selected deployment data source.
Change Lead TimeThe age in seconds of all associated Git commits at the time of deployment.
Change Failure RateCalculated with the formula Count of Failures/Count of Deployments. A long time rollup of at least 1 week is recommended to account for the time difference between deployments and when the failure starts.
Time to RestoreThe time in seconds between a failure’s started_at and finished_at timestamps.

Change lead time stages

Datadog breaks down change lead time into the following fields, which represent the different stages from commit creation to deployment.

MetricDescription
Time to PR ReadyTime from when the commit is created until the PR is ready for review. This metric is only available for commits made before the PR is marked as ready for review.
Review TimeTime from when the PR is marked ready for review until it receives the last approval. This metric is only available for commits made before the PR is approved.
Merge TimeTime from the last approval until the PR is merged.
Time to DeployTime from PR merge to start of deployment. If a commit has no associated PR, this metric is calculated as the time from commit creation to start of deployment.
Deploy TimeTime from start of deployment to end of deployment. This metric is not available if there is no deployment duration information.

These stages are only computed when the source of the repository metadata is GitHub, and for most stages there must be a pull request (PR) associated with a commit. A commit is associated with a PR if the commit is first introduced to the target branch when merging that PR. If a commit has no associated PR, only Time to Deploy and Deploy Time fields are available.

Recommendations

Using commit-level granularity provides a more accurate view of engineering performance. At the deployment level, metrics are calculated as an average of averages, which can obscure key insights. This approach treats all deployments equally, even if one contains one commit and another contains ten, misrepresenting their impact.

Notes

  • These fields are measured for every commit and not per deployment.
  • There are several edge cases depending on the way the commits were introduced to the deployment, view the limitations.

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.

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.

Failure fields

FieldDescription
Time to RestoreThe time in between a failure’s started_at and finished_at timestamps.

Further Reading

PREVIEWING: rtrieu/auto-instrumentation-updates