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

chore(blooms): Various fixes in blooms read path #12036

Merged
merged 3 commits into from
Feb 22, 2024
Merged

chore(blooms): Various fixes in blooms read path #12036

merged 3 commits into from
Feb 22, 2024

Conversation

chaudum
Copy link
Contributor

@chaudum chaudum commented Feb 22, 2024

What this PR does / why we need it:

  • Wire up bloom querier metrics to fix nil pointer panic
  • Use bloomutils.TokenRangesForInstance instead of subRing.GetTokenRangesForInstance to avoid zone not set error

Signed-off-by: Christian Haudum <christian.haudum@gmail.com>
Signed-off-by: Christian Haudum <christian.haudum@gmail.com>
@chaudum chaudum requested a review from a team as a code owner February 22, 2024 12:22
func NewQuerier(c Client, r prometheus.Registerer, logger log.Logger) *BloomQuerier {
return &BloomQuerier{
c: c,
metrics: newQuerierMetrics(r, constants.Loki, "bloom_gateway_querier"),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add string as constant?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can do, but it's really only used here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Signed-off-by: Christian Haudum <christian.haudum@gmail.com>
@chaudum chaudum enabled auto-merge (squash) February 22, 2024 12:32
@chaudum chaudum merged commit dbea8ba into main Feb 22, 2024
11 checks passed
@chaudum chaudum deleted the chaudum/fixes branch February 22, 2024 12:41
onelapahead pushed a commit to onelapahead/loki that referenced this pull request Feb 22, 2024
* Wire up bloom querier metrics to fix nil pointer panic
* Use `bloomutils.TokenRangesForInstance` instead of `subRing.GetTokenRangesForInstance` to avoid `zone not set` error

Signed-off-by: Christian Haudum <christian.haudum@gmail.com>
onelapahead pushed a commit to onelapahead/loki that referenced this pull request Feb 22, 2024
* Wire up bloom querier metrics to fix nil pointer panic
* Use `bloomutils.TokenRangesForInstance` instead of `subRing.GetTokenRangesForInstance` to avoid `zone not set` error

Signed-off-by: Christian Haudum <christian.haudum@gmail.com>
rhnasc pushed a commit to inloco/loki that referenced this pull request Apr 12, 2024
* Wire up bloom querier metrics to fix nil pointer panic
* Use `bloomutils.TokenRangesForInstance` instead of `subRing.GetTokenRangesForInstance` to avoid `zone not set` error

Signed-off-by: Christian Haudum <christian.haudum@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants