DEV Community

Cover image for SLO burn rate alerts in Dynatrace: a multi-window tutorial (SaaS and Managed)
Span Observer
Span Observer

Posted on Originally published at span.observer

SLO burn rate alerts in Dynatrace: a multi-window tutorial (SaaS and Managed)

An SLO without an alert is just a number on a dashboard. An alert on a fixed error threshold wakes the on-call engineer for a two-minute spike and misses a slow degradation that drains the budget in three days. SLO burn rate alerts fix both problems: they measure how fast you are consuming your error budget, not the raw error rate.

The goal of this tutorial: create an SLO in Dynatrace, set two burn rate alerts (fast and slow), route them to the right team and check that they fire. It covers Dynatrace SaaS (new SLOs on Grail) and Dynatrace Managed (classic SLOs). Each step says which one applies.

No long theory here: if you are new to SRE culture, start with AI and reliability: what SREs need to know.

Quick recap: SLI, SLO, error budget

  • SLI: the measurement, for example the percentage of successful requests.
  • SLO: the target over a window, for example 99.9% over 30 days.
  • Error budget: what the target allows you to miss, here 0.1% of requests.

Burn rate in numbers

Burn rate is the ratio between the observed error rate and the error rate the SLO allows. A burn rate of 1 consumes exactly the budget over the full window. A burn rate of 10 consumes it ten times faster.

Reference example for the whole article: an SLO of 99.9% over 30 days.

  • Window: 30 × 24 × 60 = 43,200 minutes.
  • Error budget: 0.1% of 43,200 = 43.2 minutes of full downtime (or the equivalent in failed requests).
  • Burn rate 14.4: error rate of 1.44%. The budget is gone in 30 d / 14.4 ≈ 50 hours. One hour at this pace consumes 2% of the budget.
  • Burn rate 6: error rate of 0.6%. Six hours at this pace consume 5% of the budget.

Multi-window SLO burn rate alerts: the method

The Google SRE Workbook (« Alerting on SLOs » chapter) recommends combining several burn rates and, for each one, a long window and a short window:

Alert Long window Short window Burn rate Budget consumed Action
Fast 1 h 5 min 14.4 2% Page (on-call)
Slow 6 h 30 min 6 5% Page or ticket

The alert fires only when both windows exceed the threshold. The long window ensures the consumption is significant. The short window ensures the problem is still ongoing: the alert resolves quickly after the fix, which improves measured MTTR and avoids noise.

In practice

Prerequisites

  • SaaS: an environment on the Grail platform, access to the Service-Level Objectives app, permissions to read metrics and write SLOs. The exact permissions are listed in the documentation.
  • Managed: a recent cluster version and a role allowed to change environment settings. For the API: a token with the slo.read and slo.write scopes.
  • A service already monitored by OneAgent or OpenTelemetry, with traffic.

Step 1 — Create the SLO in Dynatrace SaaS

Open the Service-Level Objectives app and create an SLO. Start from a template (for example service availability) or from a custom SLI written in DQL. Example availability SLI:

timeseries {
    total = sum(dt.service.request.count),
    failures = sum(dt.service.request.failure_count)
  },
  by: { dt.entity.service },
  filter: { dt.entity.service == "SERVICE-1234567890ABCDEF" }
| fieldsAdd sli = 100 * (total[] - failures[]) / total[]
Enter fullscreen mode Exit fullscreen mode

Critical lines: failure_count defines what counts as an error, and therefore what consumes the budget. sli must return a percentage between 0 and 100. Then set the target to 99.9 and the window to 30 days. Metric names and the expected query shape may change: check them in the Service-Level Objectives documentation.

Step 2 — Create the SLO in Dynatrace Managed

In Service-level objectives (classic SLOs), add an SLO based on a metric expression:

(100)*(builtin:service.errors.server.successCount:splitBy())
  /(builtin:service.requestCount.server:splitBy())
Enter fullscreen mode Exit fullscreen mode

Add an entity filter (type("SERVICE"),tag("app:checkout") for example), a target of 99.9 and a timeframe of -30d. The screen also offers a fast burn rate threshold: set it to 14.4 to match the fast alert.

Step 3 — Set the burn rate alerts

