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 8d7efddde2
switch to golangci-lint linter (#539)
6 years ago
..
README.md Chunking (#10) 7 years ago
dumb_chunk.go [WIP] Persistence (#44) 7 years ago
encoding_helpers.go Lint stuff (#27) 7 years ago
facade.go [WIP] Persistence (#44) 7 years ago
gzip.go switch to golangci-lint linter (#539) 6 years ago
gzip_test.go Relax restriction on timestamp reuse in chunks, add test. 6 years ago
interface.go Include the stream's labels in OOO error responses. (#304) 6 years ago
lazy_chunk.go Lazy load chunks (#435) 6 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) |
  -------------------------------------------------------------------
  | #entries(uvarint) | mint, maxt (varint) | offset, len (uvarint) |
  -------------------------------------------------------------------
  | #entries(uvarint) | mint, maxt (varint) | offset, len (uvarint) |
  -------------------------------------------------------------------
  | #entries(uvarint) | mint, maxt (varint) | offset, len (uvarint) |
  -------------------------------------------------------------------
  |                      checksum(from #blocks)                     |
  -------------------------------------------------------------------
  | metasOffset - offset to the point with #blocks |
  --------------------------------------------------