promql/parser/prettier_rules.md
This files contains rules for prettifying PromQL expressions.
Note: The current version of prettier does not preserve comments.
max_characters_per_line: Maximum number of characters that will be allowed on a single line in a prettified PromQL expression.
max_characters_per_line will qualify for split unless
MatrixSelectorVectorSelector. Label sets in a VectorSelector will be in the same line as metric_name, separated by commas and a space
Note: Label groupings like by, without, on, ignoring will remain on the same line as their parent nodemax_characters_per_linesum(expression) without (label_matchers) will be modified to sum without(label_matchers) (expression)max_characters_per_line