Class MeterRegistryFactory.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • config

        public MeterRegistryFactory.Builder config​(Config config)
        Override default configuration.

        The config items supported vary from one built-in type to the next. See the documentation for the corresponding MicrometerRegistryConfig for details.

        Parameters:
        config - configuration instance
        Returns:
        updated builder instance
      • enrollBuiltInRegistry

        public MeterRegistryFactory.Builder enrollBuiltInRegistry​(MeterRegistryFactory.BuiltInRegistryType builtInRegistryType,
                                                                  io.micrometer.core.instrument.config.MeterRegistryConfig meterRegistryConfig)
        Enrolls a built-in registry type to support.
        Parameters:
        builtInRegistryType - built-in meter registry type to support
        meterRegistryConfig - appropriate MeterRegistryConfig instance setting up the meter registry
        Returns:
        updated builder instance
      • enrollRegistry

        public MeterRegistryFactory.Builder enrollRegistry​(io.micrometer.core.instrument.MeterRegistry meterRegistry,
                                                           Function<ServerRequest,​Optional<Handler>> handlerFunction)
        Records a MetricRegistry to be managed by MicrometerSupport, along with the function that returns an Optional of a Handler for processing a given request to the Micrometer endpoint.
        Parameters:
        meterRegistry - the registry to enroll
        handlerFunction - returns Optional<Handler>; if present, capable of responding to the specified request
        Returns:
        updated builder instance