SLOs, Error Budgets, and Incident Response for Small Teams
Derar SattoufUpdated DevOps & cloud

Every team wants a reliable product, yet few can say precisely what "reliable enough" means. Without a definition, reliability becomes a feeling: engineers over-invest in uptime nobody notices, or under-invest until a major outage, and arguments about priorities (features versus stability) turn into politics.
Service Level Objectives (SLOs) replace the feeling with a number, and error budgets turn that number into a decision-making tool. Pair them with calm, practiced incident response and honest postmortems, and reliability becomes an engineering discipline instead of heroics. A small team can put this in place in a few weeks, using the real queries and templates below.
An SLI (indicator) is a measurement of user-visible behavior, for example the proportion of requests served successfully under 300 ms. An SLO (objective) is the target for an SLI over a window, for example 99.9 percent over 30 days. The error budget is 1 - SLO, the amount of unreliability you can spend: a 99.9 percent SLO allows about 43 minutes of full downtime per 30 days.
Alert on burn rate (how fast you are spending the budget), not on raw error counts or CPU. It cuts noise and catches real problems early. Incident response needs defined roles (commander, communications, operations), severity levels, runbooks, and a status channel. Postmortems are blameless and end with tracked action items, because the goal is learning, not punishment.
Start with the user journey
Reliability is what users experience. Don't begin with servers; begin with the critical journeys:
- Can a customer log in?
- Can they complete checkout?
- Does search return results quickly?
- Do webhooks arrive within a minute?
- Does the AI assistant respond without errors?
List 3-5 critical user journeys. Each becomes a candidate SLO. Resist the temptation to define 40 SLOs; a handful of meaningful ones beats a wall of dashboards.
Choose good SLIs
An SLI is a ratio: good events divided by valid events.
SLI = (good events / valid events) x 100%| Type | Good event | Example SLI |
|---|---|---|
| Availability | Request returns non-5xx | 99.95% of requests succeed |
| Latency | Request completes under a threshold | 95% of requests < 300 ms; 99% < 1 s |
| Freshness | Data updated within N minutes | 99% of dashboards reflect data < 5 min old |
| Correctness | Output validated as correct | 99.9% of payments reconciled correctly |
| Throughput / Durability | Jobs completed; data retained | 99.99% of queued jobs processed within 1 min |
Tips:
- Measure as close to the user as practical: load balancer or edge metrics are usually better than application-internal metrics (an app that crashes can't report its own failures). Synthetic probes add a "does it work end to end" signal; real-user monitoring adds true experience.
- Exclude invalid events: client errors (4xx caused by bad input) are not your unreliability. But beware of treating all 4xx as "valid": a spike in
401s after a bad deploy is your fault. - Use percentile-based latency thresholds expressed as ratios ("proportion of requests under 300 ms"), not averages, which hide tail pain.
- Prefer a few well-chosen thresholds that track perceived experience (for example, a page that loads in under 2 seconds feels fast).
Example: availability and latency SLIs in Prometheus
# Recording rules (5m windows)
groups:
- name: sli
rules:
# Good = non-5xx; valid = all requests (excluding health checks)
- record: sli:http_requests:good_ratio_rate5m
expr: |
sum(rate(http_requests_total{job="api", route!="/healthz", code!~"5.."}[5m]))
/
sum(rate(http_requests_total{job="api", route!="/healthz"}[5m]))
# Latency SLI: share of requests completing within 300ms (histogram bucket)
- record: sli:http_latency:under_300ms_ratio_rate5m
expr: |
sum(rate(http_request_duration_seconds_bucket{job="api", le="0.3"}[5m]))
/
sum(rate(http_request_duration_seconds_count{job="api"}[5m]))Make sure your histogram has a bucket boundary exactly at the threshold (0.3 here); otherwise the ratio cannot be computed accurately.
Set realistic SLOs
An SLO is a product decision, not an engineering aspiration. Rules of thumb:
- 100 percent is the wrong target. It is unattainable, infinitely expensive, and your users' own networks and devices fail more often than that anyway.
- Start from what users tolerate and what you currently achieve. Measure for a few weeks, set the SLO slightly below current performance, and tighten it over time.
- Each additional nine costs roughly an order of magnitude more effort.
| SLO | Allowed downtime / 30 days | Allowed per year |
|---|---|---|
| 99% | ~7.2 hours | ~3.65 days |
| 99.5% | ~3.6 hours | ~1.8 days |
| 99.9% | ~43 minutes | ~8.8 hours |
| 99.95% | ~21.6 minutes | ~4.4 hours |
| 99.99% | ~4.3 minutes | ~53 minutes |
Remember dependencies: if you depend serially on three services each at 99.9 percent, your ceiling is about 99.7 percent. Your SLO cannot exceed the reliability of what you depend on unless you add redundancy or graceful degradation.
Use a rolling 28- or 30-day window for most SLOs: long enough to be stable and short enough to react to change. Write the SLO down with its owner, rationale, measurement method, and what happens when the budget runs out.
# slo/checkout.yaml : keep SLOs as reviewable code
service: checkout-api
slos:
- name: availability
objective: 99.9
window: 30d
sli: "non-5xx responses / all responses (excl. health checks), measured at the load balancer"
- name: latency
objective: 99.0
window: 30d
sli: "requests completing in < 800ms, measured at the load balancer"
owner: payments-team
escalation: "#payments-oncall"Tools such as Sloth, Pyrra, and OpenSLO generate recording rules and alerts from definitions like this; cloud providers and observability vendors offer built-in SLO features as well.
Error budgets in practice
The error budget is the allowed unreliability: for a 99.9 percent SLO over 30 days, 0.1 percent of requests (or about 43 minutes of downtime) may fail.
The magic is in the policy. Agree in advance, between product and engineering:
- Budget healthy: ship features at full speed; take reasonable risks; run experiments and chaos tests.
- Budget burning fast or nearly exhausted: slow risky launches, prioritize reliability work, and fix the top causes of budget consumption.
- Budget exhausted: freeze feature releases that are not urgent until the SLI recovers (with an exception process for critical fixes).
This transforms "stability versus velocity" from an argument into a shared, data-driven rule. It also gives permission to spend budget deliberately: a risky migration is acceptable when you have budget for it.
Track budget remaining as a simple number everyone sees:
Budget remaining = 1 - (bad events so far / allowed bad events in window)# Fraction of the 30-day error budget remaining (99.9% SLO)
1 - (
(1 - avg_over_time(sli:http_requests:good_ratio_rate5m[30d]))
/ (1 - 0.999)
)An error budget policy you can copy
# Error Budget Policy: checkout-api (reviewed quarterly)
Approved by: Product lead, Engineering lead, On-call lead
## Thresholds (30-day rolling window)
- More than 50% of budget remaining: normal development; experiments and risky launches allowed.
- 25% to 50% remaining: launches require a rollback plan and a canary; reliability work gets a planned slot each sprint.
- Under 25% remaining: no risky launches; the top two budget consumers become the top priorities.
- Budget exhausted: feature releases frozen except security fixes and reliability fixes, until the SLI recovers above the SLO.
## Exceptions
The engineering lead may approve an exception for a launch with a business-critical date, recorded in the release notes.
## Escalation
If the team disagrees on whether the policy applies, the Engineering lead and Product lead decide within one business day.Generate rules and alerts from a definition
Hand-writing multi-window burn-rate rules is error-prone. Use a generator such as Sloth, Pyrra or an OpenSLO-compatible tool. A Sloth spec looks like this (verify the current schema in its docs):
version: "prometheus/v1"
service: "checkout-api"
labels:
team: payments
slos:
- name: "requests-availability"
objective: 99.9
description: "Non-5xx responses at the API"
sli:
events:
error_query: sum(rate(http_requests_total{job="api",code=~"5.."}[{{.window}}]))
total_query: sum(rate(http_requests_total{job="api"}[{{.window}}]))
alerting:
name: CheckoutAvailability
page_alert:
labels: { severity: page }
ticket_alert:
labels: { severity: ticket }The generator emits recording rules for each window and the page and ticket alerts that follow the multi-window table above.
Which SLOs are worth having per service type
| Service type | Good first SLIs |
|---|---|
| Web or API | Availability at the edge, latency under a threshold, correctness of key responses |
| Async jobs and queues | Share of jobs finished within N minutes, age of the oldest message, dead-letter rate |
| Data pipelines | Freshness (data newer than N minutes), completeness, accuracy checks |
| Storage | Durability (no lost writes), read latency, restore success rate in drills |
| Batch and scheduled jobs | Runs that finish by their deadline |
| LLM and AI features | Request success rate, time to first token and total latency, structured-output validity rate, and a sampled quality score from evals |
| Third-party dependencies | Your own measured success rate when calling them, used to set realistic internal SLOs |
For AI features, a quality SLI matters as much as availability because an endpoint can return HTTP 200 with a wrong answer. Pair the techniques here with evals for LLM apps and OpenTelemetry for LLM apps, and see agentic AI in production for failure handling in agent systems.
Alert on burn rate, not symptoms
Classic alerts ("error rate > 1% for 5 minutes", "CPU > 80%") are noisy and disconnected from user impact. Burn rate is how fast you are consuming budget relative to the rate that would exactly exhaust it at the end of the window:
- Burn rate 1 = on track to use exactly the whole budget by the end of the window.
- Burn rate 14.4 = consuming budget so fast that 2 percent of a 30-day budget disappears in 1 hour.
Multi-window, multi-burn-rate alerts (the recommended pattern)
Pair a long window (to ensure significance) with a short window (to ensure it is still happening):
| Severity | Burn rate | Long window | Short window | Budget consumed | Action |
|---|---|---|---|---|---|
| Page | 14.4 | 1 h | 5 min | 2% | Wake someone up |
| Page | 6 | 6 h | 30 min | 5% | Wake someone up |
| Ticket | 3 | 1 d | 2 h | 10% | Fix during working hours |
| Ticket | 1 | 3 d | 6 h | 10% | Investigate soon |
- alert: CheckoutErrorBudgetFastBurn
expr: |
(1 - sli:http_requests:good_ratio_rate1h) > (14.4 * 0.001)
and
(1 - sli:http_requests:good_ratio_rate5m) > (14.4 * 0.001)
for: 2m
labels: { severity: page }
annotations:
summary: "Checkout is burning error budget 14x too fast"
runbook: "https://runbooks.example.com/checkout-availability"(0.001 is the error budget fraction for a 99.9 percent SLO. This assumes you have defined 1h rate recordings in the same way as the 5m one.)
Benefits: a short, severe outage pages immediately; a slow leak creates a ticket before the budget is gone; and tiny blips that don't threaten the SLO don't wake anyone. Keep cause-based alerts (disk almost full, certificate expiring) for tickets and dashboards, not pages, unless they imminently threaten users.
Every page must be actionable, urgent, and linked to a runbook. If an alert regularly fires without anyone needing to act, delete or demote it. Alert fatigue is a reliability risk in itself.
Incident response: structure beats heroics
When things break at 3 a.m., people revert to habits. Give them better ones.
Severity levels
| Level | Definition | Response |
|---|---|---|
| SEV1 | Major outage or data loss/security breach affecting many users | Page immediately, all hands, exec comms |
| SEV2 | Significant degradation of a key feature | Page on-call, incident channel |
| SEV3 | Minor impact or workaround exists | Ticket, handle in business hours |
Agree on criteria in advance and let anyone declare an incident. Declare early. Over-declaring is cheap; under-declaring costs hours.
Roles
- Incident Commander (IC): coordinates, makes decisions, delegates. The IC does not debug. Their job is to keep the big picture and keep people from duplicating or colliding.
- Operations lead(s): investigate and apply fixes.
- Communications lead: updates the status page and stakeholders on a fixed cadence (for example every 30 minutes), even if the update is "still investigating."
- Scribe: records a timeline (who did what, when) in the incident channel or document. This becomes the backbone of the postmortem.
Small teams can have one person fill multiple roles, but separate the IC from the person making changes whenever possible.
The first 15 minutes
- Acknowledge the page and open a dedicated incident channel (
#inc-2026-11-09-checkout). - Assess impact: who is affected, how badly, since when? (Check SLO dashboards and recent changes.)
- Mitigate before diagnosing. The priority is restoring service: roll back the last deploy, disable the feature flag, fail over, scale up, shed load. Root cause comes later.
- Communicate: post the first status update within 10-15 minutes.
- Ask "what changed?" Deploys, config, flags, dependencies, traffic, and certificates explain most incidents.
# Useful immediate checks
kubectl rollout history deploy/checkout -n production
kubectl rollout undo deploy/checkout -n production # fast mitigation
kubectl get events -n production --sort-by=.lastTimestamp | tail -20Make mitigation easy beforehand
- Feature flags and kill switches for risky features.
- One-command rollbacks and automated canary analysis that rolls back on SLO regression.
- Runbooks for known failure modes: symptoms, dashboards, likely causes, safe mitigations, escalation contacts.
- Game days: rehearse failure in staging (or carefully in production) so the first time is not the real time.
Runbook template
# Runbook: Checkout latency high
**Impact:** Customers see slow or failing checkout.
**Dashboards:** https://grafana.example.com/d/checkout
**Likely causes:** (1) payment provider slowness, (2) DB connection pool exhaustion, (3) bad deploy.
## Diagnose
1. Check the payment-provider status page and `payment_provider_latency` panel.
2. Check `db_pool_wait_seconds`; if > 0.5s sustained, see "Pool exhaustion".
3. Compare error rate to last deploy time; if it correlates, roll back.
## Mitigate
- Rollback: `kubectl rollout undo deploy/checkout -n production`
- Enable "degraded checkout" flag (skips recommendations): `flags set checkout.degraded true`
- Pool exhaustion: scale replicas to 6 and restart with `kubectl rollout restart`
## Escalate
Payments on-call: #payments-oncall. If SEV1, page the engineering manager on duty.Blameless postmortems
After a significant incident, hold a postmortem within a few days, while memories are fresh.
Blameless does not mean accountability-free; it means assuming everyone acted reasonably with the information they had, and asking what about the system made the failure possible. If an engineer pushed a bad change, the interesting question is why the pipeline let it reach production.
Template
# Postmortem: Checkout outage, 2026-11-09
**Severity:** SEV2 **Duration:** 47 minutes **Impact:** ~12% of checkouts failed; est. 380 orders delayed
**Authors / reviewers:** ...
## Summary
Two or three sentences a stranger could understand.
## Timeline (UTC)
- 10:02 Deploy v412 rolled out
- 10:09 Burn-rate alert paged on-call
- 10:14 Incident declared, IC assigned
- 10:21 Rollback started; 10:26 completed
- 10:49 Error rate back to baseline
## Root causes and contributing factors
- A new query lacked an index; under peak load it exhausted the connection pool.
- Load tests did not include the checkout path at production volume.
- The canary stage ran for only 2 minutes, shorter than the traffic ramp.
## What went well
- Burn-rate alert fired within 7 minutes. Rollback was a single command.
## What went poorly / where we got lucky
- Runbook was outdated; status page updated late.
## Action items (owner, priority, due date)
- [P1] Add index and a CI check for unindexed queries on hot tables: @dana, Nov 16
- [P1] Extend canary to 15 minutes with automatic SLO-based rollback: @lee, Nov 23
- [P2] Add checkout to the load test suite: @sam, Dec 1Practices that make postmortems valuable:
- Use "five whys" or contributing-factor analysis rather than hunting for a single "root cause." Complex failures have several.
- Track action items in your normal ticketing system with owners and dates, and review completion. A postmortem whose actions are never done is theater.
- Share them widely; make them searchable. Patterns across incidents (repeated deploy-related outages, a flaky dependency) are where the big wins hide.
- Feed learnings back: new alerts, new runbooks, updated SLOs, additional tests.
Reliability on a small team: a four-week plan
Week 1: Pick 2-3 critical user journeys. Define SLIs from existing load balancer or APM data. Build a simple dashboard showing the SLI and its trend.
Week 2: Set initial SLOs based on observed history. Compute error budget burn. Document the error budget policy and get product and engineering to agree.
Week 3: Implement multi-window burn-rate alerts for the top SLO. Delete or demote noisy alerts. Write runbooks for the top 3 failure modes.
Week 4: Define severity levels and roles; set up the incident channel template and on-call rotation (with escalation and compensation). Run a 60-minute game day. Schedule a monthly SLO review.
Then iterate: every incident updates SLOs, alerts, or runbooks.
Communication templates
Status updates are part of the mitigation. Use a fixed shape so the communications lead never has to think:
[Investigating] 10:14 UTC
Some customers are seeing errors at checkout. We are investigating. Next update by 10:45 UTC.
[Identified] 10:30 UTC
A recent change is causing failures. We are rolling it back. Next update by 11:00 UTC.
[Monitoring] 10:55 UTC
The rollback is complete and error rates are back to normal. We are monitoring.
[Resolved] 11:20 UTC
The issue is resolved. A full report will follow within 5 business days.Rules: state customer impact in plain language, avoid guessing at causes, commit to the next update time and keep it, and never go silent. Internally, keep one incident channel and pin the current summary, the IC name and the open questions.
On-call that people can sustain
- Rotation: at least 5 or 6 people for a 24x7 rotation where possible; smaller teams may need follow-the-sun or business-hours-only paging with a lower SLO.
- Load: track pages per shift. More than a couple of actionable pages per night means the system or the alerts need work, not the people.
- Handoffs: a short written handoff each shift (open incidents, risky changes, known flaky alerts).
- Escalation: every alert has a primary, a secondary and a manager escalation path. A page nobody answers should reach someone else within minutes.
- Compensation and recovery time for after-hours work, and no deploys late on Fridays unless you have strong automation and rollback.
- Tooling: whichever paging and incident tool you use (PagerDuty, Opsgenie replacement, incident.io, Rootly, Grafana OnCall or others, check current product status since vendors change), integrate it with chat, runbooks and your status page.
Release practices that protect the budget
- Progressive delivery: canary, then percentage rollouts, with automatic rollback on SLO regression.
- Feature flags with clear owners and an expiry date, so old flags do not become permanent risk.
- Database migrations that are backward compatible, run separately from code deploys; see zero-downtime Postgres migrations.
- Retries with backoff and jitter, timeouts, and idempotency, to stop minor faults amplifying. See API rate limiting, idempotency and pagination and event-driven architecture with outbox and idempotency.
- Load shedding and graceful degradation so partial failure does not become total failure.
- Dependency maps to know your blast radius; eBPF-based tools can help discover real dependencies, see eBPF for developers.
- A small platform investment to make all this the default path: see platform engineering for small teams.
Measuring the reliability program
| Metric | Why |
|---|---|
| SLO attainment per service | The headline number |
| Error budget burned by cause (deploys, dependencies, capacity, bugs) | Shows where to invest |
| Time to detect (TTD) and time to mitigate (TTM) | Better than time to resolve for user impact |
| Pages per on-call shift, and the share that were actionable | On-call health |
| Postmortem action item completion rate | Whether learning turns into change |
| Repeat incident rate | Whether fixes actually work |
| Deployment frequency and change failure rate (DORA) | Delivery health alongside reliability |
Troubleshooting your SLO setup
| Problem | Likely cause and fix |
|---|---|
| The SLI is always 100% | You are measuring internally or excluding too much. Measure at the edge and review the "valid events" filter. |
| The SLI is noisy at low traffic | A few requests dominate. Use longer windows, synthetic probes for baseline traffic, or event-weighted SLOs. |
| Burn-rate alert never fires in a drill | Wrong recording rule names, missing short-window series, or label mismatch. Test with a deliberate fault injection. |
| Budget is always exhausted | The SLO is too tight for current architecture. Re-baseline, then improve and tighten later. |
| Latency SLI inaccurate | Histogram bucket does not match the threshold, or averages are used instead of ratios. |
| Teams ignore the policy | No consequence or no executive sponsor. Review the policy with product leadership and tie it to release gates. |
Where this usually goes wrong
- Too many SLOs, so no one watches them. Start small.
- Measuring internally only, missing outages where the service cannot report on itself.
- SLOs with no consequences. Without an error budget policy they are decoration.
- Aiming for perfection. Excess reliability wastes velocity and money.
- Paging on causes (CPU, memory) rather than user-impacting symptoms.
- Hero culture: one person always saves the day. Rotate on-call, document, and share knowledge.
- Skipping postmortems for "small" incidents, which are often the cheapest source of learning.
- Blame, which drives people to hide mistakes and slows recovery.
Questions that come up
How many SLOs should a team have? Two to five per service, tied to critical user journeys.
Should internal services have SLOs? Yes, defined with the teams that depend on them, ideally derived from the user-facing SLOs they support.
What window should I use? A 28- or 30-day rolling window is the common default; use calendar windows only if reporting requires it.
What if my traffic is tiny? Use synthetic probes, longer windows, and count in minutes of good versus bad rather than requests, and accept that SLOs are statistical.
SLA versus SLO? An SLA is a contract with consequences (refunds); an SLO is an internal target that should be stricter than the SLA so you have time to react.
Do I need an error budget for security incidents? Treat security incidents with their own response process; they usually bypass budget logic. See container security hardening.