prometheus/web
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
..
api/v1 Move remote read handler to remote package. (#8536) 2021-02-26 16:43:19 +00:00
ui web/ui/react-app: update dependencies (#8529) 2021-02-24 21:01:28 +01:00
federate_test.go Testify: move to require (#8122) 2020-10-29 09:43:23 +00:00
federate.go Move away from testutil, refactor imports (#8087) 2020-10-22 11:00:08 +02:00
web_test.go Add TLS and basic authentication 2020-12-28 21:33:44 +01:00
web.go Move remote read handler to remote package. (#8536) 2021-02-26 16:43:19 +00:00