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
Sandeep Sukhani 7e224d53de
fix: try reading chunks which have incorrect offset for blocks (#13720)
10 months 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 chore: Make dedicated iterator package (#13273) 11 months ago
encoding_helpers.go Improve checkpoint series iterator. (#3193) 4 years ago
facade.go chore: update loki modules for 3.0 release (#12433) 1 year ago
hash_test.go chore: update loki modules for 3.0 release (#12433) 1 year ago
interface.go feat: Collect duplicate log line metrics (#13084) 11 months ago
interface_test.go chore(logging): Add entry's timestamp when rejected with `too far behind` (#12933) 1 year ago
memchunk.go fix: try reading chunks which have incorrect offset for blocks (#13720) 10 months ago
memchunk_test.go fix: try reading chunks which have incorrect offset for blocks (#13720) 10 months ago
pool.go chore: update loki modules for 3.0 release (#12433) 1 year ago
pool_test.go Format + Library for building bloom filter "blocks" from chunks (#10780) 2 years ago
symbols.go chore: Improve performance of structured metadata (#13404) 11 months ago
symbols_test.go chore: Improve performance of structured metadata (#13404) 11 months ago
unordered.go chore: Improve performance of structured metadata (#13404) 11 months ago
unordered_test.go chore: Make dedicated iterator package (#13273) 11 months ago
util_test.go chore: Improve performance of structured metadata (#13404) 11 months 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 |
  --------------------------------------------------