~/talk

Designing for High-cardinality Metrics

links:none on file
links:none on file
slides:none on file

A stateless scrape-time reset algorithm converts cumulative counters into safe aggregates by resetting counters at flush and handling counter resets deterministically, implemented as ~8 lines of logic and deployed pre-ingest or inside Prometheus. Production reduces compute by 90% compute cost reduction, cuts a largest metric from 1M→27k series, and speeds heavy queries from ~20s to ~200ms (100x faster for some queries). Tradeoffs: block merges can duplicate samples (fixed by dropping the first duplicate), missing-sample ambiguity, and cases where counters never zigzag.

AI-written summary · about

  1. 0:00High-cardinality metrics intro
  2. 1:06Pod churn pain
  3. 4:20Why databases struggle
  4. 6:31Scrape-time aggregation
  5. 8:17Cumulative counter issues
  6. 11:04Resetting counters safely
  7. 13:11Fixing aggregation errors
  8. 15:58Production results
  9. 17:46Trade-offs and limits
  10. 18:31Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.