Package org.apache.pekko.cluster.metrics
Class StandardMetrics
java.lang.Object
org.apache.pekko.cluster.metrics.StandardMetrics
Definitions of the built-in standard metrics.
The following extractors and data structures makes it easy to consume the
NodeMetrics in for example load balancers.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic classstatic final classstatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final StringSum of User + Sys + Nice + Wait.static final StringCpuIdle()Amount of CPU time left after combined and stolen are removed.static final StringThe amount of CPU 'stolen' from this virtual machine by the hypervisor for other tasks (such as running another virtual machine).static StandardMetrics.CpuextractCpu(NodeMetrics nodeMetrics) static StandardMetrics.HeapMemoryextractHeapMemory(NodeMetrics nodeMetrics) static final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String
-
Constructor Details
-
StandardMetrics
public StandardMetrics()
-
-
Method Details
-
HeapMemoryUsed
-
HeapMemoryCommitted
-
HeapMemoryMax
-
SystemLoadAverage
-
Processors
-
CpuCombined
Sum of User + Sys + Nice + Wait. See `org.hyperic.sigar.CpuPerc` -
CpuStolen
The amount of CPU 'stolen' from this virtual machine by the hypervisor for other tasks (such as running another virtual machine). -
CpuIdle
Amount of CPU time left after combined and stolen are removed. -
extractHeapMemory
-
extractCpu
-