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 filtering function names to QueryRange (metrics) #3103

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

Conversation

metalmatze
Copy link
Member

@metalmatze metalmatze commented May 10, 2023

The filterByFunction moves from just the flame graph up to the ProfileExplorer (the top bar where a query gets defined). The filter query is used not only by the flame graph but also by the QueryRange (metrics). We should make sure to test with table and call graph (or at least plan to use the same filters in the future too).

There are a few small TODOs left but I wanted to share:

  • Tooltips show NaNns for duration

Here's what filtering for rules for a Prometheus looks like for both CPU Sample and Memory In-Use Bytes:
filter-cpu
filter-heap

@metalmatze metalmatze requested review from a team as code owners May 10, 2023 17:30
Copy link
Contributor

@monicawoj monicawoj left a comment

Choose a reason for hiding this comment

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

Functionality wise looks good to me, but I think the styling/UX can be improved. As is, I'm not sure exactly whether the goal was to make the 'Filter by function' input directly next to the other query filter input or not. The styling seems a little off in terms of spacing and rounding of corners (rounded next to sharp).

Additionally, if the user expands the query filter input, the filter by function input seems out of place.
Screenshot 2023-05-15 at 11 41 33

@metalmatze
Copy link
Member Author

Resizing the matcher textarea now also looks less broken. 😌

filter-size

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.

None yet

2 participants