Spring Cloud Netflix 之 Hystrix ;turbine
Spring Cloud Hystrix Turbine
Hystrix Dashboard 的主要功能是可以对某一项微服务进行监控,但 真实情况下,不可能只对一个微服务进行监控,我们有很多微服务,所以我们需要对很多微服务进行监控,这个时候就需要使用到turbine [ˈtɜːbaɪn] 来完成
Hystrix Dashboard 前面已经知道了,它的主要功能是可以对某一项微服务进行监控,但真实情况下,不可能只对一个微服务进行监控,我们有很多微服务,所以我们需要对很多微服务进行监控,这个时候就需要使用到turbine [ˈtɜːbaɪn] 来完成
单个hystrix服务的监控

多个****hystrix服务的监控

1、 新建一个springbootModule(springcloud-6-service-eureka-hystrix-turbine),设置父项目;
2、 添加spring-cloud-starter-netflix-turbine等依赖;
<dependencies>
<!-- spring-cloud-starter-netflix-turbine -->
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-netflix-turbine</artifactId>
</dependency>
</dependencies>
<!--继承统一的父项目-->
<parent>
<groupId>com.company</groupId>
<artifactId>springcloud-demo</artifactId>
<version>1.0.0</version>
<!-- <relativePath/> <!– lookup parent from repository –>-->
</parent>
<groupId>com.company</groupId>
<artifactId>springcloud-6-service-eureka-hystrix-turbine</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>springcloud-6-service-eureka-hystrix-turbine</name>
<description>Demo project for Spring Boot</description>
<properties>
<java.version>1.8</java.version>
</properties>
<dependencies>
<!-- spring-cloud-starter-netflix-turbine -->
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-netflix-turbine</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>