prometheus/tsdb
Ganesh Vernekar 3245b3267b
Don't use returned DB to close resources on TSDB startup error (#8113)
* Don't use returned DB to close resources on TSDB startup error

Signed-off-by: Ganesh Vernekar <cs15btech11018@iith.ac.in>

* Add unit test and fix another panic

Signed-off-by: Ganesh Vernekar <cs15btech11018@iith.ac.in>

* Fix review comment

Signed-off-by: Ganesh Vernekar <cs15btech11018@iith.ac.in>
2020-10-28 15:39:03 +05:30
..
chunkenc Move away from testutil, refactor imports (#8087) 2020-10-22 11:00:08 +02:00
chunks Refactor test assertions (#8110) 2020-10-27 11:06:53 +01:00
docs/format Consistent naming and better names for fields in TSDB format docs (#8077) 2020-10-19 14:27:19 +05:30
encoding Avoid WriteAt for Postings. 2019-12-16 15:30:49 +00:00
errors Moving tsdb into its own subdirectory 2019-08-13 13:58:49 +05:30
fileutil More info in mmap error message (#8058) 2020-10-15 12:58:13 +05:30
goversion tsdb: test for leaks (#7566) 2020-07-21 10:08:06 +02:00
index Refactor test assertions (#8110) 2020-10-27 11:06:53 +01:00
record Move away from testutil, refactor imports (#8087) 2020-10-22 11:00:08 +02:00
test labels: Reduce allocated memory and latency of Hash method; Added tests. (#8025) 2020-10-15 11:31:28 +01:00
testdata tsdb: Delete blocks atomically; Remove tmp blocks on start; Added test. (#7772) 2020-08-11 06:56:08 +01:00
tombstones Move away from testutil, refactor imports (#8087) 2020-10-22 11:00:08 +02:00
tsdbutil Refactor test assertions (#8110) 2020-10-27 11:06:53 +01:00
wal Refactor test assertions (#8110) 2020-10-27 11:06:53 +01:00
.gitignore Moving tsdb into its own subdirectory 2019-08-13 13:58:49 +05:30
block.go Move away from testutil, refactor imports (#8087) 2020-10-22 11:00:08 +02:00
block_test.go Refactor test assertions (#8110) 2020-10-27 11:06:53 +01:00
blockwriter.go Add a tsdb writer interface (#7950) 2020-10-12 17:04:20 +01:00
blockwriter_test.go Move away from testutil, refactor imports (#8087) 2020-10-22 11:00:08 +02:00
CHANGELOG.md Spelling (#6517) 2020-01-02 15:54:09 +01:00
compact.go Move away from testutil, refactor imports (#8087) 2020-10-22 11:00:08 +02:00
compact_test.go Refactor test assertions (#8110) 2020-10-27 11:06:53 +01:00
db.go Don't use returned DB to close resources on TSDB startup error (#8113) 2020-10-28 15:39:03 +05:30
db_test.go Don't use returned DB to close resources on TSDB startup error (#8113) 2020-10-28 15:39:03 +05:30
head.go Move away from testutil, refactor imports (#8087) 2020-10-22 11:00:08 +02:00
head_bench_test.go Move away from testutil, refactor imports (#8087) 2020-10-22 11:00:08 +02:00
head_test.go Refactor test assertions (#8110) 2020-10-27 11:06:53 +01:00
isolation.go Optimise lowWatermark in Isolation (#7332) 2020-06-03 20:09:05 +02:00
isolation_test.go Optimise lowWatermark in Isolation (#7332) 2020-06-03 20:09:05 +02:00
mocks_test.go Move away from testutil, refactor imports (#8087) 2020-10-22 11:00:08 +02:00
querier.go Move away from testutil, refactor imports (#8087) 2020-10-22 11:00:08 +02:00
querier_bench_test.go Move away from testutil, refactor imports (#8087) 2020-10-22 11:00:08 +02:00
querier_test.go Refactor test assertions (#8110) 2020-10-27 11:06:53 +01:00
README.md Add links to TSDB blog post series in tsdb/README.md (#8078) 2020-10-19 17:17:10 +05:30
repair.go Move away from testutil, refactor imports (#8087) 2020-10-22 11:00:08 +02:00
repair_test.go Refactor test assertions (#8110) 2020-10-27 11:06:53 +01:00
tsdbblockutil.go Move away from testutil, refactor imports (#8087) 2020-10-22 11:00:08 +02:00
wal.go Move away from testutil, refactor imports (#8087) 2020-10-22 11:00:08 +02:00
wal_test.go Move away from testutil, refactor imports (#8087) 2020-10-22 11:00:08 +02:00

TSDB

GoDoc

This directory contains the Prometheus storage layer that is used in its 2.x releases.

A writeup of its design can be found here.

Based on the Gorilla TSDB white papers.

Video: Storing 16 Bytes at Scale from PromCon 2017.

See also the format documentation.

A series of blog posts explaining different components of TSDB: