Support downsampling for /series.#2003
Conversation
70ef277 to
7b59bca
Compare
GiedriusS
left a comment
There was a problem hiding this comment.
LGTM but could we also add a changelog entry + update the HELP string in cmd/thanos/query.go somehow so that our users would know that this applies for api/v1/series requests as well?
17e03c0 to
f2062ae
Compare
GiedriusS
left a comment
There was a problem hiding this comment.
I think I would be OK with this code and reusing the same parameter but let's wait a bit to hear what others think.
bwplotka
left a comment
There was a problem hiding this comment.
This is kind of weird as series does not fetch chunks... I think the fix here is to actually look up all blocks even downsampled for all series? Instead of this?
What if instead put maxSourceResolution = max.Int64`? I think that should include all series... (:
What do you think?
Yep, we could just do this here. It would reduce the confusion for the users. 👍 |
Signed-off-by: Aleskey Sin <leks.sin@gmail.com>
f2062ae to
5597322
Compare
Yes, I think it good idea! PR Updated) |
GiedriusS
left a comment
There was a problem hiding this comment.
Should be good since we do not retrieve the chunks themselves 👍
|
@bwplotka Any comments?) |
|
I have tested this out - works properly and now returns all data. Thanks! |
Signed-off-by: Aleksey Sin asin@ozon.ru
Use-case
Grafana need to get variables from /series. It do not work when we have only downsampled data (we using other retentions for every resolutions).
Changes
Support downsampling for /series API method. Based on
defaultInstantQueryMaxSourceResolutionVerification
Grafana can get data for variables.