org.springframework.boot.actuate.autoconfigure.metrics

Interface MeterRegistryCustomizer<T extends io.micrometer.core.instrument.MeterRegistry>

  • Type Parameters:
    T - the registry type to customize
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.


    @FunctionalInterface
    public interface MeterRegistryCustomizer<T extends io.micrometer.core.instrument.MeterRegistry>
    Callback interface that can be used to customize auto-configured MeterRegistries.

    Customizers are guaranteed to be applied before any Meter is registered with the registry.

    Since:
    2.0.0
    Author:
    Jon Schneider
    • Method Detail

      • customize

        void customize(T registry)
        Customize the given registry.
        Parameters:
        registry - the registry to customize