Weekly
Get a weekly SLO and error budget report
Every week you see each SLO's status and how much error budget is left, with the ones below target flagged.
- Runs
- Weekly
- Apps
- Datadog
- AI
- Not needed
- Access
- slos_read
Send this to your assistant
Create a ClickRuntime automation: every Monday at 9am, email me each Datadog SLO with last week's status and remaining error budget, and put the ones below target at the top.
First time? Adding ClickRuntime to your assistant takes about two minutes.
Why use it
Why teams use this automation
Service level objectives only work if someone checks the error budget. A team commits to 99.9% availability, burns half the budget in a bad week, and keeps shipping risky changes because nobody looked. By the time the SLO is breached, the conversation is about customer impact instead of prevention.
Every week, this lists your SLOs in Datadog, fetches each one's history for the last seven days, flags those below target, and emails the status of each along with its remaining error budget. You get a clear view of how reliable you were this week and how much room is left.
Engineering managers and SRE teams use it as the basis for release and prioritization decisions. Each SLO's seven-day history is fetched from Datadog and set against its target, so the email shows where you stand and how much room is left, in the SLO's own terms.
What you get out of it
Decide when to slow down releases
With little error budget left, the team can pause risky changes and focus on reliability. Without the report, nobody has the data to make that call. With little error budget left the team can pause risky changes and focus on reliability, and the data makes that call easy.
See which service is most at risk
SLOs below target are flagged first. Attention goes to the service closest to breach instead of the one that was complained about most recently. SLOs below target are flagged first, so attention goes to the service closest to breach and not the one complained about most recently.
Give product owners a shared reliability view
A plain weekly email lets non-engineers see reliability numbers. Conversations about trade-offs between features and stability become much easier. A plain weekly email lets product owners see reliability numbers, which makes trade-offs between features and stability easier to discuss.
Prepare for customer and executive reviews
Weekly SLO figures are ready when someone asks how reliable the service has been. You do not have to assemble them under pressure. Weekly SLO figures are ready when someone asks how reliable the service has been, and you do not assemble them under pressure.
Spot slow erosion of reliability
A target met each week with a shrinking margin is an early warning. Trends in the report show decline before a breach occurs. A target met each week with a shrinking margin is an early warning, and trends in the report show decline before a breach.
How it works
What happens, step by step
Every week ClickRuntime lists your Datadog SLOs.
It reads how each one did over the last seven days and how much error budget is left.
SLOs below target are flagged at the top.
The report arrives in your inbox.
Before it runs live
- Connect Datadog
What you get
Build your own
Need it to work differently?
Your own rules
Conditions, thresholds, filters and exceptions, written the way you'd explain them to a colleague.
Any number of apps
One automation can read from one app and update several others. Over 248 apps are ready, and anything with an API works too.
AI where it helps
Summaries, classification, extraction and drafts use ClickRuntime's built-in AI, with no extra key.
On a schedule or on each event
Runs as often as every 5 minutes, or the moment an app sends an event, and keeps track of what it already handled.
Changes you can ask for
- Run it at a different time, more or less often, or only on weekdays
- Add an AI step, for example to summarize, sort or draft a reply
- Add another app, for example also send it to Slack
- Combine it with other Datadog steps into one automation
Under the hood
The code that runs this automation
import time
from clickruntime import on_trigger, credentials, http, notify
DD = "https://api.datadoghq.com"
def dd(path, **params):
resp = http.get(f"{DD}{path}", params=params, headers={"DD-API-KEY": credentials.secret("DD_API_KEY"),
"DD-APPLICATION-KEY": credentials.secret("DD_APP_KEY")})
resp.raise_for_status()
return resp.json()
@on_trigger
def run(event):
now = int(time.time())
rows = []
for slo in dd("/api/v1/slo", limit=100)["data"]:
h = dd(f"/api/v1/slo/{slo['id']}/history", from_ts=now - 7 * 86400, to_ts=now)["data"]["overall"]
target = slo["thresholds"][0]["target"]
budget = (h.get("error_budget_remaining") or {}).get("7d", h.get("error_budget_remaining"))
rows.append((h["sli_value"] >= target, f"{slo['name']}: {h['sli_value']:.3f}% (target {target}%), error budget left {budget}"))
lines = [("BELOW TARGET " if not ok else "") + text for ok, text in sorted(rows, key=lambda r: r[0])]
notify.email_me("Datadog SLOs last week", "\n".join(lines))
return {"slos": len(lines)}FAQ
Common questions
What does remaining error budget mean?
Which time window does the history cover?
Does it list SLOs from every team?
What permissions does it need?
Does it need AI?
How many runs does it use?
Can I change how it works?
Related
You might also like
Get a morning list of firing Datadog monitors
Every day you see which monitors are in Alert or Warn, without opening Datadog.
See how it worksGet a weekly reminder of muted monitors
Each Monday you see monitors that are muted or under a downtime, so nothing stays silenced by accident.
See how it worksGet alerted when Datadog usage jumps
If log or host usage climbs well above normal, you hear about it the same day.
See how it worksKeep exploring
Set up “Get a weekly SLO and error budget report” from your assistant
Copy the prompt above, or connect your assistant first. Free plan, no credit card.