Error budget tracking

From wyre-technology/msp-claude-plugins · View interactive version

Error budget tracking is an AI agent skill from the GitHub repository wyre-technology/msp-claude-plugins. Error-budget and burn-rate assessment from whatever observability tools (Sentry, Datadog, Grafana, BetterStack) are connected: SLI, SLO, error budget, and burn rate applied practically, how to compute burn rate from available SLI data and the thresholds that make it actionable, what separates a budg

How to use this skill

Skill file

Error Budget Tracking

Overview

An error budget turns "is this service reliable enough" from a vague feeling

into a number: given a target (e.g., 99.9% uptime, or a max acceptable error

rate), the budget is the amount of unreliability you're allowed before you've

spent it. Burn rate is how fast you're spending it. This skill computes both

from whatever observability data is actually available, and — just as

importantly — knows when there isn't enough to compute a formal burn rate at

all, and falls back to something honest instead of a fabricated number.

Anti-triggers

target on a client agreement is a different measurement from an SLO burn

rate; use sla-escalation-playbooks in ops-pack.

already calculated by the platform; use pagerduty-analytics.

monitor groups are betterstack-monitors.

Discovering available tools first

This pack is cross-vendor. Before pulling any observability data:

  1. Call conduit__search_tools to discover which observability connectors

are live — Sentry (error rate/issue volume), Datadog or Grafana

(uptime/latency SLIs, dashboards, monitors), BetterStack (uptime checks,

status pages). Tool names follow <vendor-slug>__<tool_name>, e.g.

sentry__list_issues, datadog__list_monitors, betterstack__list_monitors.

  1. Also check whether an SLO is formally defined anywhere reachable (a

Datadog/Grafana SLO object, a documented target) versus needing to be

inferred or asked for.

  1. Only call the concrete tools discovery returns. If no observability

connector at all is available, say so — there is no data to compute

reliability trend from, formal or informal.

Key Concepts

SLO, SLI, and error budget, applied practically

uptime percentage, latency percentile. This is what the observability tool

actually reports.

e.g. "99.9% uptime over 30 days" or "error rate under 0.1% over 7 days."

99.9% over 30 days, the budget is roughly 43 minutes of downtime (or

equivalent error volume) for the period. Budget remaining = allowed

failure minus failure incurred so far in the period.

pace that would exactly exhaust it by period end. A burn rate of 1.0 means

"on pace to exactly exhaust the budget at period end." A burn rate

meaningfully above 1.0 (commonly used thresholds: 2x sustained, or a sharp

spike like 10x+ over a short window) signals the budget will be exhausted

before the period ends if the current pace continues.

Computing burn rate from available data

The formal calculation needs three things: a defined SLO target, a

measurement period, and current SLI data over that period. When all three

are available:

  1. Compute allowed-failure budget for the period from the SLO target.
  2. Compute actual failure incurred so far in the period from the SLI data

(error count/rate from Sentry, downtime from Datadog/Grafana/BetterStack

uptime checks).

  1. Burn rate ≈ (budget consumed so far / budget that should be consumed at

this point in the period if pace were even). A value materially above 1.0

means the budget is being spent faster than a linear pace would allow.

  1. State the formula and the source data explicitly in the output — a burn

rate number without its inputs isn't verifiable or useful to challenge.

What counts as budget-threatening vs. noise

Not every error spike or downtime blip threatens the budget. Distinguish:

fraction of the total budget for the period (e.g., a 2-minute blip against

a 43-minute monthly budget). Worth noting, not escalating.

above 1.0 sustained over hours, not minutes), or a single event large

enough to consume a significant fraction of the remaining period budget in

one incident. Both warrant escalation — the first because it will exhaust

the budget on the current trajectory, the second because it already has.

A single data point is never enough to call something a trend — look at the

trajectory over at least several data points or a meaningful fraction of the

measurement window before characterizing something as budget-threatening

rather than a transient blip.

Degrading gracefully when no formal SLO is defined

Most connected services will not have a formally defined SLO object sitting

in Datadog or Grafana, and that's normal, not a failure state. When no SLO

target is discoverable and the user hasn't stated one:

  1. Do not fabricate a target. Don't assume "99.9%" or any other number

as if it were agreed policy.

  1. Fall back to raw trend reporting. Report the raw SLI instead of a

derived burn rate: current error rate vs. the trailing baseline (e.g.,

prior 7-day average), or current uptime percentage vs. trailing baseline,

with the trend direction (improving / flat / degrading) stated plainly.

  1. **Say explicitly that this is a trend report, not a burn-rate

calculation**, and what would be needed to compute a real burn rate (a

stated SLO target and period) — so the gap is visible rather than

papered over with an invented number.

  1. If the user supplies a target ad hoc ("we want 99.9% uptime"), treat that

as the SLO for this run and compute burn rate normally, but note that

it's an ad hoc target, not one formally configured in the connected tool.

Common Workflows

Compute error-budget status for a service with a formal SLO

  1. Discover tools via conduit__search_tools.
  2. Retrieve the SLO target and current-period SLI data from the connected

tool that defines it (Datadog/Grafana SLO object, or BetterStack uptime

history against a stated target).

  1. Compute budget consumed, budget remaining, and burn rate per the formula

above.

  1. Classify: healthy (burn rate ≈ 1.0 or below), at-risk (sustained burn rate

above 1.0), or exhausted (budget already spent for the period).

  1. Report with the formula, inputs, and classification stated explicitly.

Report reliability trend for a service with no formal SLO

  1. Discover tools via conduit__search_tools.
  2. Pull the raw SLI available (Sentry error rate, Datadog/Grafana metric,

BetterStack uptime) for the current period and a trailing baseline period

of the same length.

  1. Compare current vs. baseline and state the trend direction.
  2. Report explicitly as a trend report, not a burn-rate calculation, and

note what a formal SLO would need to be defined to upgrade this to one.

Rank multiple services by budget health (scorecard)

  1. Discover tools and enumerate connected services/monitors.
  2. For each service, run the appropriate workflow above (formal SLO burn

rate where available, trend report otherwise) — do not force every

service into the same calculation type if their available data differs.

  1. Rank worst-first: exhausted > at-risk (formal) > degrading trend (no SLO)

> healthy/flat > improving. State which classification type applied to

each service so the ranking logic is auditable.

Error Handling

No observability connector discovered

Say so explicitly: "No observability connector is available through the

gateway, so reliability status can't be computed for any service." Do not

fabricate uptime or error-rate figures.

Observability connected, but no SLO defined and no target given

Fall back to raw trend reporting per the graceful-degradation rules above —

never invent a target to force a burn-rate number.

Insufficient historical data for a trend or baseline

State this explicitly (e.g., "only 2 days of history available, insufficient

for a reliable 7-day baseline comparison") rather than reporting a trend

built on too little data as if it were solid.

Related Skills

that materially burns the budget is worth cross-referencing in the

postmortem's impact section

budget exhaustion is a reasonable "watch this" item to carry into the next

handoff even before it pages

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.