版权声明:转载请注明出处和署名,谢谢! https://blog.csdn.net/MobiusStrip/article/details/82771063
hystrix.stream一直是ping
- 错误原因:
- 因为没有请求任何东西,所以看不到内容;
- 缺少配置监控的依赖
- 配置环境不完善
- 解决办法:
- 访问一下其他服务,比如http://localhost:9000/goods/2(自己写的一个服务)即可看到内容
- 客服端添加依赖
<!-- Actuator是SpringBoot提供的对应用系统的自省和监控的集成功能,可以查看应用配置的详细信息; 如果提示 Unable to connect to Command Metric Stream.则需要引入以下包! --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-actuator</artifactId> </dependency>
- 完善配置环境
# 使用Hystrix Metrics Stream必备 management: endpoints: web: exposure: include: hystrix.stream