client_java icon indicating copy to clipboard operation
client_java copied to clipboard

Add "jvm_compilation_time_total" counter (CompilationMXBean.getTotalCompilationTime)

Open rainerjung opened this issue 4 years ago • 5 comments
trafficstars

The subject says it all. It is one of the few missing metrics from the standard platform MBeans.

rainerjung avatar May 06 '21 11:05 rainerjung

Hi thanks a lot for your PRs. I saw them, and I will get back to this as soon as I found time to test this with different Java versions (IBM's J9, etc.).

fstab avatar May 10 '21 20:05 fstab

@rainerjung are you planning on implementing the suggestions? ... if not, I'll submit a PR based on your work and the suggestions.

dhoard avatar Jul 05 '22 18:07 dhoard

@dhoard If you could pick up the ball, that would be really great! Thank you!

rainerjung avatar Jul 05 '22 18:07 rainerjung

@rainerjung new PR https://github.com/prometheus/client_java/pull/798 create.

Since getTotalCompilationTime() returns milliseconds, I chose to expose the value as is.

dhoard avatar Jul 05 '22 18:07 dhoard

@rainerjung please close this PR since I have picked up the work. Thanks!

dhoard avatar Jul 06 '22 01:07 dhoard