Skip to content

fix(otlp_output): parse RFC 7951 numeric JSON strings as metric values#893

Open
Mesverrum wants to merge 1 commit into
openconfig:mainfrom
Mesverrum:fix/otlp-numeric-json-ietf-strings
Open

fix(otlp_output): parse RFC 7951 numeric JSON strings as metric values#893
Mesverrum wants to merge 1 commit into
openconfig:mainfrom
Mesverrum:fix/otlp-numeric-json-ietf-strings

Conversation

@Mesverrum

Copy link
Copy Markdown

This change aligns the OTEL output with the way the Prometheus output works.

json_ietf encodes YANG uint64/int64/decimal64 as JSON strings. The OTLP converter previously treated every string as an enum (value=1 + value attribute), causing wrong Prom values and label cardinality explosion. Prefer numeric datapoints when the string parses, matching prometheus_output.

json_ietf encodes YANG uint64/int64/decimal64 as JSON strings. The OTLP
converter previously treated every string as an enum (value=1 + value
attribute), causing wrong Prom values and label cardinality explosion.
Prefer numeric datapoints when the string parses, matching prometheus_output.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant