Package akka.cluster.metrics
Class StandardMetrics
- java.lang.Object
-
- akka.cluster.metrics.StandardMetrics
-
public class StandardMetrics extends java.lang.Object
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 Classes Modifier and Type Class Description static class
StandardMetrics.Cpu
static class
StandardMetrics.Cpu$
static class
StandardMetrics.HeapMemory
static class
StandardMetrics.HeapMemory$
-
Constructor Summary
Constructors Constructor Description StandardMetrics()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
CpuCombined()
Sum of User + Sys + Nice + Wait.static java.lang.String
CpuIdle()
Amount of CPU time left after combined and stolen are removed.static java.lang.String
CpuStolen()
The amount of CPU 'stolen' from this virtual machine by the hypervisor for other tasks (such as running another virtual machine).static StandardMetrics.Cpu
extractCpu(NodeMetrics nodeMetrics)
static StandardMetrics.HeapMemory
extractHeapMemory(NodeMetrics nodeMetrics)
static java.lang.String
HeapMemoryCommitted()
static java.lang.String
HeapMemoryMax()
static java.lang.String
HeapMemoryUsed()
static java.lang.String
Processors()
static java.lang.String
SystemLoadAverage()
-
-
-
Method Detail
-
HeapMemoryUsed
public static final java.lang.String HeapMemoryUsed()
-
HeapMemoryCommitted
public static final java.lang.String HeapMemoryCommitted()
-
HeapMemoryMax
public static final java.lang.String HeapMemoryMax()
-
SystemLoadAverage
public static final java.lang.String SystemLoadAverage()
-
Processors
public static final java.lang.String Processors()
-
CpuCombined
public static final java.lang.String CpuCombined()
Sum of User + Sys + Nice + Wait. See `org.hyperic.sigar.CpuPerc`
-
CpuStolen
public static final java.lang.String CpuStolen()
The amount of CPU 'stolen' from this virtual machine by the hypervisor for other tasks (such as running another virtual machine).
-
CpuIdle
public static final java.lang.String CpuIdle()
Amount of CPU time left after combined and stolen are removed.
-
extractHeapMemory
public static StandardMetrics.HeapMemory extractHeapMemory(NodeMetrics nodeMetrics)
-
extractCpu
public static StandardMetrics.Cpu extractCpu(NodeMetrics nodeMetrics)
-
-