prometheus/scrape
Owen Williams 6566c5a2b3
scrape: Add config option for escaping scheme request. (#16066)
The new metric_name_escaping_scheme config option works in parallel with metric_name_validation_scheme and controls which escaping scheme is requested when scraping. When not specified, the scheme will request underscores if the validation scheme is set to legacy, and will request allow-utf-8 when the validation scheme is set to utf8. This setting allows users to allow utf8 names if they like, but explicitly request an escaping scheme rather than UTF-8.

Fixes https://github.com/prometheus/prometheus/issues/16034

Built on https://github.com/prometheus/prometheus/pull/16080

Signed-off-by: Owen Williams <owen.williams@grafana.com>
2025-03-26 18:27:28 -04:00
..
testdata Include test CA text info (#14699) 2024-08-20 19:41:02 +02:00
clientprotobuf.go chore: enable gci linter (#16245) 2025-03-22 15:46:13 +00:00
helpers_test.go refactor: use a more straightforward return value (#16070) 2025-02-24 12:25:57 +00:00
manager_test.go chore: enable gci linter (#16245) 2025-03-22 15:46:13 +00:00
manager.go ref: JSONFileLogger slog handler, add scrape.FailureLogger interface 2024-11-28 23:14:31 -05:00
metrics.go Scraping: add metric for symbol table size 2024-07-05 10:16:22 +01:00
scrape_test.go scrape: Add config option for escaping scheme request. (#16066) 2025-03-26 18:27:28 -04:00
scrape.go scrape: Add config option for escaping scheme request. (#16066) 2025-03-26 18:27:28 -04:00
target_test.go chore: enable unused-parameter from revive 2025-02-19 19:50:28 +01:00
target.go scrape: Fix metadata in WAL not working for histograms and summaries. 2025-01-15 20:12:38 +00:00