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

update Mimir / Reads and Remote Ruler Reads dashboard with query scheduler metrics #10290

Merged

Conversation

francoposa
Copy link
Member

@francoposa francoposa commented Dec 20, 2024

What this PR does

Introduces a dashboard panel row showing the cortex_query_scheduler_querier_inflight_requests by query component against the total cortex_query_scheduler_connected_querier_clients metric.

The cortex_query_scheduler_querier_inflight_requests is a Summary metric designed to capture the peak utilization of the query-scheduler <-> querier connections with inflight query processing in order to help identify saturation of the ingesters or store-gateways. The summary metric's lower percentiles are not particularly useful.

It also updates some of the tooltip descriptions about the query scheduler rows to be more accurate to the new design.

image

Which issue(s) this PR fixes or relates to

Fixes #

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.

@francoposa francoposa marked this pull request as ready for review December 26, 2024 19:30
@francoposa francoposa requested review from tacole02 and a team as code owners December 26, 2024 19:30
@francoposa francoposa changed the title update Mimir / Reads dashboard with query scheduler metrics update Mimir / Reads and Remote Ruler Reads dashboard with query scheduler metrics Dec 26, 2024
Copy link
Contributor

@tacole02 tacole02 left a comment

Choose a reason for hiding this comment

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

Docs look great, thank you for updating! Let me know if you'd like me to review any specific tooltip text.

docs/sources/mimir/manage/mimir-runbooks/_index.md Outdated Show resolved Hide resolved
docs/sources/mimir/manage/mimir-runbooks/_index.md Outdated Show resolved Hide resolved
docs/sources/mimir/manage/mimir-runbooks/_index.md Outdated Show resolved Hide resolved
docs/sources/mimir/manage/mimir-runbooks/_index.md Outdated Show resolved Hide resolved
docs/sources/mimir/manage/mimir-runbooks/_index.md Outdated Show resolved Hide resolved
docs/sources/mimir/manage/mimir-runbooks/_index.md Outdated Show resolved Hide resolved
docs/sources/mimir/manage/mimir-runbooks/_index.md Outdated Show resolved Hide resolved
docs/sources/mimir/manage/mimir-runbooks/_index.md Outdated Show resolved Hide resolved
docs/sources/mimir/manage/mimir-runbooks/_index.md Outdated Show resolved Hide resolved
$.queryPanel(
[
'sum by(query_component) (cortex_query_scheduler_querier_inflight_requests{quantile="0.99", %s})' % [$.jobMatcher(querySchedulerJobName)],
'cortex_query_scheduler_connected_querier_clients',
Copy link
Contributor

Choose a reason for hiding this comment

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

I think there's a typo here:

  1. cortex_query_scheduler_connected_querier_clients needs a label selector (ie. via the jobMatcher)
  2. we should probably aggregate it with sum to compare it with p99's metrics

Copy link
Member Author

Choose a reason for hiding this comment

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

great catch, fixed!

Copy link
Contributor

@dimitarvdimitrov dimitarvdimitrov left a comment

Choose a reason for hiding this comment

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

it feels like this belongs better in the "queries" dashboard; otherwise, the change looks good

@francoposa francoposa force-pushed the francoposa/dashboard-scheduler-querier-inflight-requests branch from cd09db9 to 6dd7d24 Compare January 2, 2025 23:39
@francoposa francoposa merged commit f5a03c1 into main Jan 3, 2025
31 checks passed
@francoposa francoposa deleted the francoposa/dashboard-scheduler-querier-inflight-requests branch January 3, 2025 00:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants