class JmxMetricsCollector extends MetricsCollector
Loads JVM and system metrics through JMX monitoring beans.
- Source
- MetricsCollector.scala
- Alphabetic
- By Inheritance
- JmxMetricsCollector
- MetricsCollector
- Closeable
- AutoCloseable
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
JmxMetricsCollector(system: ActorSystem)
This constructor is used when creating an instance from configured FQCN
-
new
JmxMetricsCollector(address: Address, decayFactor: Double)
- address
The akka.actor.Address of the node being sampled
- decayFactor
how quickly the exponential weighting of past data is decayed
Value Members
-
def
close(): Unit
- Definition Classes
- JmxMetricsCollector → Closeable → AutoCloseable
-
def
heapCommitted(heap: MemoryUsage): Option[Metric]
(JMX) Returns the current sum of heap memory guaranteed to be available to the JVM from all heap memory pools (in bytes).
(JMX) Returns the current sum of heap memory guaranteed to be available to the JVM from all heap memory pools (in bytes). Creates a new instance each time.
-
def
heapMax(heap: MemoryUsage): Option[Metric]
(JMX) Returns the maximum amount of memory (in bytes) that can be used for JVM memory management.
(JMX) Returns the maximum amount of memory (in bytes) that can be used for JVM memory management. If not defined the metrics value is None, i.e. never negative. Creates a new instance each time.
-
def
heapMemoryUsage: MemoryUsage
Current heap to be passed in to heapUsed, heapCommitted and heapMax
-
def
heapUsed(heap: MemoryUsage): Option[Metric]
(JMX) Returns the current sum of heap memory used from all heap memory pools (in bytes).
(JMX) Returns the current sum of heap memory used from all heap memory pools (in bytes). Creates a new instance each time.
-
def
metrics(): Set[Metric]
Generate metrics set.
Generate metrics set. Creates a new instance each time.
-
def
processors: Option[Metric]
(JMX) Returns the number of available processors Creates a new instance each time.
-
def
sample(): NodeMetrics
Samples and collects new data points.
Samples and collects new data points. Creates a new instance each time.
- Definition Classes
- JmxMetricsCollector → MetricsCollector
-
def
systemLoadAverage: Option[Metric]
(JMX) Returns the OS-specific average load on the CPUs in the system, for the past 1 minute.
(JMX) Returns the OS-specific average load on the CPUs in the system, for the past 1 minute. On some systems the JMX OS system load average may not be available, in which case a -1 is returned from JMX, and None is returned from this method. Creates a new instance each time.