接口 MetricsService
-
public interface MetricsServiceThis is a SPI interface to create aMeterRegistryto generate metrics from filter-service. You can implement this interface as your requirements and provide the implementation underMETA-INF/services. Then filter-service will load your implementation by usingServiceLoader.
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 io.micrometer.core.instrument.MeterRegistrycreateMeterRegistry()Create a newMeterRegistryused by filter-service to generate metrics.voidstart()A start hook called before filter-service start.voidstop()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 newMeterRegistryused by filter-service to generate metrics.- 返回:
- a custom
MeterRegistrywhich meet your requirements
-
stop
void stop()
A stop hook called after filter-service is stopped.
-
-