-
Notifications
You must be signed in to change notification settings - Fork 9.7k
[PERF] TSDB: Pass down label value limit into implementation #16158
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
Conversation
df806b5
to
d4c107f
Compare
d4c107f
to
243212f
Compare
Signed-off-by: Andre Branchizio <andrejbranch@gmail.com>
243212f
to
68cd106
Compare
Let's reference #14109 as priory art. |
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.
Thanks for this; I made a few stylistic points.
Signed-off-by: Andre Branchizio <andrejbranch@gmail.com>
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, thanks!
BTW the description is a bit confusing to me as someone who doesn't work on Thanos. |
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.
Thank you, LGTM!
…eus#16158) * allow limiting label values calls Signed-off-by: Andre Branchizio <andrejbranch@gmail.com> Signed-off-by: WuLiang <wu1998102@gmail.com>
This allows limiting the result sets of values calls, which can significantly reduce the payload for high cardinality metrics with 100k+ values.
A next step to this might be getting values in batches here and intersecting the postings batch by batch until limit is reached which could improve memory and latency for calls that have a specified limit. Though this seems like a reasonable starting point.