prometheus/web
Thomas Jackson f0a1ebc19d Add SelectParams to Select for federation (#4546)
When prom2 came out the storage querier interface consolidated to a
single Select() method. While doing this it makes it impossible as the
implementer of the querier to know if you are being called for metadata
or actual data. The workaround has been to check if the SelectParams are
nil, which the federation call is always nil. This has 2 negative
consequences (1) remote implementations interpret this as a metadata
call, which makes the federation endpoint return nothing. (2) this means
that the storage implementations don't get the same information passed
down to them as far as SelectParams goes.

This diff simply adds SelectParams to the Select() call in the
federation handler

Mitigation for #4057

Signed-off-by: Thomas Jackson <jacksontj.89@gmail.com>
2018-08-28 11:23:31 +01:00
..
api web/api: Expose rule health and last error (#4501) 2018-08-23 18:30:10 +05:30
ui Replace go-bindata with vfsgen (#4430) 2018-08-24 09:03:10 +02:00
federate.go Add SelectParams to Select for federation (#4546) 2018-08-28 11:23:31 +01:00
federate_test.go Fix spelling mistakes found by codespell (#4065) 2018-04-27 13:04:02 +01:00
web.go Replace go-bindata with vfsgen (#4430) 2018-08-24 09:03:10 +02:00
web_test.go web: restore old path prefix behavior 2018-06-15 09:08:14 +01:00