~/talk

Lifecycle of a Sample in the Prometheus TSDB

Talkat SREcon22 Asia/Pacific · 2022-12-07..12-09· [databases, observability]
slides:none on file

Prometheus TSDB stores each sample as int64 timestamp + float64 value, writes every mutation to a Write-Ahead Log (WAL) for crash durability, compresses on the fly into chunks with gorilla compression, memory-maps head-chunk files, and compacts the head into persistent two-hour blocks and then merges three blocks into one for query efficiency. Tombstones mark deletions until block deletion by retention; checkpoints and replay restore state, and shutdown snapshots make startup >50% faster.

AI-written summary · about

  1. 0:00Introduction
  2. 1:13Prometheus Architecture
  3. 2:03Head Block
  4. 2:54Chunk
  5. 4:04RightHeadLog
  6. 4:45Why Write a HeadLog
  7. 5:12HeadLog Example
  8. 7:17Why do we need head compaction
  9. 7:50Bigger blocks
  10. 8:02Older blocks
  11. 8:17Grouping blocks
  12. 8:43Block compaction
  13. 10:13Block
  14. 12:55Index
  15. 16:43Query
  16. 18:46Query Multiple Blocks
  17. 20:41Tombstones
  18. 22:42Replay
  19. 23:51Maintenance
  20. 28:08Snapshot
~/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.