Health check lab
Test health checks signals and thresholds
Metrics for restart_count == 0 during dep outage and ready_pods ≥ 1 when deps healthy must distinguish bad input from component failure for cluster operator during vector DB maintenance window.
1Learn the idea
Read
Golden signals for this system
Instrument Kubernetes liveness vs readiness for retrieval-and-generation API so cluster operator during vector DB maintenance window can answer: demand, errors, latency/age, saturation. Emit fields needed by restart_count == 0 during dep outage and ready_pods ≥ 1 when deps healthy 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 PROBE-RESTART-STORM-8, 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("probe_result", probe="readyz", ok=False, dep="vector")
Read
Tests for telemetry
Add a unit/integration check that metrics increment on the happy path and on the readyz embedded in liveness → restart storm during dependency blip 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 PROBE-RESTART-STORM-8. 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 GET /livez and GET /readyz. Practice the query you will type at 2am once, while calm.
Read
Field notes for `health-check-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 Kubernetes liveness vs readiness for retrieval-and-generation API, the human stakeholder is cluster operator during vector DB maintenance window, and the incident id you design against is PROBE-RESTART-STORM-8. Re-state the oracle in your notes — vector pause → readyz 503, livez 200, no restart loop; process deadlock → livez fails → restart — and keep the invariant visible: /livez only checks process; /readyz checks vector+model deps; wrong probe kills healthy pods. Track restart_count == 0 during dep outage and ready_pods ≥ 1 when deps healthy as the scoreboard. Surface under change control: GET /livez and GET /readyz. If you only have forty minutes, finish the fixture for readyz embedded in liveness → restart storm during dependency blip before polishing UI. Promotion language stays ternary: promote, hold, or roll back based on evidence, not hope.
Go deeper
Before you start
Why this matters
Name the dashboard row or log line cluster operator during vector DB maintenance window opens first during PROBE-RESTART-STORM-8. It must include a correlation id and a bounded label from restart_count == 0 during dep outage and ready_pods ≥ 1 when deps healthy. If telemetry is missing, write whether you promote, hold, or roll back — and why hold is the default.
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.