prometheus/web/ui/mantine-ui/src/promql
Julius Volz c861b31b72 Support UTF-8 metric names and labels in web UI
Fixes most of https://github.com/prometheus/prometheus/issues/15202

This should address all areas of the UI except for the autocompletion in the
codemirror-promql text editor. The strategy here is that any time we print or
internally serialize (like for the PromLens tree view) either a metric name or
a label name as part of a selector or in other relevant parts of PromQL, we
check whether it contains characters beyond what was previously supported, and
if so, quote and escape it. In the case of metric names, we also have to move
them from the beginning of the selector into the curly braces.

Signed-off-by: Julius Volz <julius.volz@gmail.com>
2024-10-29 20:22:52 +01:00
..
tools Update UI tools Go version again to match rest of Prometheus 2024-09-06 22:08:09 +02:00
ast.ts Make linter run by upgrading the ESLint config 2024-09-06 20:35:55 +02:00
binOp.test.ts PromQL explain view: Support set operators 2024-09-16 18:03:08 +02:00
binOp.ts PromQL explain view: Support set operators 2024-09-16 18:03:08 +02:00
format.tsx Support UTF-8 metric names and labels in web UI 2024-10-29 20:22:52 +01:00
functionDocs.tsx promql: rename holt_winters to double_exponential_smoothing 2024-09-19 15:29:01 +02:00
functionMeta.ts promql: rename holt_winters to double_exponential_smoothing 2024-09-19 15:29:01 +02:00
functionSignatures.ts promql: rename holt_winters to double_exponential_smoothing 2024-09-19 15:29:01 +02:00
serialize.ts Support UTF-8 metric names and labels in web UI 2024-10-29 20:22:52 +01:00
serializeAndFormat.test.ts Support UTF-8 metric names and labels in web UI 2024-10-29 20:22:52 +01:00
utils.test.ts Add PromQL logic code and labels explorer from PromLens, add testing deps 2024-09-02 13:45:36 +02:00
utils.ts Support UTF-8 metric names and labels in web UI 2024-10-29 20:22:52 +01:00