Unable to connect to Command Metric Stream
- 错误原因:
配置文件不完整 - 解决办法:
Hystrix Metrics Stream
要启用Hystrix度量标准流,请在spring-boot-starter-actuator上包含依赖项,并设置management.endpoints.web.exposure.include:hystrix.stream。 这样做会将 /actuator/hystrix.stream公开为管理端点,如以下示例所示:- pom.xml
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-actuator</artifactId> </dependency>- application.yml
# 配置Hystrix Metrics Stream management: endpoints: web: exposure: include: hystrix.stream
本文介绍了解决UnabletoconnecttoCommandMetricStream错误的方法。通过在spring-boot-starter-actuator中添加依赖并正确配置management.endpoints.web.exposure.include参数来启用Hystrix度量标准流。
4014

被折叠的 条评论
为什么被折叠?



