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: decay how quickly the exponential weighting of past data is decayed
param: sigar the org.hyperic.Sigar instance
Constructor and Description |
---|
SigarMetricsCollector(ActorSystem system)
Deprecated.
This constructor is used when creating an instance from configured FQCN
|
SigarMetricsCollector(Address address,
double decayFactor,
java.lang.Object sigar)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Deprecated.
Releases any native resources associated with this instance.
|
scala.Option<Metric> |
cpuCombined()
Deprecated.
(SIGAR) Returns the combined CPU sum of User + Sys + Nice + Wait, in percentage.
|
scala.collection.immutable.Set<Metric> |
metrics()
Deprecated.
|
long |
pid()
Deprecated.
|
scala.Option<Metric> |
systemLoadAverage()
Deprecated.
(SIGAR / JMX) 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, java.lang.Object sigar)
public SigarMetricsCollector(ActorSystem system)
system
- (undocumented)public long pid()
public scala.collection.immutable.Set<Metric> metrics()
metrics
in class JmxMetricsCollector
public scala.Option<Metric> systemLoadAverage()
systemLoadAverage
in class JmxMetricsCollector
public scala.Option<Metric> cpuCombined()
In the data stream, this will sometimes return with a valid metric value, and sometimes as a NaN or Infinite. Documented bug https://bugzilla.redhat.com/show_bug.cgi?id=749121 and several others.
Creates a new instance each time.
public void close()
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class JmxMetricsCollector