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

阅读 80

2022-12-15


如果没有图表

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)

0 0 举报