Class DropwizardExports
Object
DropwizardExports
- All Implemented Interfaces:
MultiCollector
Collect Dropwizard metrics from a MetricRegistry.
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionDropwizardExports
(MetricRegistry registry) Creates a new DropwizardExports andMetricFilter.ALL
.DropwizardExports
(MetricRegistry registry, MetricFilter metricFilter) Creates a new DropwizardExports with a customMetricFilter
.DropwizardExports
(MetricRegistry registry, MetricFilter metricFilter, CustomLabelMapper labelMapper) -
Method Summary
Modifier and TypeMethodDescriptionstatic DropwizardExports.Builder
builder()
collect()
Called when the Prometheus server scrapes metrics.Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface MultiCollector
collect, collect, collect, getPrometheusNames
-
Constructor Details
-
DropwizardExports
Creates a new DropwizardExports andMetricFilter.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, 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
-
collect
Description copied from interface:MultiCollector
Called when the Prometheus server scrapes metrics.- Specified by:
collect
in interfaceMultiCollector
-
builder
-