-
Notifications
You must be signed in to change notification settings - Fork 945
JMX Metrics with yaml: needed unit conversion mechanism #13369
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
Comments
I have a slight preference for option 3 for the following reasons:
|
Also, one thing that was briefly mentioned in the SIG meeting is that when modifying existing metrics changing their unit (and the captured values) would be considered to be a breaking change, and could also imply changing their metric names to prevent unexpected results. |
I'm too leaning towards option 3. Besides what was already mentioned - it seems to be the easiest to implement. |
@robsunday as #13448 is now merged I'll chose this. |
Many JMX enabled applications provides duration metrics with milliseconds unit, while semconv recommends using seconds.
Unit conversion mechanism is needed in order to fully support semconv. This mechanism must be usable from JMX metrics definition YAML files.
The final solution will be discussed, however there are some proposals already:
unitConverted
YAML key that would replaceunit
wherever conversion is needed. It should take a value from predefined enumeration of possible conversions, likems_to_s
,ns_to_s
, etc.unitConverted
YAML key but with different syntax. It would have 2 nested key/values:from
indicating unit reported by the application, andto
indicating required target unit.sourceUnit
YAML tag that would indicate that there should be a conversion performed from this unit to the one specified inunit
tag.if requested unit conversion is not possible then error should be reported after YAML file is loaded.
The text was updated successfully, but these errors were encountered: