-
Notifications
You must be signed in to change notification settings - Fork 843
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Append unit to prometheus metric names #4390
Comments
Related spec issue. |
I would like to take this up, if that's ok. |
Just to confirm, since the link in the original description is broken, Prometheus and OpenMetrics Compatibility is the portion of the spec that needs to be followed to address this issue, correct ? |
Based on the semantic conventions in the spec document, I just wanted to confirm as to what should be the approach if user has a unit named So in this case, we do drop the unit altogether, meaning no-op, is this correct ? |
That is considered unitless in prometheus, so we should drop units (at the portion within the brackets) with |
The spec requires that unit be appended to the metric name as a suffix. We don't do that anywhere today. I believe that would represent a breaking behavior change for prometheus users as their metric names would change when unit is present.
Still, would be good to do that soon to minimize the impact.
Originally posted by @jack-berg in #4386 (comment)
The text was updated successfully, but these errors were encountered: