Class DropwizardMeterRegistries
java.lang.Object
com.linecorp.armeria.common.metric.DropwizardMeterRegistries
Provides the convenient factory methods for
DropwizardMeterRegistry
with more sensible defaults for
NamingConvention
and HierarchicalNameMapper
.-
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends io.micrometer.core.instrument.dropwizard.DropwizardMeterRegistry>
TconfigureRegistry
(T meterRegistry) Configures theDropwizardMeterRegistry
with Armeria's defaults.static io.micrometer.core.instrument.dropwizard.DropwizardMeterRegistry
Returns a newly-createdDropwizardMeterRegistry
instance with the defaultHierarchicalNameMapper
.static io.micrometer.core.instrument.dropwizard.DropwizardMeterRegistry
newRegistry
(com.codahale.metrics.MetricRegistry registry) Returns a newly-createdDropwizardMeterRegistry
instance with the specifiedMetricRegistry
and the defaultHierarchicalNameMapper
.static io.micrometer.core.instrument.dropwizard.DropwizardMeterRegistry
newRegistry
(com.codahale.metrics.MetricRegistry registry, io.micrometer.core.instrument.util.HierarchicalNameMapper nameMapper) Returns a newly-createdDropwizardMeterRegistry
instance with the specifiedMetricRegistry
andHierarchicalNameMapper
.static io.micrometer.core.instrument.dropwizard.DropwizardMeterRegistry
newRegistry
(com.codahale.metrics.MetricRegistry registry, io.micrometer.core.instrument.util.HierarchicalNameMapper nameMapper, io.micrometer.core.instrument.Clock clock) Returns a newly-createdDropwizardMeterRegistry
instance with the specifiedMetricRegistry
,HierarchicalNameMapper
andClock
.static io.micrometer.core.instrument.dropwizard.DropwizardMeterRegistry
newRegistry
(io.micrometer.core.instrument.util.HierarchicalNameMapper nameMapper) Returns a newly-createdDropwizardMeterRegistry
instance with the specifiedHierarchicalNameMapper
.static io.micrometer.core.instrument.dropwizard.DropwizardMeterRegistry
newRegistry
(io.micrometer.core.instrument.util.HierarchicalNameMapper nameMapper, io.micrometer.core.instrument.Clock clock) Returns a newly-createdDropwizardMeterRegistry
instance with the specifiedHierarchicalNameMapper
andClock
.
-
Method Details
-
newRegistry
public static io.micrometer.core.instrument.dropwizard.DropwizardMeterRegistry newRegistry()Returns a newly-createdDropwizardMeterRegistry
instance with the defaultHierarchicalNameMapper
. -
newRegistry
public static io.micrometer.core.instrument.dropwizard.DropwizardMeterRegistry newRegistry(com.codahale.metrics.MetricRegistry registry) Returns a newly-createdDropwizardMeterRegistry
instance with the specifiedMetricRegistry
and the defaultHierarchicalNameMapper
. -
newRegistry
public static io.micrometer.core.instrument.dropwizard.DropwizardMeterRegistry newRegistry(io.micrometer.core.instrument.util.HierarchicalNameMapper nameMapper) Returns a newly-createdDropwizardMeterRegistry
instance with the specifiedHierarchicalNameMapper
. -
newRegistry
public static io.micrometer.core.instrument.dropwizard.DropwizardMeterRegistry newRegistry(com.codahale.metrics.MetricRegistry registry, io.micrometer.core.instrument.util.HierarchicalNameMapper nameMapper) Returns a newly-createdDropwizardMeterRegistry
instance with the specifiedMetricRegistry
andHierarchicalNameMapper
. -
newRegistry
public static io.micrometer.core.instrument.dropwizard.DropwizardMeterRegistry newRegistry(io.micrometer.core.instrument.util.HierarchicalNameMapper nameMapper, io.micrometer.core.instrument.Clock clock) Returns a newly-createdDropwizardMeterRegistry
instance with the specifiedHierarchicalNameMapper
andClock
. -
newRegistry
public static io.micrometer.core.instrument.dropwizard.DropwizardMeterRegistry newRegistry(com.codahale.metrics.MetricRegistry registry, io.micrometer.core.instrument.util.HierarchicalNameMapper nameMapper, io.micrometer.core.instrument.Clock clock) Returns a newly-createdDropwizardMeterRegistry
instance with the specifiedMetricRegistry
,HierarchicalNameMapper
andClock
. -
configureRegistry
public static <T extends io.micrometer.core.instrument.dropwizard.DropwizardMeterRegistry> T configureRegistry(T meterRegistry) Configures theDropwizardMeterRegistry
with Armeria's defaults. Useful when using a different implementation ofDropwizardMeterRegistry
, e.g., aJmxMeterRegistry
.- Returns:
- the specified
DropwizardMeterRegistry
-