1
:添加依赖
<dependency>
<groupId>org.springframework.boot<
/groupId>
<artifactId>spring-boot-starter-actuator<
/artifactId>
<
/dependency>
<dependency>
<groupId>org.springframework.cloud<
/groupId>
<artifactId>spring-cloud-starter-netflix-hystrix<
/artifactId>
<
/dependency>
<dependency>
<groupId>org.springframework.cloud<
/groupId>
<artifactId>spring-cloud-starter-netflix-hystrix-dashboard<
/artifactId>
<
/dependency>
2.
在
Application
中添加
@EnableHystrixDashboard
3.添加
application.yml
配置
management:
endpoints:
web:
exposure:
include:
'*'
4.
访问测试
http:
//localhost:xxxx/hystrix
5.
输入监控断点展示监控的详细数据
http:
//localhost:xxxx/actuator/hystrix.stream