Datadog Deployment Gates: Pause Bad Releases Before They Spread

Datadog Deployment Gates: Pause Bad Releases Before They Spread

Enterprise Developer Platforms

A deployment can finish green and still ship a new error type to every customer. Datadog’s answer, Deployment Gates, is now generally available: an automated checkpoint that reads production health between rollout stages and pauses the workflow while the new version is still on a small slice of infrastructure. For platform teams, the shift is from asking whether the deploy succeeded to asking whether production is still healthy.

What Happened

Datadog’s announcement, by Eric Metaj and Mike Leach, describes a gate as “an automated checkpoint after a deployment or between deployment stages, evaluating production health before the workflow proceeds.” A typical pattern deploys to a subset of infrastructure, evaluates health, then expands. If a required check fails, the workflow pauses and the new version stays limited to that stage.

Gates can be added “through GitHub Actions, Argo Rollouts, the datadog-ci command-line tool, or the Datadog API,” and rules can be shared across teams or tailored per service. The Deployment Gates documentation covers setup. The announcement lists no pricing or version numbers.

Why It Matters

A gate combines two kinds of checks. Monitor rules evaluate selected Datadog monitors over a defined period, so a team can reuse monitors it already has for error rates, latency or infrastructure utilization. A monitor that catches an error spike or slowdown during the rollout fails the gate.

The second check is Watchdog Faulty Deployment Detection, which works for services instrumented with APM. It compares the deployed version with previous versions of the same service, looking for new error types and significant error-rate increases at individual endpoints. Datadog’s example is a checkout service that throws a new error type during a canary, and a screenshot in the post shows Watchdog attributing a 9.49% error-rate increase on a service called fax-service to a new deployment. Datadog says the comparison runs on its AI engine. That covers the failure a static threshold misses: a brand-new error that no existing monitor was written for.

Datadog also lets teams test gates without interrupting deployments. Active gates “let the workflow continue when all required checks pass and pause when one fails.” That staging matters, because a gate that blocks good releases on noisy monitors will be switched off by the teams it is meant to protect.

What This Means for Builders

Gates fit teams already running progressive delivery. Teams can add gates from Argo Rollouts or GitHub Actions, the two places most progressive delivery already runs. The weak point is the quality of the monitors behind the gate. Stack Archive’s coverage of Datadog CI/CD pipeline optimization covers the build side of the same pipeline. On both sides, automation is only as useful as the signals it reads. Services without APM instrumentation get only monitor rules, not version-to-version comparison.

The So What

Platform teams running canary or staged rollouts on Datadog should add a Deployment Gate to one high-traffic service first, combining its existing error-rate and latency monitors with Faulty Deployment Detection. Run it in test mode until the pause decisions match what an on-call engineer would have done, then make it active and roll the shared rule out to other services.

Source: Datadog

Content created with AI assistance and reviewed for accuracy.

💬

Join the conversation

Stack Insiders is our free community for readers who want to go deeper — share resources, ask questions, and connect with others across every vertical we cover.

Join Stack Insiders →

Newsletter coming soon.

Curated digests across AI, biohacking, photography, travel, and more. Be the first to know when we launch.