You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 replace unit wherever conversion is needed. It should take a value from predefined enumeration of possible conversions, like ms_to_s, ns_to_s, etc.
processingTime:
metric: processingTime
type: counter
unitConverted: ms_to_s
desc: Total time for processing all requests
Similar unitConverted YAML key but with different syntax. It would have 2 nested key/values: from indicating unit reported by the application, and to indicating required target unit.
processingTime:
metric: processingTime
type: counter
unitConverted:
from: ms
to: s
desc: Total time for processing all requests
Optional sourceUnit YAML tag that would indicate that there should be a conversion performed from this unit to the one specified in unit tag.
processingTime:
metric: processingTime
type: counter
sourceUnit: ms
unit: s
desc: Total time for processing all requests
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:
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.
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: