fix metric_name_escaping_scheme option (#16625)

This commit is contained in:
dongjiang 2025-05-24 20:25:39 +08:00 committed by GitHub
parent 546b1d242e
commit 8d9332c199
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -481,7 +481,7 @@ metric_relabel_configs:
# Specifies the validation scheme for metric and label names. Either blank or
# "utf8" for full UTF-8 support, or "legacy" for letters, numbers, colons, and
# underscores.
[ metric_name_validation_scheme <string> | default "utf8" ]
[ metric_name_validation_scheme: <string> | default "utf8" ]
# Specifies the character escaping scheme that will be requested when scraping
# for metric and label names that do not conform to the legacy Prometheus
@ -497,7 +497,7 @@ metric_relabel_configs:
# If this value is left blank, Prometheus will default to `allow-utf-8` if the
# validation scheme for the current scrape config is set to utf8, or
# `underscores` if the validation scheme is set to `legacy`.
[ metric_name_validation_scheme <string> | default "utf8" ]
[ metric_name_escaping_scheme: <string> | default "allow-utf-8" ]
# Limit on total number of positive and negative buckets allowed in a single
# native histogram. The resolution of a histogram with more buckets will be