PromQL Formatter
Format and validate PromQL (Prometheus Query Language) expressions — consistent indentation and line-breaking for metric selectors, label matchers, functions, binary/aggregation operators, and by/without/on/group_left clauses. Optionally wraps the result as a Prometheus recording rule. Runs entirely in your browser.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
PromQL Query
Indent Width
2, 4, tab Max Line Length
40 <= x <= 240Always break aggregation, function args, and label matchers onto separate lines
Wrap output as a Prometheus recording rule (YAML)
Recording rule name
Response
Tool output
The tool's slug, echoing the {slug} in the request path.
Output-contract version for this tool.
Credits this call consumed, after any settlement refund. 0 when metering is disabled.
Credits left in the current monthly allowance, or null when metering is disabled.
Correlation id, also sent as x-request-id.