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

Dashboards: add 'Read path' selector to 'Mimir / Queries' dashboard #8878

Merged
merged 4 commits into from
Aug 27, 2024

Conversation

pracucci
Copy link
Collaborator

@pracucci pracucci commented Aug 1, 2024

What this PR does

The Queries dashboard doesn't offer a consistent view over queries. As supported by the OSS jsonnet, at Grafana Labs we currently have 2 read path stacks:

  • one for user queries
  • one for Mimir rule evaluations

The panels in the Queries dashboard show a mix of the two. For components shared between the 2 read stacks (ingesters and store-gateways) we show metrics related to all queries. For components specific to a stack, we don't query ruler-* components, so we miss rule evaluations from Queries dashboard. This is confusing to me.

The easy solution would be to always add ruler-* components to the query, but after a quick internal feedback loop looks like there's people liking the ability to see metrics for a specific read path (I see value as well).

In this PR I'm proposing to add a "Read path" selector to the Queries dashboard. It has 3 options:

  • All
  • Main
  • Remote ruler

Note: I'm looking for better option names, any suggestion?

Here you can see a video of the selector in action:

demo.mov

Which issue(s) this PR fixes or relates to

N/A

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.

@pracucci pracucci requested a review from a team as a code owner August 1, 2024 13:08
@pracucci
Copy link
Collaborator Author

pracucci commented Aug 1, 2024

If we agree on the approach, then I will spend a week or so fixing the linter 😠

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 modulo typo

operations/mimir-mixin/config.libsonnet Outdated Show resolved Hide resolved
@charleskorn
Copy link
Contributor

Note: I'm looking for better option names, any suggestion?

Perhaps "user" rather than "standard"? It's still not perfect, but might be a bit clearer

@pracucci pracucci force-pushed the add-read-path-filter-in-queries-dashboard branch from 64bf569 to a50052e Compare August 19, 2024 07:34
Signed-off-by: Marco Pracucci <marco@pracucci.com>
Signed-off-by: Marco Pracucci <marco@pracucci.com>
Signed-off-by: Marco Pracucci <marco@pracucci.com>
Signed-off-by: Marco Pracucci <marco@pracucci.com>
@pracucci pracucci force-pushed the add-read-path-filter-in-queries-dashboard branch from 0ae18a0 to 6fb2db8 Compare August 27, 2024 14:31
@pracucci
Copy link
Collaborator Author

Note: I'm looking for better option names, any suggestion?

Perhaps "user" rather than "standard"? It's still not perfect, but might be a bit clearer

Discussed offline. Charles offered few better options, I picked "main".

@pracucci pracucci merged commit 5455b8c into main Aug 27, 2024
31 checks passed
@pracucci pracucci deleted the add-read-path-filter-in-queries-dashboard branch August 27, 2024 14:44
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.

2 participants