prometheus / client_java

Prometheus instrumentation library for JVM applications

Home Page:http://prometheus.github.io/client_java/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

process_cpu_seconds_total should be scaled from nano's, not milli's

yrn1 opened this issue · comments

In io.prometheus.metrics.instrumentation.jvm.ProcessMetrics, the value returned from callLongGetter("getProcessCpuTime", osBean) is in nanoseconds, but is scaled with Unit.millisToSeconds(processCpuTime)

Thanks a lot! Fixed in #882.