mirror of
https://github.com/open-telemetry/opentelemetry-go.git
synced 2024-12-14 10:13:10 +02:00
bfaff3a097
* sanitize metric names in the prometheus exporter * add changelog entry * fix now invalid comment * replace sanitizeName algorithm with one based on strings.Map * check that digits as first characters are replaced * Update exporters/prometheus/exporter.go Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com> * add missing utf8 import * add explicit tests for sanitizeName * fix testdata with digit prepend Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com> Co-authored-by: Chester Cheung <cheung.zhy.csu@gmail.com>
25 lines
1.0 KiB
Plaintext
25 lines
1.0 KiB
Plaintext
# HELP bar a fun little gauge
|
|
# TYPE bar counter
|
|
bar{A="B",C="D"} 75
|
|
# HELP _0invalid_counter_name a counter with an invalid name
|
|
# TYPE _0invalid_counter_name counter
|
|
_0invalid_counter_name{A="B",C="D"} 100
|
|
# HELP invalid_gauge_name a gauge with an invalid name
|
|
# TYPE invalid_gauge_name counter
|
|
invalid_gauge_name{A="B",C="D"} 100
|
|
# HELP invalid_hist_name a histogram with an invalid name
|
|
# TYPE invalid_hist_name histogram
|
|
invalid_hist_name_bucket{A="B",C="D",le="0"} 0
|
|
invalid_hist_name_bucket{A="B",C="D",le="5"} 0
|
|
invalid_hist_name_bucket{A="B",C="D",le="10"} 0
|
|
invalid_hist_name_bucket{A="B",C="D",le="25"} 1
|
|
invalid_hist_name_bucket{A="B",C="D",le="50"} 0
|
|
invalid_hist_name_bucket{A="B",C="D",le="75"} 0
|
|
invalid_hist_name_bucket{A="B",C="D",le="100"} 0
|
|
invalid_hist_name_bucket{A="B",C="D",le="250"} 0
|
|
invalid_hist_name_bucket{A="B",C="D",le="500"} 0
|
|
invalid_hist_name_bucket{A="B",C="D",le="1000"} 0
|
|
invalid_hist_name_bucket{A="B",C="D",le="+Inf"} 1
|
|
invalid_hist_name_sum{A="B",C="D"} 23
|
|
invalid_hist_name_count{A="B",C="D"} 1
|