promtool promql format 'sum(rate(http_requests_total[5m]))'
Pretty-print a PromQL expression
Reformats a PromQL expression with consistent spacing and indentation so complex queries become readable. It is handy for cleaning up expressions pasted from dashboards. The formatted query prints to standard output without being evaluated.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.