Class DropwizardTypes
- java.lang.Object
-
- org.forgerock.monitoring.dropwizard.DropwizardTypes
-
public final class DropwizardTypes extends Object
While Dropwizard is well suited for representing hierarchical metrics, it has no support for dimensional metrics. This utility class contains sub types of the dropwizard metrics, enhanced to support tags (dimensions), while also supporting hierarchical names.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DropwizardTypes.DescribableCounter
A describable counter, implementing both the dropwizard's and the monitoring-api's relevant APIs.static class
DropwizardTypes.DescribableGauge<T>
A describable gauge, implementing both the dropwizard's and the monitoring-api's relevant APIs.static class
DropwizardTypes.DescribableMeter
A describable meter, implementing both the dropwizard's meter and the monitoring-api's relevant APIs.static interface
DropwizardTypes.DescribableMetric
A describable dropwizard metric.static class
DropwizardTypes.DescribableTimer
A describable timer, implementing both the dropwizard's and the monitoring-api's relevant APIs.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static com.codahale.metrics.MetricRegistry
toMetricRegistry(MeterRegistry meterRegistry)
Converts aMeterRegistry
to aMetricRegistry
.
-
-
-
Method Detail
-
toMetricRegistry
public static com.codahale.metrics.MetricRegistry toMetricRegistry(MeterRegistry meterRegistry)
Converts aMeterRegistry
to aMetricRegistry
.- Parameters:
meterRegistry
- The meterRegistry.- Returns:
- A metricRegistry.
-
-