Class DropwizardExports
Object
AbstractDropwizardExports<MetricRegistry, MetricFilter, Counter, Gauge<?>, Histogram, Timer, Meter, Metric, Snapshot>
DropwizardExports
- All Implemented Interfaces:
MultiCollector
public class DropwizardExports
extends AbstractDropwizardExports<MetricRegistry, MetricFilter, Counter, Gauge<?>, Histogram, Timer, Meter, Metric, Snapshot>
Collect Dropwizard 5.x metrics from a MetricRegistry.
This is a thin wrapper around AbstractDropwizardExports that handles the Dropwizard
5.x specific API where metric names are MetricName objects.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionDropwizardExports(MetricRegistry registry) Creates a new DropwizardExports withMetricFilter.ALL.DropwizardExports(MetricRegistry registry, MetricFilter metricFilter) Creates a new DropwizardExports with a customMetricFilter.DropwizardExports(MetricRegistry registry, MetricFilter metricFilter, CustomLabelMapper labelMapper) -
Method Summary
Methods inherited from class AbstractDropwizardExports
collectMethods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface MultiCollector
collect, collect, collect, getLabelNames, getMetadata, getMetricType, getPrometheusNames
-
Constructor Details
-
DropwizardExports
Creates a new DropwizardExports withMetricFilter.ALL.- Parameters:
registry- a metric registry to export in prometheus.
-
DropwizardExports
Creates a new DropwizardExports with a customMetricFilter.- Parameters:
registry- a metric registry to export in prometheus.metricFilter- a custom metric filter.
-
DropwizardExports
public DropwizardExports(MetricRegistry registry, MetricFilter metricFilter, @Nullable CustomLabelMapper labelMapper) - Parameters:
registry- a metric registry to export in prometheus.metricFilter- a custom metric filter.labelMapper- a labelMapper to use to map labels.
-
-
Method Details
-
builder
-