Replies: 5 comments 7 replies
-
seems raisonable |
Beta Was this translation helpful? Give feedback.
-
When you say "submitting to Prometheus", as you referring to the exposition format at the |
Beta Was this translation helpful? Give feedback.
-
How will the OTEL push flow be impacted by this? Will these payloads still contain the |
Beta Was this translation helpful? Give feedback.
-
Would it maybe make sense to just avoid this whole issue, by not using the |
Beta Was this translation helpful? Give feedback.
-
After looking through the draft 1.0 spec I found that this is already part of it: autometrics-shared/specs/autometrics_v1.0.0.md Lines 75 to 77 in 7409f02 |
Beta Was this translation helpful? Give feedback.
-
I noticed the draft spec contains both OpenTelemetry and Prometheus specifications for all metric names. Most notably, OpenTelemetry metric names use
.
as a separator, while Prometheus metric names use_
. The Prometheus ones also sometimes have suffixes added.The reason for this dual-naming is because Prometheus conventions are codified in the OpenMetrics standard. For anyone curious to dive into the rabbit hole, we've had a previous OpenTelemetry vs OpenMetrics discussion on this: https://github.com/orgs/autometrics-dev/discussions/37
Unfortunately, we haven't considered this situation with regards to labels yet. Labels use
.
as separator in the draft spec, which is great according to OpenTelemetry, but is forbidden according to the OpenMetrics ABNF. Our current clients also use underscores as separators AFAIK, so they're de-facto following OpenMetrics today.Fortunately, my recommendation would be simple: We keep the Autometrics draft spec as is, but suggest that all dots (
.
) in label names should be replaced with underscores (_
) when submitting to Prometheus.Beta Was this translation helpful? Give feedback.
All reactions