Library

Volume 1 · CI/CD, DevOps & Observability

Notebook
Sign in

Cheat Sheet — Part 7: CI/CD, DevOps & Observability

658 words · about 3 min

Key Terms

Term In one line
SLI / SLO / SLA Measure / internal target / external contract with consequences
Error budget 1 − SLO; the allowed unreliability you get to spend on shipping
Burn rate alert Alert on how fast you’re consuming the error budget, multi-window multi-rate
RED Rate, Errors, Duration — for request-driven services
USE Utilization, Saturation, Errors — for resources
OTel collector Vendor-neutral pipeline: receive → process → export
Head vs tail sampling Decide at trace start vs after seeing the whole trace
Metric types Counter (monotonic) · gauge (up/down) · histogram (distribution) · summary (quantiles)
DORA Deployment frequency · lead time · change failure rate · time to restore

Numbers That Matter

Figure Value Where it bites
Testing pyramid 70% unit / 20% integration / 10% E2E Inverted pyramids are why CI takes an hour
Alert false positives Target <5% Above that, people stop reading alerts
Trace sampling 1% high-volume head-based + 100% low-volume, tail-based always keep errors/slow The cost-control answer
Log retention tiers 7d hot / 30d warm / 1yr cold Tiering is where log cost is actually controlled
Severity SEV1 down · SEV2 significant degradation · SEV3 minor · SEV4 cosmetic Know the ladder and the escalation attached
LLM SLO reality Generation is 1–30 s Traditional latency SLOs don’t transfer — SLO on time-to-first-token instead

Decision Rules

  • SLO is internal, SLA is contractual. Always set the SLO tighter than the SLA — the gap is your warning margin before financial consequences.
  • Alert on symptoms, not causes. Page on “checkout error rate above budget,” not “CPU above 80%.” High CPU with happy users is not an incident.
  • Multi-window multi-burn-rate alerting catches both the fast catastrophic burn (page now) and the slow leak (ticket) without paging on every blip.
  • LLM systems break the traditional SLO mould three ways: latency is inherently variable, quality is subjective, and cost scales with usage. SLO on time-to-first-token, on a quality metric from sampled judging, and on cost per task — not on total response time.
  • Control observability cost with sampling and tiering, not by dropping instrumentation. Head-based sampling on high-volume paths, tail-based to always retain errors and slow traces, tiered log retention.
  • Blameless postmortems or you get no truth. The purpose is the systemic fix; the moment it becomes attributional, people stop reporting near-misses and you lose the early signal.
  • Trace context must cross async boundaries. A trace that stops at the queue publish is half a trace — propagate the context in the message headers.

Say This Out Loud

“An SLO is an internal engineering target; an SLA is an external contractual commitment with financial or legal consequences. I always set the SLO tighter than the SLA, because that gap is my warning margin — by the time I’m burning the SLO I still have room before anyone gets a service credit. And the error budget is the useful artifact: it turns ‘should we ship this risky change’ from an argument into arithmetic.”

“I alert on symptoms, not causes. Nobody should be paged for eighty percent CPU — CPU at eighty percent with users perfectly happy is a healthy system running efficiently. I page on the thing the user experiences: error rate above budget, latency past the SLO, burn rate high enough that we’ll exhaust the budget before the window ends. And I hold false positives under five percent, because above that people learn to ignore the pager and you’ve lost the whole mechanism.”

“GenAI systems break traditional SLOs in three ways. Latency is inherently variable — a generation can legitimately take one second or thirty. Quality is subjective, so there’s no binary success. And cost scales with usage rather than being roughly fixed per request. So I set the SLO on time to first token rather than total response time, add a quality SLO measured by sampled LLM-judge scoring against the golden set, and treat cost per task as a first-class SLI with its own alert.”