Class AbstractDropwizardExports<R,F,C,G,H,T,M,B,S>
Object
AbstractDropwizardExports<R,F,C,G,H,T,M,B,S>
- Type Parameters:
R- The Dropwizard MetricRegistry typeF- The Dropwizard MetricFilter typeC- The Dropwizard Counter typeG- The Dropwizard Gauge typeH- The Dropwizard Histogram typeT- The Dropwizard Timer typeM- The Dropwizard Meter typeB- The Dropwizard Metric base typeS- The Dropwizard Snapshot type
- All Implemented Interfaces:
MultiCollector
- Direct Known Subclasses:
DropwizardExports, DropwizardExports
public abstract class AbstractDropwizardExports<R,F,C,G,H,T,M,B,S>
extends Object
implements MultiCollector
Abstract base class for Dropwizard metrics exporters. Contains all the common logic for
converting Dropwizard metrics to Prometheus metrics. Subclasses only need to implement
collectMetricSnapshots() to handle version-specific registry APIs.-
Method Details
-
collect
Description copied from interface:MultiCollectorCalled when the Prometheus server scrapes metrics.- Specified by:
collectin interfaceMultiCollector
-