class SigarMetricsCollector extends JmxMetricsCollector
Loads metrics through Hyperic SIGAR and JMX monitoring beans. This loads wider and more accurate range of metrics compared to JmxMetricsCollector by using SIGAR's native OS library.
The constructor will by design throw exception if org.hyperic.sigar.Sigar can't be loaded, due to missing classes or native libraries.
- Source
- MetricsCollector.scala
- Alphabetic
- By Inheritance
- SigarMetricsCollector
- JmxMetricsCollector
- MetricsCollector
- Closeable
- AutoCloseable
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new SigarMetricsCollector(system: ActorSystem)
This constructor is used when creating an instance from configured FQCN
- new SigarMetricsCollector(address: Address, settings: ClusterMetricsSettings)
- new SigarMetricsCollector(address: Address, settings: ClusterMetricsSettings, sigar: SigarProxy)
- new SigarMetricsCollector(address: Address, decayFactor: Double, sigar: SigarProxy)
- address
The akka.actor.Address of the node being sampled
- decayFactor
how quickly the exponential weighting of past data is decayed
- sigar
the org.hyperic.Sigar instance
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- def +(other: String): String
- Implicit
- This member is added by an implicit conversion from SigarMetricsCollector toany2stringadd[SigarMetricsCollector] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
- def ->[B](y: B): (SigarMetricsCollector, B)
- Implicit
- This member is added by an implicit conversion from SigarMetricsCollector toArrowAssoc[SigarMetricsCollector] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
- def close(): Unit
Releases any native resources associated with this instance.
Releases any native resources associated with this instance.
- Definition Classes
- SigarMetricsCollector → JmxMetricsCollector → Closeable → AutoCloseable
- def cpuCombined(cpuPerc: CpuPerc): Option[Metric]
(SIGAR) Returns the combined CPU sum of User + Sys + Nice + Wait, in percentage.
(SIGAR) Returns the combined CPU sum of User + Sys + Nice + Wait, in percentage. This metric can describe the amount of time the CPU spent executing code during n-interval and how much more it could theoretically. Note that 99% CPU utilization can be optimal or indicative of failure.
In the data stream, this will sometimes return with a valid metric value, and sometimes as a NaN or Infinite. Documented bug 749121 and several others.
Creates a new instance each time.
- def cpuIdle(cpuPerc: CpuPerc): Option[Metric]
(SIGAR) Returns the idle CPU time.
(SIGAR) Returns the idle CPU time. Amount of CPU time left after combined and stolen are removed.
Creates a new instance each time.
- def cpuStolen(cpuPerc: CpuPerc): Option[Metric]
(SIGAR) Returns the stolen CPU time.
(SIGAR) Returns the stolen CPU time. Relevant to virtual hosting environments. For details please see: Wikipedia - CPU time subdivision and Understanding AWS stolen CPU and how it affects your apps
Creates a new instance each time.
- def ensuring(cond: (SigarMetricsCollector) => Boolean, msg: => Any): SigarMetricsCollector
- Implicit
- This member is added by an implicit conversion from SigarMetricsCollector toEnsuring[SigarMetricsCollector] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: (SigarMetricsCollector) => Boolean): SigarMetricsCollector
- Implicit
- This member is added by an implicit conversion from SigarMetricsCollector toEnsuring[SigarMetricsCollector] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean, msg: => Any): SigarMetricsCollector
- Implicit
- This member is added by an implicit conversion from SigarMetricsCollector toEnsuring[SigarMetricsCollector] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean): SigarMetricsCollector
- Implicit
- This member is added by an implicit conversion from SigarMetricsCollector toEnsuring[SigarMetricsCollector] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- 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.
- Definition Classes
- JmxMetricsCollector
- 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.
- Definition Classes
- JmxMetricsCollector
- def heapMemoryUsage: MemoryUsage
Current heap to be passed in to heapUsed, heapCommitted and heapMax
Current heap to be passed in to heapUsed, heapCommitted and heapMax
- Definition Classes
- JmxMetricsCollector
- 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.
- Definition Classes
- JmxMetricsCollector
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def metrics(): Set[Metric]
Generate metrics set.
Generate metrics set. Creates a new instance each time.
- Definition Classes
- SigarMetricsCollector → JmxMetricsCollector
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def processors: Option[Metric]
(JMX) Returns the number of available processors Creates a new instance each time.
(JMX) Returns the number of available processors Creates a new instance each time.
- Definition Classes
- JmxMetricsCollector
- 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
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def systemLoadAverage: Option[Metric]
(SIGAR) Returns the OS-specific average load on the CPUs in the system, for the past 1 minute.
(SIGAR) Returns the OS-specific average load on the CPUs in the system, for the past 1 minute.
Creates a new instance each time.
- Definition Classes
- SigarMetricsCollector → JmxMetricsCollector
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)
- def formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from SigarMetricsCollector toStringFormat[SigarMetricsCollector] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.12.16) Use
formatString.format(value)
instead ofvalue.formatted(formatString)
, or use thef""
string interpolator. In Java 15 and later,formatted
resolves to the new method in String which has reversed parameters.
- def →[B](y: B): (SigarMetricsCollector, B)
- Implicit
- This member is added by an implicit conversion from SigarMetricsCollector toArrowAssoc[SigarMetricsCollector] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use
->
instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.