Class BackendRegistries


  • public final class BackendRegistries
    extends Object
    BackendRegistries is responsible for managing registries related to particular micrometer backends (influxdb, prometheus...) It contains a store of BackendRegistry objects, each of whose encapsulating a micrometer's MeterRegistry
    Author:
    Joel Takvorian
    • Method Detail

      • getDefaultNow

        public static io.micrometer.core.instrument.MeterRegistry getDefaultNow()
        Get the default micrometer registry. May return null if it hasn't been registered yet or if it has been stopped.
        Returns:
        the micrometer registry or null
      • getNow

        public static io.micrometer.core.instrument.MeterRegistry getNow​(String registryName)
        Get the micrometer registry of the given name. May return null if it hasn't been registered yet or if it has been stopped.
        Parameters:
        registryName - the name associated with this registry in Micrometer options
        Returns:
        the micrometer registry or null
      • stop

        public static void stop​(String registryName)
        Stop (unregister) the backend registry of the given name. Any resource started by this backend registry will be released (like running HTTP server)
        Parameters:
        registryName - the name associated with this registry in Micrometer options
      • registerMatchers

        public static void registerMatchers​(io.micrometer.core.instrument.MeterRegistry registry,
                                            List<Match> matches)