Volume vs cardinality
A million unique label values cost more than a million lines with ten labels.
The bill grows faster than traffic. Usually it is one debug logger left on, a label with a user ID, or a thirty-day retention nobody queries. The fix is per-stream, not a single global sampling rate.
A million unique label values cost more than a million lines with ten labels.
Sample info/debug at the source; keep errors and audit events at 100%.
Access logs 7 days, audit 1 year, debug 1 day. One global retention is either too short or too expensive.
Wide queries over long ranges cost more than the storage; design dashboards around indexed fields.
| Signal | What it tells you |
|---|---|
| Volume by service / logger | Which producer is responsible, before sampling globally. |
| Unique label values | High-cardinality fields (user id, request id) that should not be labels. |
| Lines per request | A middleware logging three lines per request is a 3x multiplier. |
| Retention vs queries | Streams nobody queried in 30 days. |
The cheapest win; no query depends on it.
Keep the value in the message body, not as an index key.
Head sampling for debug, tail sampling for traces with errors.
Per stream, with an owner; review quarterly.
This page is free. The paid runbooks cover the operational failures around it, with detection commands, five failure modes and a migration checklist.