metrics
library
Classes
CachedGauge <T >
A Gauge implementation which caches its value for a period of time.
ConsoleReporter
A reporter which outputs measurements with a StringSink .
Counter
An incrementing and decrementing counter metric.
Counting
An interface for metric types which have counts.
DerivativeGauge <F , T >
A gauge whose value is derived from the value of another gauge.
EWMA
An exponentially-weighted moving average.
ExponentiallyDecayingReservoir
An exponentially-decaying random reservoir of int s. Uses Cormode et al's
forward-decaying priority reservoir sampling method to produce a statistically representative
sampling reservoir, exponentially biased towards newer entries.
Gauge <T >
A gauge metric is an instantaneous reading of a particular value. To instrument a queue's depth,
for example:
Histogram
A metric which calculates the distribution of a value.
LogReporter
A reporter class for logging metrics values to a Logger
periodically,
similar to ConsoleReporter or CsvReporter , but using the logging package
instead.
Meter
A meter metric which measures mean throughput and one-, five-, and
fifteen-minute exponentially-weighted moving average throughputs.
Metered
An object which maintains mean and exponentially-weighted rate.
Metric
A tag interface to indicate that a class is a metric.
MetricRegistry
A registry of metric instances.
MetricSet
A set of named metrics.
NamedMetric <T extends Metric >
Ratio
RatioGauge
A Gauge which measures the ratio of one value to another.
Reporter
A tag interface to indicate that a class is a Reporter.
Reservoir
A statistically representative reservoir of a data stream.
Sampling
An object which samples values.
ScheduledReporter
The abstract base class for all scheduled reporters (i.e., reporters which process a registry's metrics periodically).
SlidingTimeWindowReservoir
A Reservoir implementation backed by a sliding window that stores only the
measurements made in the last N seconds (or other time unit).
SlidingWindowReservoir
A Reservoir implementation backed by a sliding window that stores the last
N measurements.
Snapshot
A statistical snapshot of a Snapshot .
Timer
A timer metric which aggregates timing durations and provides duration statistics, plus
throughput statistics via Meter .
TimerContext
A timing context.
TimeUnit
UniformSnapshot
A statistical snapshot of a UniformSnapshot .
WeightedSample
A single sample item with value and its weights for WeightedSnapshot .
WeightedSnapshot
A statistical snapshot of a WeightedSnapshot .
Typedefs
MetricFilter
= bool Function(String name , Metric metric )
A filter used to determine whether or not a metric should be reported, among other things.