prometheus/tsdb/docs/format
Victor Herrero Otal 0cbbc9b7d3 docs: Fix chunk format documentation for `varint` encoding
While preparing PR #16701, we identified an inconsistency in the chunk
format documentation. The `varint` encoding can require up to 10 bytes
for a 64-bit integer, such as when timestamps are encoded. However, the
chunk length field is a 32-bit integer, which requires at most 5 bytes
in `varint` encoding.

This is reflected in the code, where a maximum of 5 bytes are read when
parsing the chunk length.

    50ba25f273/tsdb/chunks/chunks.go (L709-L711)

    50ba25f273/tsdb/chunks/chunks.go (L47-L48)

Co-authored-by: Istvan Zoltan Ballok <istvan.zoltan.ballok@sap.com>
Signed-off-by: Victor Herrero Otal <victor.herrero.otal@sap.com>
2025-08-15 10:56:21 +02:00
..
README.md Sync sparsehistogram branch with main (#9189) 2021-08-11 15:43:17 +05:30
chunks.md docs: Fix chunk format documentation for `varint` encoding 2025-08-15 10:56:21 +02:00
head_chunks.md Update chunk format docs with native histograms and OOO 2024-09-27 18:57:58 +01:00
index.md Fix language in docs and comments (#14041) 2024-05-08 17:57:09 +02:00
memory_snapshot.md Merge branch 'main' into sparsehistogram 2021-10-07 23:16:42 +02:00
tombstones.md Consistent naming and better names for fields in TSDB format docs (#8077) 2020-10-19 14:27:19 +05:30
wal.md Merge branch 'main' into cedwards/nhcb-wal-wbl 2025-01-02 12:50:19 +01:00