The Prometheus monitoring system and time series database.
Find a file
Benoît Knecht 24b223c161 db: add test for Querier returning too many blocks
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>
2018-07-02 10:35:21 +02:00
chunkenc fix some comments typos (#315) 2018-04-08 10:28:30 +01:00
chunks Make interval overlap comparisons more explicit 2018-07-02 10:35:08 +02:00
cmd/tsdb Merge pull request #256 from mattbostock/fix_bench_default_file 2018-05-15 10:25:56 +03:00
docs/format Merge pull request #250 from simonpasquier/update-doc 2018-04-03 12:19:29 +05:30
fileutil Move to flock lockfile 2018-05-29 14:35:48 -04:00
index Add unit tests 2018-06-25 11:25:22 +02:00
labels Fix labels bench test 2018-03-22 12:28:09 +08:00
test index: simplify checksum validation 2017-11-09 15:58:36 +00:00
testdata Add repair test 2018-02-09 13:43:42 +01:00
testutil remove Nil/NotNil functions 2017-12-08 13:42:08 -08:00
tsdbutil use test utils in buffer_test 2017-12-06 17:15:02 -08:00
.gitignore Add default benchmark output dir to .gitignore 2018-01-14 11:07:52 +00:00
.travis.yml Test with Go 1.10.x too. 2018-05-07 12:12:58 +03:00
block.go Make interval overlap comparisons more explicit 2018-07-02 10:35:08 +02:00
block_test.go Ensure correct block order on reload 2018-05-28 16:00:36 -04:00
compact.go Make interval overlap comparisons more explicit 2018-07-02 10:35:08 +02:00
compact_test.go Fixed some comments. 2018-03-13 15:30:00 +00:00
db.go Make interval overlap comparisons more explicit 2018-07-02 10:35:08 +02:00
db_test.go db: add test for Querier returning too many blocks 2018-07-02 10:35:21 +02:00
encoding_helpers.go Fix minor typos in comments 2018-01-15 14:27:49 +01:00
head.go Make interval overlap comparisons more explicit 2018-07-02 10:35:08 +02:00
head_test.go Log series on rollback 2018-06-28 09:04:07 -04:00
LICENSE Add license file 2017-04-10 21:02:42 +02:00
querier.go Fix minor typos in comments 2018-01-15 14:27:49 +01:00
querier_test.go Move index and chunk encoders to own packages 2017-12-21 12:02:05 +01:00
README.md Add link to PromCon 2017 video. 2018-06-04 14:41:43 +02:00
repair.go repair + compact: Improved logging for easier future debug purposes. 2018-03-15 14:59:32 +00:00
repair_test.go Add test for block meta version and comments 2018-02-12 11:46:22 +01:00
tombstones.go Fix comment formatting 2018-01-11 18:20:04 +05:30
tombstones_test.go move test utils to it's own package so we can use it in tests for other packages in tsdb repo 2017-12-06 17:06:14 -08:00
wal.go Fix ineffective assignment. 2018-05-07 16:02:49 +03:00
wal_test.go fix megacheck issues: os.SEEK_SET is deprecated: Use io.SeekStart, io.SeekCurrent, and io.SeekEnd. 2018-03-21 22:39:15 +01:00

TSDB Build Status

GoDoc Go Report Card

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.