Uses of Class
io.dropwizard.metrics5.MetricRegistry
-
Uses of MetricRegistry in io.dropwizard.metrics5
Subclasses of MetricRegistry in io.dropwizard.metrics5Modifier and TypeClassDescriptionfinal class
A registry of metric instances which never creates or registers any metrics and returns no-op implementations of any metric type.Methods in io.dropwizard.metrics5 that return MetricRegistryModifier and TypeMethodDescriptionstatic MetricRegistry
SharedMetricRegistries.add
(String name, MetricRegistry registry) static MetricRegistry
SharedMetricRegistries.getDefault()
Gets the name of the default registry, if it has been setstatic MetricRegistry
SharedMetricRegistries.getOrCreate
(String name) static MetricRegistry
SharedMetricRegistries.setDefault
(String name) Creates a new registry and sets it as the default one under the provided name.static MetricRegistry
SharedMetricRegistries.setDefault
(String name, MetricRegistry metricRegistry) Sets the provided registry as the default one under the provided namestatic MetricRegistry
SharedMetricRegistries.tryGetDefault()
Same asSharedMetricRegistries.getDefault()
except returns null when the default registry has not been set.Methods in io.dropwizard.metrics5 with parameters of type MetricRegistryModifier and TypeMethodDescriptionstatic MetricRegistry
SharedMetricRegistries.add
(String name, MetricRegistry registry) static ConsoleReporter.Builder
ConsoleReporter.forRegistry
(MetricRegistry registry) Returns a newConsoleReporter.Builder
forConsoleReporter
.static CsvReporter.Builder
CsvReporter.forRegistry
(MetricRegistry registry) Returns a newCsvReporter.Builder
forCsvReporter
.static Slf4jReporter.Builder
Slf4jReporter.forRegistry
(MetricRegistry registry) Returns a newSlf4jReporter.Builder
forSlf4jReporter
.static MetricRegistry
SharedMetricRegistries.setDefault
(String name, MetricRegistry metricRegistry) Sets the provided registry as the default one under the provided nameConstructors in io.dropwizard.metrics5 with parameters of type MetricRegistryModifierConstructorDescriptionInstrumentedExecutorService
(ExecutorService delegate, MetricRegistry registry) Wraps anExecutorService
uses an auto-generated default name.InstrumentedExecutorService
(ExecutorService delegate, MetricRegistry registry, String name) Wraps anExecutorService
with an explicit name.InstrumentedScheduledExecutorService
(ScheduledExecutorService delegate, MetricRegistry registry) Wraps anScheduledExecutorService
uses an auto-generated default name.InstrumentedScheduledExecutorService
(ScheduledExecutorService delegate, MetricRegistry registry, String name) Wraps anScheduledExecutorService
with an explicit name.InstrumentedThreadFactory
(ThreadFactory delegate, MetricRegistry registry) Wraps aThreadFactory
, uses a default auto-generated name.InstrumentedThreadFactory
(ThreadFactory delegate, MetricRegistry registry, String name) Wraps aThreadFactory
with an explicit name.protected
ScheduledReporter
(MetricRegistry registry, String name, MetricFilter filter, TimeUnit rateUnit, TimeUnit durationUnit) Creates a newScheduledReporter
instance.protected
ScheduledReporter
(MetricRegistry registry, String name, MetricFilter filter, TimeUnit rateUnit, TimeUnit durationUnit, ScheduledExecutorService executor) Creates a newScheduledReporter
instance.protected
ScheduledReporter
(MetricRegistry registry, String name, MetricFilter filter, TimeUnit rateUnit, TimeUnit durationUnit, ScheduledExecutorService executor, boolean shutdownExecutorOnStop) Creates a newScheduledReporter
instance.protected
ScheduledReporter
(MetricRegistry registry, String name, MetricFilter filter, TimeUnit rateUnit, TimeUnit durationUnit, ScheduledExecutorService executor, boolean shutdownExecutorOnStop, Set<MetricAttribute> disabledMetricAttributes)