SLO lab
Test service-level objectives signals and thresholds
Metrics for slo:availability:ratio and burn_rate1h must distinguish bad input from component failure for reliability owner gating releases on error budget.
1Learn the idea
Read
Golden signals for this system
Instrument AI support-answer service with 99.5% availability + TTFT SLO so reliability owner gating releases on error budget can answer: demand, errors, latency/age, saturation. Emit fields needed by slo:availability:ratio and burn_rate1h with bounded labels. Sample successful high-volume traces; keep errors and rollout transitions denser within policy.
Read
Alert path worth paging
Define at least one alert that would fire for SLO-VANITY-200-18, with a for/pending window that survives deploy blips. Missing scrape or missing revision labels must not look like health. Include a trace/log example id format you will actually search.
Read
Implementation artifact
emit_sli(indicator="availability", outcome="bad" if empty_citation else "good")
Read
Tests for telemetry
Add a unit/integration check that metrics increment on the happy path and on the HTTP 200 fallbacks counted as good while citations empty — vanity availability branch. Store machine-readable output in CI artifacts when practical.
Read
Stage depth
Cardinality discipline: tenant and revision are usually enough; raw question text is not a label. Exemplars or trace links beat screenshots alone when debugging SLO-VANITY-200-18. Define who owns alert fatigue review. If you export to a vendor, record retention and access. Synthetic probes should use non-sensitive fixtures and still exercise POST /v1/support/answer. Practice the query you will type at 2am once, while calm.
Read
Field notes for `slo-lab` / `observability`
Document the exact PromQL or log query in the runbook stub for this service. Verify histograms have buckets around your SLO target. Add a canary synthetic check that exercises the oracle path every few minutes in staging. Confirm that PII redaction happens before export. Track build/version as a label on the golden signals. Delete noisy debug logs before they become accidental product dependencies. In this chapter the product is AI support-answer service with 99.5% availability + TTFT SLO, the human stakeholder is reliability owner gating releases on error budget, and the incident id you design against is SLO-VANITY-200-18. Re-state the oracle in your notes — 3% provider timeout for 20m trips fast-burn; monthly budget math matches calc-budget.py — and keep the invariant visible: bad events include malformed upstream + timeout fallbacks; auth 4xx excluded. Track slo:availability:ratio and burn_rate1h as the scoreboard. Surface under change control: POST /v1/support/answer. If you only have forty minutes, finish the fixture for HTTP 200 fallbacks counted as good while citations empty — vanity availability before polishing UI. Promotion language stays ternary: promote, hold, or roll back based on evidence, not hope.
Read
Extra rehearsal for SLO lab (observability)
Set a timer for twelve minutes and attempt only the observability concerns for SLO lab. Speak aloud what reliability owner gating releases on error budget would see on success versus on HTTP 200 fallbacks counted as good while citations empty — vanity availability. Write three bullet artifacts you must keep: a fixture name tied to SLO-VANITY-200-18, a metric query for slo:availability:ratio and burn_rate1h, and the rollback or refuse command for POST /v1/support/answer. Then extend the notes with one sentence on how bad events include malformed upstream + timeout fallbacks; auth 4xx excluded would be violated if you skipped this page. Close by restating the oracle in your own words without looking: 3% provider timeout for 20m trips fast-burn; monthly budget math matches calc-budget.py.
Go deeper
Before you start
Why this matters
Name the dashboard row or log line reliability owner gating releases on error budget opens first during SLO-VANITY-200-18. It must include a correlation id and a bounded label from slo:availability:ratio and burn_rate1h. If telemetry is missing, write whether you promote, hold, or roll back — and why hold is the default.
In the wild
See how this idea shows up as a product and a company — then come back to the lesson. Skills transfer across vendors.
Related lessons
Check your understanding
Page assessment
Answer from memory. Completion is saved from this evidence, not from opening the next page.
All responses are required.