Boss lesson · Unit 04
Observability at scale
A label that multiplies series, sampling and retention as cost levers, and the telemetry for one service designed inside a budget.
What you practise
- A label that multiplies series, sampling and retention as cost levers, designing the telemetry for one service from scratch
Try a question from this lesson
Pick one
The metrics bill tripled in a week. Traffic is flat. The only change: a user_id label was added to the request counter. Why would one label do that?
Hint
What does a metrics system store one of for each combination of label values?
Correct answer
Every new label value creates new series to store
Why
Metrics are billed by series, not by requests. Each distinct user id creates a fresh series for every existing combination of the other labels, and each one is stored and indexed forever after. Traffic had nothing to do with it.
The idea
Concept cards are short on purpose. In the app they appear between questions, after you have met the idea.
Concept
Three bills, three levers
Each signal has its own cost driver.
Metrics cost by series: label values multiplied together, times the buckets. The lever is fewer, bounded labels.
Traces cost by spans stored. The lever is sampling.
Logs cost by volume and by how long they are kept. The levers are fewer lines, mainly no DEBUG, and shorter retention.
signal grows with lever
metrics label combinations bound labels
traces requests x spans sampling
logs lines x days kept level, days11 more exercises in the app
- 4× type the answer
- 4× multiple choice
- 1× fill the blanks
- 1× match the pairs
- 1× true or false
Bitpath is an iOS app in development. Join the waitlist and you get one email when it is ready to try.