Package org.apache.hadoop.metrics2.lib
@Public
@Evolving
package org.apache.hadoop.metrics2.lib
A collection of library classes for implementing metrics sources
-
ClassDescriptionorg.apache.hadoop.metrics2.lib.DefaultMetricsFactoryExperimental interface to extend metrics dynamicallyThe default metrics system singleton.Helpers to create interned metrics info.org.apache.hadoop.metrics2.lib.MetricsAnnotationsMetrics 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.MetricsSourceBuilderHelper class to build
MetricsSourceobject from annotations.The mutable counter (monotonically increasing) metric interfaceA mutable int counter for implementing metrics sourcesA mutable long counterThe mutable gauge metric interfaceorg.apache.hadoop.metrics2.lib.MutableGaugeFloatA mutable float gauge.A mutable int gaugeA mutable long gaugeWatches a stream of long values, maintaining online estimates of specific quantiles with provably low error bounds.The mutable metric interfaceorg.apache.hadoop.metrics2.lib.MutableMetricsFactoryWatches a stream of long values, maintaining online estimates of specific quantiles with provably low error bounds.A convenient mutable metric for throughput measurementHelper 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.UniqueNamesGenerates predictable and user-friendly unique names