org.apache.hadoop.metrics2.lib (Apache Hadoop Main 3.5.0 API)
Description: declaration: package: org.apache.hadoop.metrics2.lib

# Package org.apache.hadoop.metrics2.lib

@Public @Evolving package org.apache.hadoop.metrics2.lib
A collection of library classes for implementing metrics sources

- Related Packages
  Package
  Description
  org.apache.hadoop.metrics2
  Metrics 2.0
  org.apache.hadoop.metrics2.annotation
  Annotation interfaces for metrics instrumentation
  org.apache.hadoop.metrics2.filter
  Builtin metrics filters (to be used in metrics config files)
  org.apache.hadoop.metrics2.sink
  Builtin metrics sinks
  org.apache.hadoop.metrics2.source
  org.apache.hadoop.metrics2.util
  General helpers for implementing source and sinks
- Class
  Description
  org.apache.hadoop.metrics2.lib.DefaultMetricsFactory
  Experimental interface to extend metrics dynamically
  DefaultMetricsSystem
  The default metrics system singleton.
  Interns
  Helpers to create interned metrics info.
  org.apache.hadoop.metrics2.lib.MetricsAnnotations
  Metrics annotation helpers.
  MetricsRegistry
  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.
  MutableCounter
  The mutable counter (monotonically increasing) metric interface
  MutableCounterInt
  A mutable int counter for implementing metrics sources
  MutableCounterLong
  A mutable long counter
  MutableGauge
  The mutable gauge metric interface
  org.apache.hadoop.metrics2.lib.MutableGaugeFloat
  A mutable float gauge.
  MutableGaugeInt
  A mutable int gauge
  MutableGaugeLong
  A mutable long gauge
  MutableInverseQuantiles
  Watches a stream of long values, maintaining online estimates of specific quantiles with provably low error bounds.
  MutableMetric
  The mutable metric interface
  org.apache.hadoop.metrics2.lib.MutableMetricsFactory
  MutableQuantiles
  Watches a stream of long values, maintaining online estimates of specific quantiles with provably low error bounds.
  MutableRate
  A convenient mutable metric for throughput measurement
  MutableRates
  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.
  MutableRatesWithAggregation
  Helper class to manage a group of mutable rate metrics.
  MutableRollingAverages
  This class maintains a group of rolling average metrics.
  MutableStat
  A mutable metric with stats.
  org.apache.hadoop.metrics2.lib.UniqueNames
  Generates predictable and user-friendly unique names