Class VMMetricProviderImpl

    • Constructor Detail

      • VMMetricProviderImpl

        public VMMetricProviderImpl()
    • Method Detail

      • 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.