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