Skip to content
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

Open
wants to merge 39 commits into
base: main
Choose a base branch
from

Conversation

santileira
Copy link
Contributor

@santileira santileira commented Jan 12, 2025

What this PR does

Make use of LabelHints.Limit for LabelNames and LabelValues on the StoreGatewayClient, Distributor and Ingester.

Which issue(s) this PR fixes or relates to

Fixes #8805

Checklist

  • Tests updated.
  • Documentation added.
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX].
  • about-versioning.md updated with experimental features.

@santileira santileira changed the title Use LabelHints.Limit Make use of LabelHints.Limit for label names and values requests Jan 18, 2025
@santileira santileira changed the title Make use of LabelHints.Limit for label names and values requests Make use of LabelHints.Limit for LabelNames and LabelValues requests Jan 19, 2025
@santileira santileira marked this pull request as ready for review January 19, 2025 20:09
@santileira santileira requested a review from a team as a code owner January 19, 2025 20:09
@santileira santileira changed the title Make use of LabelHints.Limit for LabelNames and LabelValues requests Make use of LabelHints.Limit for LabelNames and LabelValues requests (#8805) Jan 19, 2025
Copy link
Contributor

@aknuds1 aknuds1 left a 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.

pkg/distributor/distributor.go Outdated Show resolved Hide resolved
pkg/distributor/distributor_test.go Outdated Show resolved Hide resolved
pkg/distributor/distributor_test.go Outdated Show resolved Hide resolved
pkg/distributor/distributor_test.go Outdated Show resolved Hide resolved
pkg/distributor/distributor_test.go Show resolved Hide resolved
pkg/querier/distributor_queryable_test.go Outdated Show resolved Hide resolved
pkg/querier/tenantfederation/merge_queryable_test.go Outdated Show resolved Hide resolved
pkg/querier/tenantfederation/merge_queryable_test.go Outdated Show resolved Hide resolved
pkg/storegateway/bucket.go Outdated Show resolved Hide resolved
pkg/storegateway/bucket.go Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make use of LabelHints.Limit for label names and values requests
2 participants