prometheus/promql/parser
Oleg Zaytsev dabd789fd5
Quote label name in matchers when needed
When the label name of a matcher contains non-standard characters, like
a dot, or starts with a digit, it should be quoted.

If it's not quoted, then `VectorSelector.String()` isn't a valid PromQL.

Signed-off-by: Oleg Zaytsev <mail@olegzaytsev.com>
2024-05-08 16:58:51 +02:00
..
posrange
ast.go
functions.go
generated_parser.y
generated_parser.y.go
lex.go
lex_test.go
parse.go
parse_test.go
prettier.go
prettier_rules.md
prettier_test.go
printer.go
printer_test.go
value.go