0
点赞
收藏
分享

微信扫一扫

Hystrix spring cloud整合没有图表显示不出来。


如果没有图表

1.所有的应用都需要增加  spring-boot-starter-actuator,spring-boot-starter-web
2.监控应用启动类增加@EnableCircuitBreaker
3.监控应用controller入口增加@HystrixCommand
4.监控应用必须增加ServletRegistrationBean 暴露/hystrix.stream 地址
5.监控应用接口必须有请求次数

学习地址

https://www.jianshu.com/p/590bad4c8947

https://docs.spring.io/spring-cloud-netflix/docs/2.2.5.RELEASE/reference/html/#circuit-breaker-hystrix-dashboard

demo地址

​​https://gitee.com/whiteubuntu/zk-demo-prg​​ 查看turbine分支


举报

相关推荐

0 条评论