-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support downsampling for /series. #2003
Support downsampling for /series. #2003
Conversation
70ef277
to
7b59bca
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be good since we do not retrieve the chunks themselves 👍
@bwplotka Any comments?) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No. Did you check if this works? ;p @IKSIN
It looks good to me. Simple and powerful 👍
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
defaultInstantQueryMaxSourceResolution
Verification
Grafana can get data for variables.