SaaS: from the SLO, use the app’s alert creation option. It relies on Davis anomaly detection and raises an event when the burn rate exceeds the threshold. Create one alert with a threshold of 14.4 and a second with a threshold of 6. If the interface does not let you choose both windows, create a custom detector in Anomaly Detection with a DQL query that computes the burn rate:

timeseries {
    total = sum(dt.service.request.count),
    failures = sum(dt.service.request.failure_count)
  },
  filter: { dt.entity.service == "SERVICE-1234567890ABCDEF" },
  interval: 5m
| fieldsAdd burn_rate = (failures[] / total[]) / 0.001
Enter fullscreen mode Exit fullscreen mode

Here 0.001 is the error rate allowed by a 99.9% SLO. The detector compares burn_rate with 14.4; the window length is set in its violation settings (number of samples in a sliding window).

Managed: on the SLO, add a burn rate alert (threshold 14.4) and a status alert (for example below 99.95%). Dynatrace creates the matching metric events. For the slow alert at 6, create a custom metric event on the SLO’s burn rate metric. Classic SLOs do not support the dual window natively: approximate it with the violation samples.

Step 4 — Route the alerts

Both alerts open a Davis problem. Now send them to the right place:

  • Managed and SaaS (classic): an alerting profile filters on the service tag or the event title, then an integration (PagerDuty, Opsgenie, email) sends it. See alerting profiles and integrations.
  • SaaS: a Workflow triggered on Davis problems, filtered on the alert name, sends the fast alert to on-call and the slow one to a ticket. See the Workflows module.

Worked example

Checkout service, SLO of 99.9% over 30 days, 1,000,000 requests per day. Budget: 30,000 failed requests per month. A deployment pushes the error rate to 2%, a burn rate of 20. After 5 minutes, the short window exceeds 14.4. The one-hour window only reaches 14.4 after about 43 minutes (14.4 / 20 × 60). By then, about 600 requests have failed, 2% of the budget: on-call is paged. The rollback brings errors back to 0.05%, the 5-minute window drops below the threshold and the alert closes.

How to check that it works

  1. In the SLO app (SaaS) or the SLO list (Managed), the SLO shows a status, a remaining error budget and a burn rate consistent with your calculations.
  2. Temporarily raise the target (99.999%) on a test SLO: the fast alert should open a problem.
  3. On SaaS, look for the event in Grail:
fetch dt.davis.events, from: now() - 24h
| filter contains(event.name, "burn")
| fields timestamp, event.name, event.status
Enter fullscreen mode Exit fullscreen mode

Adapt the filter to the name you gave the alert. On Managed, open the problems feed and check the problem’s notifications tab.

Troubleshooting

  • The SLO stays empty: the SLI returns no data. Run the query alone in a Notebook or the data explorer and check the entity filter.
  • Absurd burn rate (thousands): the SLI is a fraction (0–1) instead of a percentage, or traffic is near zero. Add a minimum request volume.
  • Problem opened but no notification: the alerting profile or the Workflow filter does not match. Check the tag and the profile delay.
  • Too many alerts: the short window is missing; increase the number of violation samples.

Best practices

  • One SLO per critical user journey, not per microservice.
  • Only the fast alert wakes someone up; the slow one can open a ticket.
  • Document the runbook in the alert description.
  • For latency, use histograms: see histogram metrics with OpenPipeline.
  • Review thresholds in blameless post-mortems, with numbers.

Frequently asked questions

Why 14.4 and 6?

These are the values the Google SRE Workbook suggests for a 30-day SLO: 2% of the budget consumed in one hour, 5% in six hours. Adjust them to your window and tolerance.

Do classic SLOs still work on SaaS?

Yes in many environments, but the new SLOs on Grail are the recommended path. Check the migration timeline in the documentation.

Do I need a status alert as well as burn rate?

It is a useful complement for reporting. For on-call, burn rate is more reliable: it warns you before the budget runs out.

Conclusion

Two well-tuned alerts replace a dozen static thresholds. Burn rate ties the alert directly to the error budget, and therefore to the reliability users actually experience. Start with a single critical SLO, validate the numbers in a test, then expand.

span.observer is an independent community blog, not affiliated with Dynatrace LLC. Dynatrace is a trademark of Dynatrace LLC. SaaS features evolve quickly: check their availability in your environment and in the official documentation.


Originally published on span.observer. French version: https://span.observer/fr/alertes-burn-rate-slo-dynatrace/.

Top comments (0)