springBoot Feign Hystrix Dashboard
1.引入依赖
<!-- 引入关于 hystrix Dashboard的依赖 --> <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-netflix-hystrix-dashboard</artifactId> <version>2.0.2.RELEASE</version> </dependency>
2.主函数加入注解
@EnableHystrix
@EnableHystrixDashboard
3.配置文件actuator中开启hystrix
management:
endpoints:
web:
exposure:
include: "*"
server:
port: 10114
servlet:
context-path: /
ssl:
enabled: false
endpoint:
health:
show-details: always
hystrix:
stream:
enabled: true
4.输入http://192.168.9.6:10114/actuator/hystrix.stream 显示
5.输入http://192.168.9.6:8765/hystrix 显示
6.填入http://192.168.9.6:10114/actuator/hystrix.stream 点击 Monitor Stream 显示
欢迎指正:haizi2014@qq.com