data/chunks_head/000001

Head Chunks (m-mapped)

When an in-memory head chunk fills up, it is flushed and memory-mapped from files under chunks_head/. Unlike block chunks these files have no index, so each chunk record carries its own metadata: the series reference it belongs to, plus its mint/maxt. That's what makes WAL replay fast: Prometheus can rebuild the head from these files without decoding sample data.

References work like block chunks: uint64 = segment sequence (upper 4 bytes) ‖ in-file offset (lower 4 bytes).

Open the interactive byte explorer →

Field notes & invariants

← All TSDB formats