prometheus/storage/remote
Bartlomiej Plotka e6d7cc5fa4
tsdb: Added ChunkQueryable implementations to db; unified MergeSeriesSets and vertical to single struct. (#7069)
* tsdb: Added ChunkQueryable implementations to db; unified compactor, querier and fanout block iterating.

Chained to https://github.com/prometheus/prometheus/pull/7059

* NewMerge(Chunk)Querier now takies multiple primaries allowing tsdb DB code to use it.
* Added single SeriesEntry / ChunkEntry for all series implementations.
* Unified all vertical, and non vertical for compact and querying to single
merge series / chunk sets by reusing VerticalSeriesMergeFunc for overlapping algorithm (same logic as before)
* Added block (Base/Chunk/)Querier for block querying. We then use populateAndTomb(Base/Chunk/) to iterate over chunks or samples.
* Refactored endpoint tests and querier tests to include subtests.

Signed-off-by: Bartlomiej Plotka <bwplotka@gmail.com>

* Addressed comments from Brian and Beorn.

Signed-off-by: Bartlomiej Plotka <bwplotka@gmail.com>

* Fixed snapshot test and added chunk iterator support for DBReadOnly.

Signed-off-by: Bartlomiej Plotka <bwplotka@gmail.com>

* Fixed race when iterating over Ats first.

Signed-off-by: Bartlomiej Plotka <bwplotka@gmail.com>

* Fixed tests.

Signed-off-by: Bartlomiej Plotka <bwplotka@gmail.com>

* Fixed populate block tests.

Signed-off-by: Bartlomiej Plotka <bwplotka@gmail.com>

* Fixed endpoints test.

Signed-off-by: Bartlomiej Plotka <bwplotka@gmail.com>

* Fixed test.

Signed-off-by: Bartlomiej Plotka <bwplotka@gmail.com>

* Added test & fixed case of head open chunk.

Signed-off-by: Bartlomiej Plotka <bwplotka@gmail.com>

* Fixed DBReadOnly tests and bug producing 1 sample chunks.

Signed-off-by: Bartlomiej Plotka <bwplotka@gmail.com>

* Added cases for partial block overlap for multiple full chunks.

Signed-off-by: Bartlomiej Plotka <bwplotka@gmail.com>

* Added extra tests for chunk meta after compaction.

Signed-off-by: Bartlomiej Plotka <bwplotka@gmail.com>

* Fixed small vertical merge bug and added more tests for that.

Signed-off-by: Bartlomiej Plotka <bwplotka@gmail.com>
2020-07-31 16:03:02 +01:00
..
chunked.go Fix some warnings: 'redundant type from array, slice, or map composite literal' (#7109) 2020-04-15 11:17:41 +01:00
chunked_test.go Fix some warnings: 'redundant type from array, slice, or map composite literal' (#7109) 2020-04-15 11:17:41 +01:00
client.go Exports recoverable error (#7689) 2020-07-29 11:08:25 -06:00
client_test.go Exports recoverable error (#7689) 2020-07-29 11:08:25 -06:00
codec.go storage: Adjusted fully storage layer support for chunk iterators: Remote read client, readyStorage, fanout. (#7059) 2020-06-24 14:41:52 +01:00
codec_test.go Add a unit test for MergeLabels in storage/remote/codec.go. (#7499) 2020-07-04 22:17:19 -06:00
ewma.go Replace sync/atomic with uber-go/atomic (#7683) 2020-07-30 13:15:42 +05:30
intern.go Replace sync/atomic with uber-go/atomic (#7683) 2020-07-30 13:15:42 +05:30
intern_test.go Replace sync/atomic with uber-go/atomic (#7683) 2020-07-30 13:15:42 +05:30
max_gauge.go resolve race condition in maxGauge (#5647) 2019-06-13 20:55:08 +01:00
queue_manager.go Replace sync/atomic with uber-go/atomic (#7683) 2020-07-30 13:15:42 +05:30
queue_manager_test.go Replace sync/atomic with uber-go/atomic (#7683) 2020-07-30 13:15:42 +05:30
read.go storage: Adjusted fully storage layer support for chunk iterators: Remote read client, readyStorage, fanout. (#7059) 2020-06-24 14:41:52 +01:00
read_test.go storage: Adjusted fully storage layer support for chunk iterators: Remote read client, readyStorage, fanout. (#7059) 2020-06-24 14:41:52 +01:00
storage.go tsdb: Added ChunkQueryable implementations to db; unified MergeSeriesSets and vertical to single struct. (#7069) 2020-07-31 16:03:02 +01:00
storage_test.go storage/remote: add tests for config changes 2020-04-13 22:32:37 +00:00
write.go Address comments 2020-07-30 16:41:13 +05:30
write_test.go add os.RemoveAll err verification (#7540) 2020-07-17 11:47:32 +05:30