Class SigarMetricsCollector

  • All Implemented Interfaces:
    MetricsCollector, java.io.Closeable, java.lang.AutoCloseable

    public class SigarMetricsCollector
    extends JmxMetricsCollector
    This constructor is used when creating an instance from configured FQCN
    • Constructor Detail

      • SigarMetricsCollector

        public SigarMetricsCollector​(Address address,
                                     double decayFactor,
                                     org.hyperic.sigar.SigarProxy sigar)
      • SigarMetricsCollector

        public SigarMetricsCollector​(Address address,
                                     ClusterMetricsSettings settings,
                                     org.hyperic.sigar.SigarProxy sigar)
      • SigarMetricsCollector

        public SigarMetricsCollector​(ActorSystem system)
        This constructor is used when creating an instance from configured FQCN
        Parameters:
        system - (undocumented)
    • Method Detail

      • close

        public void close()
        Releases any native resources associated with this instance.
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Overrides:
        close in class JmxMetricsCollector
      • cpuCombined

        public scala.Option<Metric> cpuCombined​(org.hyperic.sigar.CpuPerc cpuPerc)
        (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.

        Parameters:
        cpuPerc - (undocumented)
        Returns:
        (undocumented)
      • cpuIdle

        public scala.Option<Metric> cpuIdle​(org.hyperic.sigar.CpuPerc cpuPerc)
        (SIGAR) Returns the idle CPU time. Amount of CPU time left after combined and stolen are removed.

        Creates a new instance each time.

        Parameters:
        cpuPerc - (undocumented)
        Returns:
        (undocumented)
      • systemLoadAverage

        public scala.Option<Metric> systemLoadAverage()
        (SIGAR) Returns the OS-specific average load on the CPUs in the system, for the past 1 minute.

        Creates a new instance each time.

        Overrides:
        systemLoadAverage in class JmxMetricsCollector
        Returns:
        (undocumented)