PrettyQL
PromQL, LogQL & GraphQL Formatter
Settings
☾
PromQL
LogQL
GraphQL
Format
Minify
Examples
PromQL
sum by (status) (rate(http_requests_total...))
histogram_quantile(0.95, sum by (le) ...)
label_replace(...) * on(node) group_left(...)
max by (ns) (sum/limits cpu ratio)
LogQL
line filter + json + line_format
sum by (level) (count_over_time(... |~ error))
quantile_over_time(... | unwrap latency)
logfmt + label_format pipeline
GraphQL
nested selection set
variables + fragment
mutation
directives @include/@skip
Share Link
Open in Grafana
Ctrl+Enter to format
Input
Clear
Output
Copy
Formatted query will appear here
Grafana Settings
Grafana Base URL
Datasource name (optional)
Cancel
Save