接口 MetricsService


  • public interface MetricsService
    This is a SPI interface to create a MeterRegistry to generate metrics from filter-service. You can implement this interface as your requirements and provide the implementation under META-INF/services. Then filter-service will load your implementation by using ServiceLoader.
    • 方法概要

      所有方法 实例方法 抽象方法 
      修饰符和类型 方法 说明
      io.micrometer.core.instrument.MeterRegistry createMeterRegistry()
      Create a new MeterRegistry used by filter-service to generate metrics.
      void start()
      A start hook called before filter-service start.
      void stop()
      A stop hook called after filter-service is stopped.
    • 方法详细资料

      • start

        void start()
        A start hook called before filter-service start.
      • createMeterRegistry

        io.micrometer.core.instrument.MeterRegistry createMeterRegistry()
        Create a new MeterRegistry used by filter-service to generate metrics.
        返回:
        a custom MeterRegistry which meet your requirements
      • stop

        void stop()
        A stop hook called after filter-service is stopped.