prometheus/storage/remote/otlptranslator/prometheus
Arthur Silva Sens 5fdec31401
otlp/translator: Use separate function for metric names with UTF8 characters (#15664)
BuildCompliantName was renamed to BuildCompliantMetricName, and it no longer takes UTF8 support into consideration. It focuses on building a metric name that follows Prometheus conventions.

A new function, BuildMetricName, was added to optionally add unit and type suffixes to OTLP metric names without translating any characters to underscores(_).
2025-01-06 11:30:39 -03:00
..
metric_name_builder.go otlp/translator: Use separate function for metric names with UTF8 characters (#15664) 2025-01-06 11:30:39 -03:00
metric_name_builder_test.go otlp/translator: Use separate function for metric names with UTF8 characters (#15664) 2025-01-06 11:30:39 -03:00
normalize_label.go OTLP receiver: Don't call NormalizeLabel in NoUTF8EscapingWithSuffixes mode 2024-12-04 17:01:08 +01:00
normalize_label_test.go OTLP receiver: Don't call NormalizeLabel in NoUTF8EscapingWithSuffixes mode 2024-12-04 17:01:08 +01:00
testutils_test.go otlptranslator: Add tests for BuildCompliantName 2024-07-24 18:17:56 +02:00
unit_to_ucum.go [PRW 2.0] Merging remote-write-2.0 feature branch to main (PRW 2.0 support + metadata in WAL) (#14395) 2024-07-04 14:29:20 -07:00