prometheus/tsdb
Lucas Servén Marín 8ab628b354 tsdb: allow readonly DB to create flush WAL (#6006)
This PR gives the readonly DB the ability to create blocks from the WAL.
In order to implement this, we modify DBReadOnly.Blocks() to return an
empty slice and no error if no blocks are found.
xref: https://github.com/prometheus/tsdb/issues/346#issuecomment-520786524

Signed-off-by: Lucas Servén Marín <lserven@gmail.com>
2019-09-13 11:25:21 +01:00
..
chunkenc Removed extra tsdb/testutil after merge. 2019-08-14 10:12:32 +01:00
chunks Removed extra tsdb/testutil after merge. 2019-08-14 10:12:32 +01:00
cmd/tsdb Removed extra tsdb/testutil after merge. 2019-08-14 10:12:32 +01:00
docs/format Moving tsdb into its own subdirectory 2019-08-13 13:58:49 +05:30
encoding Moving tsdb into its own subdirectory 2019-08-13 13:58:49 +05:30
errors Moving tsdb into its own subdirectory 2019-08-13 13:58:49 +05:30
fileutil Removed extra tsdb/testutil after merge. 2019-08-14 10:12:32 +01:00
goversion Cleanup after merging tsdb into prometheus 2019-08-13 14:04:14 +05:30
index Add test for MemPostings.Delete (#5910) 2019-08-22 15:19:12 +03:00
labels Removed extra tsdb/testutil after merge. 2019-08-14 10:12:32 +01:00
test Cleanup after merging tsdb into prometheus 2019-08-13 14:04:14 +05:30
testdata Moving tsdb into its own subdirectory 2019-08-13 13:58:49 +05:30
tsdbutil Removed extra tsdb/testutil after merge. 2019-08-14 10:12:32 +01:00
wal Add methods to fetch page's buf data in tsdb WAL (#5967) 2019-08-30 11:38:36 +03:00
.gitignore Moving tsdb into its own subdirectory 2019-08-13 13:58:49 +05:30
block.go tsdb: add block meta version constant (#5994) 2019-09-09 12:28:01 +03:00
block_test.go Removed extra tsdb/testutil after merge. 2019-08-14 10:12:32 +01:00
CHANGELOG.md fix-up tsdb-typo (#5954) 2019-08-28 14:43:02 +01:00
checkpoint.go Cleanup after merging tsdb into prometheus 2019-08-13 14:04:14 +05:30
checkpoint_test.go Removed extra tsdb/testutil after merge. 2019-08-14 10:12:32 +01:00
compact.go Cleanup after merging tsdb into prometheus 2019-08-13 14:04:14 +05:30
compact_test.go Removed extra tsdb/testutil after merge. 2019-08-14 10:12:32 +01:00
db.go tsdb: allow readonly DB to create flush WAL (#6006) 2019-09-13 11:25:21 +01:00
db_test.go tsdb: allow readonly DB to create flush WAL (#6006) 2019-09-13 11:25:21 +01:00
head.go fix spelling mistakes in docs (#5952) 2019-08-27 11:33:40 -06:00
head_bench_test.go Removed extra tsdb/testutil after merge. 2019-08-14 10:12:32 +01:00
head_test.go Removed extra tsdb/testutil after merge. 2019-08-14 10:12:32 +01:00
MAINTAINERS.md Moving tsdb into its own subdirectory 2019-08-13 13:58:49 +05:30
mocks_test.go Cleanup after merging tsdb into prometheus 2019-08-13 14:04:14 +05:30
querier.go Cleanup after merging tsdb into prometheus 2019-08-13 14:04:14 +05:30
querier_test.go fix-up tsdb-typo (#5954) 2019-08-28 14:43:02 +01:00
README.md Moving tsdb into its own subdirectory 2019-08-13 13:58:49 +05:30
record.go Cleanup after merging tsdb into prometheus 2019-08-13 14:04:14 +05:30
record_test.go Removed extra tsdb/testutil after merge. 2019-08-14 10:12:32 +01:00
repair.go tsdb: add block meta version constant (#5994) 2019-09-09 12:28:01 +03:00
repair_test.go tsdb: add block meta version constant (#5994) 2019-09-09 12:28:01 +03:00
tombstones.go Cleanup after merging tsdb into prometheus 2019-08-13 14:04:14 +05:30
tombstones_test.go Removed extra tsdb/testutil after merge. 2019-08-14 10:12:32 +01:00
wal.go fix-up tsdb-typo (#5954) 2019-08-28 14:43:02 +01:00
wal_test.go Removed extra tsdb/testutil after merge. 2019-08-14 10:12:32 +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.

Based on the Gorilla TSDB white papers.

Video: Storing 16 Bytes at Scale from PromCon 2017.

See also the format documentation.