-
Notifications
You must be signed in to change notification settings - Fork 548
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
Make use of LabelHints.Limit for LabelNames
and LabelValues
requests (#8805)
#10410
Make use of LabelHints.Limit for LabelNames
and LabelValues
requests (#8805)
#10410
Conversation
LabelNames
and LabelValues
requests
LabelNames
and LabelValues
requestsLabelNames
and LabelValues
requests (#8805)
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.
To me it looks pretty good, but I suggest some improvements.
Can you rebase on main and squash your commits into one, please? Maybe rebasing will fix the CI failures, since I can't reproduce them locally. |
WIP Add limit field on LabelNamesRequest and LabelValuesRequest Add support for limit on gateway.proto Rename variables to keep consistency Fix tests Add tests Add tests Add tests Add tests Add changelog Fix changelog Fix tests Fix imports empty commit Update pkg/distributor/distributor.go Co-authored-by: Arve Knudsen <[email protected]> Update pkg/distributor/distributor_test.go Co-authored-by: Arve Knudsen <[email protected]> Update pkg/distributor/distributor_test.go Co-authored-by: Arve Knudsen <[email protected]> Update pkg/distributor/distributor_test.go Co-authored-by: Arve Knudsen <[email protected]> Update pkg/distributor/distributor_test.go Co-authored-by: Arve Knudsen <[email protected]> Update pkg/querier/tenantfederation/merge_queryable_test.go Co-authored-by: Arve Knudsen <[email protected]> Update pkg/distributor/distributor_test.go Co-authored-by: Arve Knudsen <[email protected]> Update pkg/querier/tenantfederation/merge_queryable_test.go Co-authored-by: Arve Knudsen <[email protected]> Update pkg/storegateway/bucket.go Co-authored-by: Arve Knudsen <[email protected]> Update pkg/storegateway/bucket.go Co-authored-by: Arve Knudsen <[email protected]> Update CHANGELOG.md Co-authored-by: Arve Knudsen <[email protected]> Update pkg/distributor/distributor.go Co-authored-by: Arve Knudsen <[email protected]> Update pkg/distributor/distributor_test.go Co-authored-by: Arve Knudsen <[email protected]> Update pkg/distributor/distributor_test.go Co-authored-by: Arve Knudsen <[email protected]> Update pkg/distributor/distributor_test.go Co-authored-by: Arve Knudsen <[email protected]> Update pkg/ingester/client/compat.go Co-authored-by: Arve Knudsen <[email protected]> Update pkg/ingester/client/compat.go Co-authored-by: Arve Knudsen <[email protected]> Apply suggestions from code review Co-authored-by: Arve Knudsen <[email protected]> Apply suggestions from code review Co-authored-by: Arve Knudsen <[email protected]> Fix pipeline Fix tests empty commit
fccd555
to
69ea948
Compare
done! could you check it again? |
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.
Looks much better, but there are still some issues.
Co-authored-by: Arve Knudsen <[email protected]>
@aknuds1 I fixed them. Could you check it again? |
@aknuds1 is this ready to merge? |
I plan on reviewing it soon, but it may have to wait until tomorrow. It's been busy. |
Makes sense. Thanks |
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.
After changing the changelog item into an ENHANCEMENT (and preferably addressing the two nits), I think this is good to go! @charleskorn do you also want to look it over?
@aknuds1 done, could you review it again? |
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, thank you!
I'm going to let @charleskorn review. I think he's off work until Monday.
Amazing! Thanks |
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 working on this @santileira!
CHANGELOG.md
Outdated
@@ -37,6 +37,7 @@ | |||
* `cortex_ingester_tsdb_block_postings_for_matchers_cache_requests_total` | |||
* `cortex_ingester_tsdb_block_postings_for_matchers_cache_skips_total` | |||
* [ENHANCEMENT] Compactor: Shuffle users' order in `BlocksCleaner`. Prevents bucket indexes from going an extended period without cleanup during compactor restarts. #10513 | |||
* [ENHANCEMENT] Distributor, querier, ingester and store-gateway: Make use of LabelHints.Limit for label names and values requests. #10410 |
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 would phrase this in terms a user would understand: something like "add support for limit
parameter for label names and values requests"
Done! @charleskorn could you review it again? Thanks |
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 @santileira!
You are welcome! |
What this PR does
Make use of
LabelHints.Limit
forLabelNames
andLabelValues
on the StoreGatewayClient, Distributor and Ingester.Which issue(s) this PR fixes or relates to
Fixes #8805
Checklist
CHANGELOG.md
updated - the order of entries should be[CHANGE]
,[FEATURE]
,[ENHANCEMENT]
,[BUGFIX]
.about-versioning.md
updated with experimental features.