# bs-service-turbine
**Repository Path**: SpringCloudTestGroup/bs-service-turbine
## Basic Information
- **Project Name**: bs-service-turbine
- **Description**: No description available
- **Primary Language**: Unknown
- **License**: Not specified
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2018-12-18
- **Last Updated**: 2020-12-19
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# bs-service-turbine
#### 项目介绍
查看
主页
eg:http://10.115.37.19:9012/hystrix
#### 软件架构
软件架构说明
#### 安装教程
1. pom.xml
```
`hystrix-dashboard`
org.springframework.cloud
spring-cloud-starter-netflix-hystrix-dashboard
`turbine主包`
org.springframework.cloud
spring-cloud-starter-netflix-turbine
`注册到注册中心`
org.springframework.cloud
spring-cloud-starter-netflix-eureka-client
```
2. 主程序
```
package com.example.turbine;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.hystrix.dashboard.EnableHystrixDashboard;
import org.springframework.cloud.netflix.turbine.EnableTurbine;
@SpringBootApplication
@EnableDiscoveryClient
@EnableTurbine `启动Turbine标记`
@EnableHystrixDashboard `启动HystrixDashboard标记`
public class TurbineServerApplication {
public static void main(String[] args) {
long starTime = System.currentTimeMillis();
SpringApplication.run(TurbineServerApplication.class, args);
long endTime = System.currentTimeMillis();
long time = endTime - starTime;
System.out.println("\nStart Time: " + (time / 1000) + " s");
System.out.println("...............................................................");
System.out.println("..................Service starts successfully..................");
System.out.println("...............................................................");
}
}
```
3. 图例:

#### 使用说明
1. eg: 主页:http://10.115.37.19:9012/hystrix
2. eg: 监控多个:http://10.115.37.19:9012/turbine.stream
3. eg: 监控单个:http://10.115.37.19:9021/actuator/hystrix.stream
#### 参与贡献
spring-cloud-hystrix-dashboard-turbine
把多个hystrix.stream的内容聚合为一个数据源供Dashboard展示,相关文章:
https://blog.csdn.net/hubo_88/article/details/80623032
https://blog.csdn.net/hubo_88/article/details/82255725
#### 码云特技