-
Notifications
You must be signed in to change notification settings - Fork 215
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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.
ui/packages/shared/profile/src/MetricsGraph/MetricsTooltip/index.tsx
Outdated
Show resolved
Hide resolved
d978611
to
3e95e71
Compare
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:
NaNns
for durationHere's what filtering for
rules
for a Prometheus looks like for both CPU Sample and Memory In-Use Bytes: