mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-24 21:24:05 -08:00
1e1b2e163d
Blocks are half-open intervals [a, b), while all other intervals (chunks, head, ...) are closed intervals [a, b]. Make that distinction explicit by defining `OverlapsClosedInterval()` methods for blocks and chunks, and using them in place of the more generic `intervalOverlap()` function. This change also fixes `db.Querier()` and `db.Delete()`, which could previously return one extraneous block at the end of the specified interval. 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.