mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-24 05:04:05 -08:00
24b223c161
Due to the way blocks used to overlap by 1 millisecond (see #347), when requesting a 2-hour interval starting at `blocks[1].MinTime`, the `Querier` would consider three blocks: `blocks[0]`, `blocks[1]` and `blocks[2]`, because `blocks[0].MaxTime` and `blocks[2].MinTime` were in that interval. However, if the blocks don't overlap, only two blocks should be returned: `blocks[1]` and `blocks[2]`. This test ensures that it's indeed the case. 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.