Class CompositeMeterRegistryFactory

  • All Implemented Interfaces:
    MeterRegistryFactory<io.micrometer.core.instrument.composite.CompositeMeterRegistry>

    public class CompositeMeterRegistryFactory
    extends java.lang.Object
    implements MeterRegistryFactory<io.micrometer.core.instrument.composite.CompositeMeterRegistry>
    A builder class that provides implementations to build composite meter registries. This class implements the MetricsBuilder interface with CompositeMeterRegistry as its type.

    CompositeMeterRegistry is a type of MeterRegistry, that encapsulates two or more meter registries into one, and manages unified functionalities across all registries.

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      io.micrometer.core.instrument.composite.CompositeMeterRegistry registry​(java.util.Map<java.lang.String,​java.lang.Object> config)
      Constructs a CompositeMeterRegistry from a given map of configuration options.
      java.lang.String type()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CompositeMeterRegistryFactory

        public CompositeMeterRegistryFactory()
    • Method Detail

      • registry

        public io.micrometer.core.instrument.composite.CompositeMeterRegistry registry​(java.util.Map<java.lang.String,​java.lang.Object> config)
        Constructs a CompositeMeterRegistry from a given map of configuration options. The "registries" key in the map is expected to provide a list of meter registry configurations. Each configuration is parsed and, if parsed successfully, added to the CompositeMeterRegistry.
        Specified by:
        registry in interface MeterRegistryFactory<io.micrometer.core.instrument.composite.CompositeMeterRegistry>
        Parameters:
        config - The map containing the configurations for composite meter registry.
        Returns:
        A CompositeMeterRegistry built from the provided configuration. An empty CompositeMeterRegistry is returned if the the map doesn't contain a list of configurations extended by registries.
      • type

        public java.lang.String type()
        Specified by:
        type in interface MeterRegistryFactory<io.micrometer.core.instrument.composite.CompositeMeterRegistry>