Class VMMetricProviderImpl

java.lang.Object
jenkins.metrics.api.MetricProvider
jenkins.metrics.impl.VMMetricProviderImpl
All Implemented Interfaces:
ExtensionPoint

@Extension public class VMMetricProviderImpl extends MetricProvider
Author:
Stephen Connolly
  • Constructor Details

    • VMMetricProviderImpl

      public VMMetricProviderImpl()
  • Method Details

    • getSystemCpuLoad

      @CheckForNull public com.codahale.metrics.Gauge<Double> getSystemCpuLoad()
      Returns a gauge that reports the current system CPU load or null if that metric is unavailable.
      Returns:
      a gauge that reports the current system CPU load or null if that metric is unavailable.
    • getVmCpuLoad

      @CheckForNull public com.codahale.metrics.Gauge<Double> getVmCpuLoad()
      Returns a gauge that reports the current JVM CPU load or null if that metric is unavailable.
      Returns:
      a gauge that reports the current JVM CPU load or null if that metric is unavailable.
    • getMetricSet

      @NonNull public com.codahale.metrics.MetricSet getMetricSet()
      Description copied from class: MetricProvider
      Returns the set of metrics to register.
      Specified by:
      getMetricSet in class MetricProvider
      Returns:
      the set of metrics to register.