- 项目地址完整例子传送门
- 此篇文章用到项目模块:
![](https://i-blog.csdnimg.cn/blog_migrate/a747e70187052aa9b9794eb0eae3b43f.png)
- 模块介绍:
1. eureka-server-standalone
: 提供注册中心的服务
2. hystrix-client
:提供接口服务
3. hystrix-consumer
: 消费接口服务,包含hystrix模块功能
4. hystrix-dashboard
:服务实例运行的监控面板
5. hystrix-turbine
:将多个服务实例的监控数据聚集到一起,进行联合监控
一.可视化面板Hystrix Dashboard
1.在centralpark的父项目下创建hystrix-dashboard
<dependencies>
<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-eureka-client</artifactId>
</dependency>
<de