false to use reservoirs that accumulate internal state forever, or
true to use a reservoir that resets its internal state on each snapshot
(which is how reporters get information from reservoirs).
See this article for when the latter is useful.
Registers a new gauge metric that caches its value for a given duration.
Registers a new gauge metric that caches its value for a given duration.
the name of the gauge
the timeout
Creates a new counter metric.
Registers a new gauge metric.
Creates a new histogram metric with a Reservoir from the HdrHistogram library.
Creates a new histogram metric with a Reservoir from the HdrHistogram library.
the name of the histogram
Creates a new meter metric.
Creates a new timer metric with a Reservoir from the HdrHistogram library.
Creates a new timer metric with a Reservoir from the HdrHistogram library.
the name of the timer
Unregisters all gauges that were created through this builder.
Unregisters all gauges that were created through this builder.
Registers a new gauge metric that caches its value for a given duration.
Registers a new gauge metric that caches its value for a given duration.
the name of the gauge
the timeout
(deprecated) the scope of the gauge or null for no scope
(Since version 3.5.10) Please use cachedGauge(name+"."+scope)(f) instead. The scope parameter has been deprecated and will be removed in v5.0.0.
Creates a new counter metric.
Creates a new counter metric.
the name of the counter
(deprecated) the scope of the counter or null for no scope
(Since version 3.5.10) Please use counter(name+"."+scope)(f) instead. The scope parameter has been deprecated and will be removed in v5.0.0.
Registers a new gauge metric.
Registers a new gauge metric.
the name of the gauge
(deprecated) the scope of the gauge or null for no scope
(Since version 3.5.10) Please use gauge(name+"."+scope)(f) instead. The scope parameter has been deprecated and will be removed in v5.0.0.
Creates a new histogram metric.
Creates a new histogram metric.
the name of the histogram
(deprecated) the scope of the histogram or null for no scope
(Since version 3.5.10) Please use histogram(name+"."+scope)(f) instead. The scope parameter has been deprecated and will be removed in v5.0.0.
Creates a new meter metric.
Creates a new meter metric.
the name of the meter
(deprecated) the scope of the meter or null for no scope
(Since version 3.5.10) Please use meter(name+"."+scope)(f) instead. The scope parameter has been deprecated and will be removed in v5.0.0.
(Since version 3.5.10) Do not use metricNameFor, it is an internal API. This method will be removed in v5.0.0.
Creates a new timer metric.
Creates a new timer metric.
the name of the timer
(deprecated) the scope of the timer or null for no scope
(Since version 3.5.10) Please use timer(name+"."+scope)(f) instead. The scope parameter has been deprecated and will be removed in v5.0.0.
An alternative metric builder that creates Histograms and Timers with Reservoirs from the HdrHistogram library.
See the the manual for more instructions on using hdrhistogram.