断路器Dashboard监控仪表盘的使用
在原有的orderserverfeignhystrix服务中使用
1、增加依赖仓库
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-netflix-hystrix-dashboard</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
2、启动类增加注解
@EnableHystrixDashboard
3、配置文件增加配置
management:
endpoints:
web:
exposure:
include: "*"
4、访问链接
4、访问入口
http://localhost:8651/hystrix
Hystrix Dashboard输入: http://localhost:8651/actuator/hystrix.stream