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 promql: add histogram_avg function (#13467) 2024-02-01 18:28:42 +01:00
generated_parser.y UTF-8: Add support for parsing UTF8 metric and label names 2024-02-15 14:34:37 -05:00
generated_parser.y.go parser: remake generated_parser output (#13923) 2024-04-13 12:59:54 +02:00
lex.go Adds Inf and NaN as Numbers to Histogram in Promql Testing Framework (#13916) 2024-04-11 12:53:28 +02:00
lex_test.go Adds Inf and NaN as Numbers to Histogram in Promql Testing Framework (#13916) 2024-04-11 12:53:28 +02:00
parse.go golangci-lint: enable whitespace linter (#13905) 2024-04-11 09:27:54 +01:00
parse_test.go [TESTS] Truncate some long test names, for readability 2024-04-03 10:10:39 +01:00
prettier.go
prettier_rules.md
prettier_test.go
printer.go Fix parser.VectorSelector.String() with empty name matcher (#14015) 2024-05-06 11:51:08 +02:00
printer_test.go Quote label name in matchers when needed 2024-05-08 16:58:51 +02:00
value.go