Collecting Metrics
只要类路径上存在正确的依赖关系,Spring Cloud Circuit Breaker Resilience4j 就包含自动配置以设置度量集合。要启用度量集合,你必须包括 org.springframework.boot:spring-boot-starter-actuator
和 io.github.resilience4j:resilience4j-micrometer
。要获取当这些依赖关系存在时生成的度量的更多信息,请参见 Resilience4j documentation。
Spring Cloud Circuit Breaker Resilience4j includes auto-configuration to setup metrics collection as long as the right
dependencies are on the classpath. To enable metric collection you must include org.springframework.boot:spring-boot-starter-actuator
, and io.github.resilience4j:resilience4j-micrometer
. For more information on the metrics that
get produced when these dependencies are present, see the Resilience4j documentation.
你无需直接包含 |
You don’t have to include |