prometheus/model/labels
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
..
labels_common.go labels: optimize String method (#13673) 2024-03-12 11:34:03 +00:00
labels_dedupelabels.go Move from golang.org/x/exp/slices into slices now that we only support Go >= 1.21 2024-02-28 14:54:53 +01:00
labels_stringlabels.go Improve readability 2024-03-18 11:16:09 +01:00
labels_test.go golangci-lint: enable usestdlibvars linter 2024-04-08 19:26:23 +00:00
labels.go [BUGFIX] labels: don't modify original labels in DropMetricName (#13845) 2024-03-27 10:35:17 +00:00
matcher_test.go Quote label name in matchers when needed 2024-05-08 16:58:51 +02:00
matcher.go Quote label name in matchers when needed 2024-05-08 16:58:51 +02:00
regexp_test.go Fix FastRegexMatcher matching multibyte runes with . (#14059) 2024-05-07 16:33:37 +02:00
regexp.go Fix FastRegexMatcher matching multibyte runes with . (#14059) 2024-05-07 16:33:37 +02:00
sharding_dedupelabels.go labels: update copyright dates 2024-02-26 11:45:25 +00:00
sharding_stringlabels.go Add ShardedPostings() support to TSDB (#10421) 2024-01-29 11:57:27 +00:00
sharding_test.go Add ShardedPostings() support to TSDB (#10421) 2024-01-29 11:57:27 +00:00
sharding.go Add dedupelabels tag to not build regular labels 2024-02-23 13:50:27 +00:00
test_utils.go Labels: Call NewScratchBuilder in test_utils 2024-02-23 13:50:27 +00:00