Friday, 4 pm: a release goes out while the service has already used 90% of its error budget for the month. Nobody checked, because that number lives on a dashboard the pipeline never reads. An error budget release gate fixes this: the CI/CD pipeline asks Dynatrace before it deploys and stops if the budget is too low.
Goal of this tutorial: build a release gate that computes a service’s remaining error budget, compares it with a threshold and returns a verdict your pipeline can act on. The Dynatrace SaaS version uses a Workflow with a DQL task and a JavaScript task. The Dynatrace Managed version, which has no Workflows app, reads the SLO through API v2.
This tutorial assumes an SLO already exists. If it does not, start with SLO burn rate alerts in Dynatrace , which walks through the budget maths.
How an error budget release gate works
The error budget is what the SLO allows you to miss. With 99.9% over 30 days, the budget is 0.1% of requests. While budget remains, the team ships.…