1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2026-06-03 18:35:08 +02:00
Files
opentelemetry-go/exporters/prometheus/testdata/counter_utf8.txt
T
Owen Williams d0cab8666b prometheus: Add support for setting Translation Strategy config option (#7111)
As per the specification:
https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/sdk_exporters/prometheus.md#configuration

This is part of a broader effort to unify the behavior of all the touch
points between open telemetry metrics and prometheus:
https://github.com/prometheus/prometheus/issues/16542

Fixes https://github.com/open-telemetry/opentelemetry-go/issues/6668

---------

Signed-off-by: Owen Williams <owen.williams@grafana.com>
Co-authored-by: Robert Pająk <pellared@hotmail.com>
2025-08-27 13:56:14 -04:00

8 lines
742 B
Plaintext
Executable File

# HELP "my.dotted.namespace_foo.things_seconds_total" a simple counter
# TYPE "my.dotted.namespace_foo.things_seconds_total" counter
{"my.dotted.namespace_foo.things_seconds_total","A.G"="B","C.H"="D","E.I"="true","F.J"="42",otel_scope_fizz="buzz",otel_scope_name="testmeter",otel_scope_schema_url="",otel_scope_version="v0.1.0"} 24.3
{"my.dotted.namespace_foo.things_seconds_total","A.G"="D","C.H"="B","E.I"="true","F.J"="42",otel_scope_fizz="buzz",otel_scope_name="testmeter",otel_scope_schema_url="",otel_scope_version="v0.1.0"} 5
# HELP target_info Target metadata
# TYPE target_info gauge
target_info{"service.name"="prometheus_test","telemetry.sdk.language"="go","telemetry.sdk.name"="opentelemetry","telemetry.sdk.version"="latest"} 1