Package com.yahoo.metrics.simple
@PublicApi
@ExportPackage
package com.yahoo.metrics.simple
A metrics API with declarable metric, and also an implementation of the
JDisc Metrics API where the newest state is made continously available.
Users should have an instance of MetricReceiver
injected in the constructor where needed, then declare metrics as instances
of Counter
and
Gauge
using
MetricReceiver.declareCounter(String)
,
MetricReceiver.declareCounter(String, Point)
,
MetricReceiver.declareGauge(String)
,
MetricReceiver.declareGauge(String, Point)
, or
MetricReceiver.declareGauge(String, java.util.Optional, MetricSettings)
.
Clients input data through the API in MetricReceiver
,
while the internal work is done by MetricAggregator
.
Initialization is done top-down from MetricManager
.
The link between calls to MetricReceiver and MetricAggregator is the role of
MetricUpdater
.
- Author:
- Steinar Knutsen
-
ClassDescriptionAn aggregation of data which is only written to from a single thread.A counter metric.A gauge metric, i.e.The name of the metric and its n-dimensional position.Wrapper class for the actually measured value.This is the coordinating class owning the executor and the top level objects for measured metrics.The reception point for measurements.All information needed for creating any extra data structures associated with a single metric, outside of its basic type.A builder for the immutable MetricSettings instances.An efficiently comparable point in a sparse vector space.Single-use builder for the immutable Point instances used to set dimensions for a metric.A single metric measurement and all the meta data needed to route it correctly.Common code for running unit tests of simplemetricsA gauge or a counter or...Wrapper for dimension values.Marker for the type of the contained value of a Value instance.