Package org.apache.hadoop.metrics2.lib


@Public @Evolving package org.apache.hadoop.metrics2.lib
A collection of library classes for implementing metrics sources
  • Class
    Description
    org.apache.hadoop.metrics2.lib.DefaultMetricsFactory
    Experimental interface to extend metrics dynamically
    The default metrics system singleton.
    Helpers to create interned metrics info.
    org.apache.hadoop.metrics2.lib.MetricsAnnotations
    Metrics annotation helpers.
    An optional metrics registry class for creating and maintaining a collection of MetricsMutables, making writing metrics source easier.
    org.apache.hadoop.metrics2.lib.MetricsSourceBuilder
    Helper class to build MetricsSource object from annotations.
    The mutable counter (monotonically increasing) metric interface
    A mutable int counter for implementing metrics sources
    A mutable long counter
    The mutable gauge metric interface
    org.apache.hadoop.metrics2.lib.MutableGaugeFloat
    A mutable float gauge.
    A mutable int gauge
    A mutable long gauge
    Watches a stream of long values, maintaining online estimates of specific quantiles with provably low error bounds.
    The mutable metric interface
    org.apache.hadoop.metrics2.lib.MutableMetricsFactory
     
    Watches a stream of long values, maintaining online estimates of specific quantiles with provably low error bounds.
    A convenient mutable metric for throughput measurement
    Helper class to manage a group of mutable rate metrics This class synchronizes all accesses to the metrics it contains, so it should not be used in situations where there is high contention on the metrics.
    Helper class to manage a group of mutable rate metrics.
    This class maintains a group of rolling average metrics.
    A mutable metric with stats.
    org.apache.hadoop.metrics2.lib.UniqueNames
    Generates predictable and user-friendly unique names