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

    Modifier and Type
    Method
    Description
    static <T extends io.micrometer.core.instrument.dropwizard.DropwizardMeterRegistry>
    T
    configureRegistry(T meterRegistry)
    Configures the DropwizardMeterRegistry with Armeria's defaults.
    static io.micrometer.core.instrument.dropwizard.DropwizardMeterRegistry
    Returns a newly-created DropwizardMeterRegistry instance with the default HierarchicalNameMapper.
    static io.micrometer.core.instrument.dropwizard.DropwizardMeterRegistry
    newRegistry(com.codahale.metrics.MetricRegistry registry)
    Returns a newly-created DropwizardMeterRegistry instance with the specified MetricRegistry and the default HierarchicalNameMapper.
    static io.micrometer.core.instrument.dropwizard.DropwizardMeterRegistry
    newRegistry(com.codahale.metrics.MetricRegistry registry, io.micrometer.core.instrument.util.HierarchicalNameMapper nameMapper)
    Returns a newly-created DropwizardMeterRegistry instance with the specified MetricRegistry and HierarchicalNameMapper.
    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-created DropwizardMeterRegistry instance with the specified MetricRegistry, HierarchicalNameMapper and Clock.
    static io.micrometer.core.instrument.dropwizard.DropwizardMeterRegistry
    newRegistry(io.micrometer.core.instrument.util.HierarchicalNameMapper nameMapper)
    Returns a newly-created DropwizardMeterRegistry instance with the specified HierarchicalNameMapper.
    static io.micrometer.core.instrument.dropwizard.DropwizardMeterRegistry
    newRegistry(io.micrometer.core.instrument.util.HierarchicalNameMapper nameMapper, io.micrometer.core.instrument.Clock clock)
    Returns a newly-created DropwizardMeterRegistry instance with the specified HierarchicalNameMapper and Clock.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • newRegistry

      public static io.micrometer.core.instrument.dropwizard.DropwizardMeterRegistry newRegistry()
      Returns a newly-created DropwizardMeterRegistry instance with the default HierarchicalNameMapper.
    • newRegistry

      public static io.micrometer.core.instrument.dropwizard.DropwizardMeterRegistry newRegistry(com.codahale.metrics.MetricRegistry registry)
      Returns a newly-created DropwizardMeterRegistry instance with the specified MetricRegistry and the default HierarchicalNameMapper.
    • newRegistry

      public static io.micrometer.core.instrument.dropwizard.DropwizardMeterRegistry newRegistry(io.micrometer.core.instrument.util.HierarchicalNameMapper nameMapper)
      Returns a newly-created DropwizardMeterRegistry instance with the specified HierarchicalNameMapper.
    • 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-created DropwizardMeterRegistry instance with the specified MetricRegistry and HierarchicalNameMapper.
    • 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-created DropwizardMeterRegistry instance with the specified HierarchicalNameMapper and Clock.
    • 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-created DropwizardMeterRegistry instance with the specified MetricRegistry, HierarchicalNameMapper and Clock.
    • configureRegistry

      public static <T extends io.micrometer.core.instrument.dropwizard.DropwizardMeterRegistry> T configureRegistry(T meterRegistry)
      Configures the DropwizardMeterRegistry with Armeria's defaults. Useful when using a different implementation of DropwizardMeterRegistry, e.g., a JmxMeterRegistry.
      Returns:
      the specified DropwizardMeterRegistry