prometheus/tsdb
Javier Palomo Almena 348ff4285f
tsdb: Replace sync/atomic with uber-go/atomic in tsdb (#7659)
* tsdb/chunks: Replace sync/atomic with uber-go/atomic

Signed-off-by: Javier Palomo <javier.palomo.almena@gmail.com>

* tsdb/heaad: Replace sync/atomic with uber-go/atomic

Signed-off-by: Javier Palomo <javier.palomo.almena@gmail.com>

* vendor: Make go.uber.org/atomic a direct dependency

There is no modifications to go.sum and vendor/ because
it was already vendored.

Signed-off-by: Javier Palomo <javier.palomo.almena@gmail.com>

* tsdb: Remove comments referring to the sync/atomic alignment bug

Related: https://golang.org/pkg/sync/atomic/#pkg-note-BUG

Signed-off-by: Javier Palomo <javier.palomo.almena@gmail.com>
2020-07-28 10:12:42 +05:30
..
chunkenc Cleanup bstream_test.go based on post-merge feedback received on #7390 (#7413) 2020-06-18 14:49:39 +05:30
chunks tsdb: Replace sync/atomic with uber-go/atomic in tsdb (#7659) 2020-07-28 10:12:42 +05:30
docs/format tsdb/docs: fix head chunks directory + link from README (#7309) 2020-06-17 20:38:21 +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 Avoid empty mmap files by using .tmp files to write headers 2020-07-14 14:59:28 +05:30
goversion tsdb: test for leaks (#7566) 2020-07-21 10:08:06 +02:00
index tsdb: test for leaks (#7566) 2020-07-21 10:08:06 +02:00
record Add unit test case for func Type in record.go (#7082) 2020-05-27 12:08:33 +05:30
test Port tsdb to use pkg/labels. (#6326) 2019-11-18 11:53:33 -08:00
testdata Handle V1 indexes, some of which have unsorted posting offset tables. (#6564) 2020-01-06 14:06:11 +00:00
tombstones tsdb: test for leaks (#7566) 2020-07-21 10:08:06 +02:00
tsdbutil storage: Added Chunks{Queryable/Querier/SeriesSet/Series/Iteratable. Added generic Merge{SeriesSet/Querier} implementation. (#7005) 2020-03-24 20:15:47 +00:00
wal tsdb: test for leaks (#7566) 2020-07-21 10:08:06 +02:00
.gitignore Moving tsdb into its own subdirectory 2019-08-13 13:58:49 +05:30
block.go Introduce SortedLabelValues/LabelValues to speedup queries for high cardinality (#7448) 2020-06-25 14:10:29 +01:00
block_test.go *: Consistent Error/Warning handling for SeriesSet iterator: Allowing Async Select (#7251) 2020-06-09 17:57:31 +01:00
CHANGELOG.md Spelling (#6517) 2020-01-02 15:54:09 +01:00
compact.go Fixed race between compact (gc, populate) and head append causing unknown symbol error. (#7560) 2020-07-14 09:36:22 +01:00
compact_test.go TSDB: Use t.Cleanup to delete temporary files (#7620) 2020-07-21 10:39:02 +02:00
db.go tsdb: Replace sync/atomic with uber-go/atomic in tsdb (#7659) 2020-07-28 10:12:42 +05:30
db_test.go tsdb: Replace sync/atomic with uber-go/atomic in tsdb (#7659) 2020-07-28 10:12:42 +05:30
head.go tsdb: Replace sync/atomic with uber-go/atomic in tsdb (#7659) 2020-07-28 10:12:42 +05:30
head_bench_test.go Callbacks for lifecycle of series in TSDB (#7159) 2020-05-20 18:52:08 +05:30
head_test.go tsdb: Replace sync/atomic with uber-go/atomic in tsdb (#7659) 2020-07-28 10:12:42 +05:30
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 Revert head posting optimization 2020-03-25 20:19:33 +01:00
querier.go Introduce SortedLabelValues/LabelValues to speedup queries for high cardinality (#7448) 2020-06-25 14:10:29 +01:00
querier_bench_test.go Optimise labels regex matchers containing a literal within the pattern (#7503) 2020-07-07 09:38:04 +01:00
querier_test.go Introduce SortedLabelValues/LabelValues to speedup queries for high cardinality (#7448) 2020-06-25 14:10:29 +01:00
README.md Edit TSDB README badges 2019-10-24 15:35:47 +05:30
repair.go Capitalizing first letter of all log lines (#7043) 2020-04-11 09:22:18 +01:00
repair_test.go Port tsdb to use pkg/labels. (#6326) 2019-11-18 11:53:33 -08:00
tsdbblockutil.go Callbacks for lifecycle of series in TSDB (#7159) 2020-05-20 18:52:08 +05:30
wal.go Capitalizing first letter of all log lines (#7043) 2020-04-11 09:22:18 +01:00
wal_test.go tsdb: test for leaks (#7566) 2020-07-21 10:08:06 +02:00

TSDB

GoDoc

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.