mirror of
https://github.com/prometheus/prometheus.git
synced 2025-03-05 20:59:13 -08:00
Block intervals are bound by `block.MinTime`, `block.MaxTime`, but they define a half-open interval: `[block.MinTime, block.MaxTime). However, when deciding if a chunk was part of a block or not, the `intervalOverlap()` function would consider both the chunk and the block intervals as being closed. Rather than modify the login in `intervalOverlap()`, we explicitly remove the last value from the interval when reading from head to persist blocks. Signed-off-by: Benoît Knecht <benoit.knecht@fsfe.org> |
||
---|---|---|
chunkenc | ||
chunks | ||
cmd/tsdb | ||
docs/format | ||
fileutil | ||
index | ||
labels | ||
test | ||
testdata | ||
testutil | ||
tsdbutil | ||
.gitignore | ||
.travis.yml | ||
block.go | ||
block_test.go | ||
compact.go | ||
compact_test.go | ||
db.go | ||
db_test.go | ||
encoding_helpers.go | ||
head.go | ||
head_test.go | ||
LICENSE | ||
querier.go | ||
querier_test.go | ||
README.md | ||
repair.go | ||
repair_test.go | ||
tombstones.go | ||
tombstones_test.go | ||
wal.go | ||
wal_test.go |
TSDB 
This repository contains the Prometheus storage layer that is used in its 2.x releases.
A writeup of its design can be found here.
Video: Storing 16 Bytes at Scale from PromCon 2017.
See also the format documentation.