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
Prometheus: New instant query results view in Explore #60479
Prometheus: New instant query results view in Explore #60479
Conversation
…etterer to include new type assertions
…UI, matching native prometheus UX to return the permutations of the first attribute
… share implementation with table view
…temsFromDataFrame
…esults-UX-improvements
…esults-UX-improvements
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.
Overall looks good. it'd be nice to use more theme tokens instead of hardcoded values if possible. i've left a few more (easy) comments for things i missed when i first reviewed it, if we can fix them then i think we are good to go 🚀
public/app/features/explore/PrometheusListView/ItemValues.test.tsx
Outdated
Show resolved
Hide resolved
public/app/features/explore/PrometheusListView/RawListContainer.tsx
Outdated
Show resolved
Hide resolved
public/app/features/explore/PrometheusListView/RawListItemAttributes.tsx
Outdated
Show resolved
Hide resolved
public/app/features/explore/PrometheusListView/RawListItemAttributes.tsx
Outdated
Show resolved
Hide resolved
Co-authored-by: Giordano Ricci <me@giordanoricci.com>
Co-authored-by: Giordano Ricci <me@giordanoricci.com>
Co-authored-by: Giordano Ricci <me@giordanoricci.com>
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.
LGTM! 🚀
…esults-UX-improvements__temp-value-navigation
What this PR does / why we need it:
Addresses concerns with UI in explorer with instant prometheus results.
#32475
This PR adds a new option to the datasources to present a "Raw" prometheus view, which presents prometheus specific UI in addition to the table view and lets users toggle between them. This new view is the default for prometheus instant query results.
TLDR:
Users want to be able to copy and paste prometheus results, and the table view is almost unusable for large queries, which is pushing people to the vanilla prometheus UI.
Which issue(s) this PR fixes:
#32475
But note this PR does not add any functionality for searching through results using browser search, the component introduced in this PR is virtualized, and thus will not be searchable via native browser search. We will create another issue to deal with making query results searchable, and only deal with the other usability concerns surfaced in that issue.
Fixes #32475
Special notes for your reviewer: