要使Hystrix指标流包需要引入依赖spring-boot-starter-actuator,这将作为一个管理端点暴露为/hystrix.stream

    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-actuator</artifactId>
    </dependency>

英文原文:
13.4 Hystrix Metrics Stream
To enable the Hystrix metrics stream include a dependency on spring-boot-starter-actuator. This will expose the /hystrix.stream as a management endpoint.


org.springframework.boot
spring-boot-starter-actuator

分享到: 更多