prometheus/promql/parser
Owen Williams a28d7865ad UTF-8: Add support for parsing UTF8 metric and label names
This adds support for the new grammar of `{"metric_name", "l1"="val"}` to promql and some of the exposition formats.
This grammar will also be valid for non-UTF-8 names.
UTF-8 names will not be considered valid unless model.NameValidationScheme is changed.

This does not update the go expfmt parser in text_parse.go, which will be addressed by https://github.com/prometheus/common/issues/554/.

Part of https://github.com/prometheus/prometheus/issues/13095

Signed-off-by: Owen Williams <owen.williams@grafana.com>
2024-02-15 14:34:37 -05:00
..
posrange Add warnings (and annotations) to PromQL query results (#12152) 2023-09-14 18:57:31 +02:00
ast.go ci(lint): enable nolintlint and remove redundant comments (#12926) 2023-10-31 12:35:13 +01:00
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 UTF-8: Add support for parsing UTF8 metric and label names 2024-02-15 14:34:37 -05:00
lex.go Enable default revive rules (#13068) 2023-11-29 17:23:34 +00:00
lex_test.go Refactor lexer tests to use testify. 2024-02-01 13:51:31 +00:00
parse.go UTF-8: Add support for parsing UTF8 metric and label names 2024-02-15 14:34:37 -05:00
parse_test.go UTF-8: Add support for parsing UTF8 metric and label names 2024-02-15 14:34:37 -05:00
prettier.go Adds support for prettifying PromQL expression (#10544) 2022-07-07 18:13:36 +05:30
prettier_rules.md Adds support for prettifying PromQL expression (#10544) 2022-07-07 18:13:36 +05:30
prettier_test.go Prettifier: Add spaces with non-callable keywords (#11005) 2022-07-15 00:09:56 +02:00
printer.go style: Replace else if cascades with switch 2023-04-19 17:22:31 +02:00
printer_test.go Prettifier: Add spaces with non-callable keywords (#11005) 2022-07-15 00:09:56 +02:00
value.go promql: use explicit type declare instead of string. (#7716) 2020-08-02 09:57:38 +01:00