Skip to content

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.

3 participants