prometheus/model/labels
Owen Williams 8d4bcd2c77 promql: Fix various UTF-8 bugs related to quoting
Fixes UTF-8 aggregator label list items getting mutated with quote marks when String-ified.
Fixes quoted metric names not supported in metric declarations.
Fixes UTF-8 label names not being quoted when String-ified.

Fixes https://github.com/prometheus/prometheus/issues/15470
Fixes https://github.com/prometheus/prometheus/issues/15528

Signed-off-by: Owen Williams <owen.williams@grafana.com>
Co-authored-by: Bryan Boreham <bjboreham@gmail.com>
2024-12-04 14:18:59 -05:00
..
labels.go lint: Revamp our linting rules, mostly around doc comments 2024-08-22 17:36:11 +02:00
labels_common.go promql: Fix various UTF-8 bugs related to quoting 2024-12-04 14:18:59 -05:00
labels_dedupelabels.go Labels: use single byte as separator - small speedup 2024-07-15 09:47:16 +01:00
labels_dedupelabels_test.go [PERF] Labels: faster varint for dedupelabels 2024-06-21 11:57:09 +01:00
labels_stringlabels.go Neater string vs byte-slice conversions (#14425) 2024-09-21 12:19:21 +02:00
labels_test.go promql: Fix various UTF-8 bugs related to quoting 2024-12-04 14:18:59 -05:00
matcher.go Fix Matcher.String() with empty label name 2024-06-13 18:46:35 +02:00
matcher_test.go Quote label name in matchers when needed 2024-05-08 16:58:51 +02:00
regexp.go FastRegexMatcher: use stack memory for lowercase copy of string 2024-10-28 16:28:58 +00:00
regexp_test.go FastRegexMatcher: use stack memory for lowercase copy of string 2024-10-28 16:28:58 +00:00
sharding.go Labels: use single byte as separator - small speedup 2024-07-15 09:47:16 +01:00
sharding_dedupelabels.go Labels: use single byte as separator - small speedup 2024-07-15 09:47:16 +01:00
sharding_stringlabels.go Labels: use single byte as separator - small speedup 2024-07-15 09:47:16 +01:00
sharding_test.go Add ShardedPostings() support to TSDB (#10421) 2024-01-29 11:57:27 +00:00
test_utils.go Labels: Call NewScratchBuilder in test_utils 2024-02-23 13:50:27 +00:00