This product is not supported for your selected Datadog site. ().
Join the Preview!

CD Visibility is in Preview. If you're interested in this feature, complete the form to request access.

Request Access

Overview

Knowing when specific deployments are performing a rollback is useful to:

  • Understand deployment stability and the frequency of rollbacks across your services.
  • Identify patterns in deployment issues that lead to rollbacks.

To detect rollbacks, Datadog compares the current deployment version with the previous versions deployed for the same service and environment. A rollback is identified when both of the following occur:

  • The current version is different from the previous version. This ensures that redeploying the same version does not constitute a rollback.
  • The current version matches a version that was previously deployed.

You can search for rollback deployments in Deployment Executions, using the @deployment.is_rollback tag:

Rollback indicator in Deployment Executions page

You can also see more detailed information in the event detail:

Rollback detail

Requirements

Rollback detection works for deployments that have all of the following:

  • A service (@deployment.service)
  • An environment (@deployment.env)
  • A version identifier (@deployment.version)

Version for CI-based providers

For CI-based providers, Datadog uses the --revision parameter that you pass to the datadog ci command. This parameter should contain the version identifier for your deployment (such as a commit SHA, image tag, or version number).

Version for Argo CD

For Argo CD deployments, Datadog uses the version from correlated images to detect rollbacks. Datadog identifies the “main” image from your deployment and extracts the version tag from it.

To enable rollback detection for Argo CD deployments, you need to correlate your images with commits using the datadog-ci deployment correlate-image command as explained in the Argo CD monitoring documentation.

When images are properly correlated, Datadog populates a version tag from the image metadata, which is then used for rollback detection.

Further Reading

PREVIEWING: rtrieu/docs-11024-cost-monitors