eclipse / microprofile-metrics

microprofile-metrics
Apache License 2.0
100 stars 66 forks source link

Extend the list of required memory related metrics #609

Open siruslan opened 4 years ago

siruslan commented 4 years ago

At the moment only Heap (Used, Committed, Max) metrics are mandatory, but very often JVM consumes significant amount of memory in non-heap area. It's possible to get this data via same MBean approach. I suggest to extend the required metrics with NonHeap (Used, Committed, Max) information.

Also, there is a required cpu.availableProcessors. Then it makes sense to add os.memoryTotal based on Runtime.getRuntime().totalMemory().