prometheus/storage/remote
Tom Wilkie ce97cdd477
Move remote read handler to remote package. (#8536)
* Move remote read handler to remote package.

This follows the pattern I started with the remote write handler.  The api/v1 package is getting pretty cluttered.  Moving code to other packages helps reduce this size and also makes it reusable - eg Cortex doesn't do streaming remote writes yet, and will very soon.

Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>

* Deal with a nil remoteReadHandler for tests.

Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>

* Remove the global metrics.

Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>

* Fix test.

Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>

* Review feedback.

Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2021-02-26 16:43:19 +00:00
..
chunked_test.go Testify: move to require (#8122) 2020-10-29 09:43:23 +00:00
chunked.go Fix some warnings: 'redundant type from array, slice, or map composite literal' (#7109) 2020-04-15 11:17:41 +01:00
client_test.go Adds support to configure retry on Rate-Limiting from remote-write config. 2021-02-16 14:52:49 +05:30
client.go Adds support to configure retry on Rate-Limiting from remote-write config. 2021-02-16 14:52:49 +05:30
codec_test.go Various enhancements and refactorings for remote write receiver: 2021-02-08 20:41:23 +00:00
codec.go Various enhancements and refactorings for remote write receiver: 2021-02-08 20:41:23 +00:00
ewma.go Replace sync/atomic with uber-go/atomic (#7683) 2020-07-30 13:15:42 +05:30
intern_test.go Testify: move to require (#8122) 2020-10-29 09:43:23 +00:00
intern.go Move away from testutil, refactor imports (#8087) 2020-10-22 11:00:08 +02:00
max_timestamp.go Remote: Do not collect non-initialized timestamp metrics (#8060) 2020-10-15 23:53:59 +02:00
metadata_watcher_test.go Allow metric metadata to be propagated via Remote Write. (#6815) 2020-11-19 20:53:03 +05:30
metadata_watcher.go Allow metric metadata to be propagated via Remote Write. (#6815) 2020-11-19 20:53:03 +05:30
queue_manager_test.go Allow metric metadata to be propagated via Remote Write. (#6815) 2020-11-19 20:53:03 +05:30
queue_manager.go Consider status code 429 as recoverable errors to avoid resharding (#8237) 2021-02-10 15:25:37 -07:00
read_handler_test.go Move remote read handler to remote package. (#8536) 2021-02-26 16:43:19 +00:00
read_handler.go Move remote read handler to remote package. (#8536) 2021-02-26 16:43:19 +00:00
read_test.go Allow metric metadata to be propagated via Remote Write. (#6815) 2020-11-19 20:53:03 +05:30
read.go Add matchers to LabelValues() call (#8400) 2021-02-09 23:08:35 +05:30
storage_test.go Allow metric metadata to be propagated via Remote Write. (#6815) 2020-11-19 20:53:03 +05:30
storage.go Allow metric metadata to be propagated via Remote Write. (#6815) 2020-11-19 20:53:03 +05:30
write_handler_test.go Combine Appender.Add and AddFast into a single Append method. (#8489) 2021-02-18 17:37:00 +05:30
write_handler.go Move remote read handler to remote package. (#8536) 2021-02-26 16:43:19 +00:00
write_test.go Allow metric metadata to be propagated via Remote Write. (#6815) 2020-11-19 20:53:03 +05:30
write.go Combine Appender.Add and AddFast into a single Append method. (#8489) 2021-02-18 17:37:00 +05:30