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: Remove raw query toggle #59069
Prometheus: Remove raw query toggle #59069
Conversation
Drone build failed: https://drone.grafana.net/grafana/grafana-enterprise/42733 |
@itsmylife this was assigned to you, but I stole it to have a quick win I could work on while jet-lagged. Did I miss anything that you and Diego had discussed? |
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 but just a small question
public/app/plugins/datasource/prometheus/querybuilder/components/QueryPreview.tsx
Show resolved
Hide resolved
As part of G10 Getting started with Prometheus Thanks @gtk-grafana! |
What is this feature?
This PR removes the raw query toggle from the Prometheus query builder, and reduces the size/contrast of the raw query section.
Why do we need this feature?
To simplify the query builder. Seeing the raw query is a good way for users to confirm that values selected in the query builder are as expected, even without knowledge of promql, and the ability to hide/remove this section within the query builder is not useful functionality.
Who is this feature for?
First time and existing users of the prometheus query builder.
Which issue(s) does this PR fix?:
Fixes #58626
Special notes for your reviewer:
Can anyone think of a use case where we absolutely don't want to show the raw query text? I guess if people really hate seeing the raw query we could move this configuration to elsewhere in the UI?