public class SigarMetricsCollector extends JmxMetricsCollector
The constructor will by design throw exception if org.hyperic.sigar.Sigar can't be loaded, due to missing classes or native libraries.
param: address The Address
of the node being sampled
param: decayFactor how quickly the exponential weighting of past data is decayed
param: sigar the org.hyperic.Sigar instance
Constructor and Description |
---|
SigarMetricsCollector(ActorSystem system)
This constructor is used when creating an instance from configured FQCN
|
SigarMetricsCollector(Address address,
ClusterMetricsSettings settings) |
SigarMetricsCollector(Address address,
ClusterMetricsSettings settings,
org.hyperic.sigar.SigarProxy sigar) |
SigarMetricsCollector(Address address,
double decayFactor,
org.hyperic.sigar.SigarProxy sigar) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Releases any native resources associated with this instance.
|
scala.Option<Metric> |
cpuCombined(org.hyperic.sigar.CpuPerc cpuPerc)
(SIGAR) Returns the combined CPU sum of User + Sys + Nice + Wait, in percentage.
|
scala.Option<Metric> |
cpuIdle(org.hyperic.sigar.CpuPerc cpuPerc)
(SIGAR) Returns the idle CPU time.
|
scala.Option<Metric> |
cpuStolen(org.hyperic.sigar.CpuPerc cpuPerc)
(SIGAR) Returns the stolen CPU time.
|
scala.collection.immutable.Set<Metric> |
metrics()
Generate metrics set.
|
scala.Option<Metric> |
systemLoadAverage()
(SIGAR) Returns the OS-specific average load on the CPUs in the system, for the past 1 minute.
|
heapCommitted, heapMax, heapMemoryUsage, heapUsed, processors, sample
public SigarMetricsCollector(Address address, double decayFactor, org.hyperic.sigar.SigarProxy sigar)
public SigarMetricsCollector(Address address, ClusterMetricsSettings settings, org.hyperic.sigar.SigarProxy sigar)
public SigarMetricsCollector(Address address, ClusterMetricsSettings settings)
public SigarMetricsCollector(ActorSystem system)
system
- (undocumented)public scala.collection.immutable.Set<Metric> metrics()
JmxMetricsCollector
metrics
in class JmxMetricsCollector
public scala.Option<Metric> systemLoadAverage()
Creates a new instance each time.
systemLoadAverage
in class JmxMetricsCollector
public scala.Option<Metric> cpuCombined(org.hyperic.sigar.CpuPerc cpuPerc)
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.
cpuPerc
- (undocumented)public scala.Option<Metric> cpuStolen(org.hyperic.sigar.CpuPerc cpuPerc)
Creates a new instance each time.
cpuPerc
- (undocumented)public scala.Option<Metric> cpuIdle(org.hyperic.sigar.CpuPerc cpuPerc)
Creates a new instance each time.
cpuPerc
- (undocumented)public void close()
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class JmxMetricsCollector