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

Add a histogram to observe wait time when kicking off mergeQuerier jobs #7209

Merged
merged 4 commits into from
Mar 22, 2024

Conversation

chencs
Copy link
Contributor

@chencs chencs commented Jan 24, 2024

What this PR does

This PR adds a native histogram to the mergeQuerier, which observes the time it takes for each upstream querier job to start.

Which issue(s) this PR fixes or relates to

For users running many tenants, it is possible for the mergeQuerier to need to kick off many jobs (code), limited to only tenant-federation.max-concurrent jobs in parallel. Recording wait time at this point will hopefully give the user insight into whether tenant-federation.max-concurrent should be tuned.

Checklist

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

@chencs chencs force-pushed the casie/add-metric-to-merge-querier branch 2 times, most recently from 6c28341 to c22bf08 Compare January 31, 2024 20:12
@chencs chencs force-pushed the casie/add-metric-to-merge-querier branch from c22bf08 to a5120cb Compare February 27, 2024 00:04
@duricanikolic
Copy link
Contributor

The CHANGELOG has just been cut to prepare for the next Mimir release. Please rebase main and eventually move the CHANGELOG entry added / updated in this PR to the top of the CHANGELOG document. Thanks!

@chencs chencs force-pushed the casie/add-metric-to-merge-querier branch from a5120cb to cffa15c Compare March 20, 2024 23:08
@chencs chencs marked this pull request as ready for review March 21, 2024 23:53
@chencs chencs requested a review from a team as a code owner March 21, 2024 23:53
CHANGELOG.md Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
pkg/querier/tenantfederation/merge_queryable.go Outdated Show resolved Hide resolved
@chencs chencs requested a review from charleskorn March 22, 2024 03:44
Copy link
Contributor

@charleskorn charleskorn left a comment

Choose a reason for hiding this comment

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

LGTM

@chencs chencs merged commit f772c23 into main Mar 22, 2024
29 checks passed
@chencs chencs deleted the casie/add-metric-to-merge-querier branch March 22, 2024 17:46
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.

None yet

3 participants