Like Prometheus, but for logs.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
loki/pkg/chunkenc
Cyril Tovena 5d8bc6129e
Correctly sets hash value for headblock iterator (#5423)
3 years ago
..
testdata Improve metric queries by computing samples at the edges. (#2293) 5 years ago
README.md Updates chunkenc doc for V3 (#2956) 5 years ago
dumb_chunk.go Fixes log deduplication when mutating Labels using LogQL (#5289) 3 years ago
encoding_helpers.go Improve checkpoint series iterator. (#3193) 4 years ago
facade.go Fork cortex chunk storage into Loki. (#3842) 4 years ago
hash_test.go Improve lz4 compression (#2614) 5 years ago
interface.go introduces "entry too far behind" instrumentation for unordered writes (#4592) 4 years ago
interface_test.go introduces "entry too far behind" instrumentation for unordered writes (#4592) 4 years ago
memchunk.go Correctly sets hash value for headblock iterator (#5423) 3 years ago
memchunk_test.go Fixes log deduplication when mutating Labels using LogQL (#5289) 3 years ago
pool.go Upgrade Cortex, Prometheus and Thanos (#4830) 4 years ago
pool_test.go Promtail pull cloudflare logs (#4813) 4 years ago
unordered.go Correctly sets hash value for headblock iterator (#5423) 3 years ago
unordered_test.go Correctly sets hash value for headblock iterator (#5423) 3 years ago
util_test.go Speed up `EntrySortIterator` by 20%. (#5318) 3 years ago

README.md

Chunk format

  |                 |             |
  | MagicNumber(4b) | version(1b) |
  |                 |             |
  --------------------------------------------------
  |         block-1 bytes         |  checksum (4b) |
  --------------------------------------------------
  |         block-2 bytes         |  checksum (4b) |
  --------------------------------------------------
  |         block-n bytes         |  checksum (4b) |
  --------------------------------------------------
  |         #blocks (uvarint)                      |
  --------------------------------------------------
  | #entries(uvarint) | mint, maxt (varint) | offset, len (uvarint) | uncompressedSize (uvarint) |
  ------------------------------------------------------------------------------------------------
  | #entries(uvarint) | mint, maxt (varint) | offset, len (uvarint) | uncompressedSize (uvarint) |
  ------------------------------------------------------------------------------------------------
  | #entries(uvarint) | mint, maxt (varint) | offset, len (uvarint) | uncompressedSize (uvarint) |
  ------------------------------------------------------------------------------------------------
  | #entries(uvarint) | mint, maxt (varint) | offset, len (uvarint) | uncompressedSize (uvarint) |
  ------------------------------------------------------------------------------------------------
  |                      checksum(from #blocks)                     |
  -------------------------------------------------------------------
  | metasOffset - offset to the point with #blocks |
  --------------------------------------------------