Hystrix 监控可视化
2019-03-23 22:16
232 查看
返回目录
https://www.geek-share.com/detail/2764247365.html
源码位置:
微服务注册管理:
https://github.com/zhaowei-zhang/CloudTest/tree/master/使用Hystrix实现容错/microservice-discovery-eureka
生产者:
https://github.com/zhaowei-zhang/CloudTest/tree/master/使用Hystrix实现容错/microservice-provider-user
Hystrix Dashboard项目:
https://github.com/zhaowei-zhang/CloudTest/tree/master/使用Hystrix实现容错/hystrix-dashboard
Turbine项目:
https://github.com/zhaowei-zhang/CloudTest/tree/master/使用Hystrix实现容错/hystrix-turbine
使用Hystrix Dashboard 可视化监控数据
1.新建可视化监控项目,加依赖
<!--hystrix 可视化监控 依赖--> <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-netflix-hystrix-dashboard</artifactId> <version>RELEASE</version> </dependency>
2.启动类增加注解
3.修改配置文件
4.启动调接口,开监控页
打开新项目的可视化监控地址/hystrix
5.测试
当然要中文的话直接用谷歌网页翻译就好了,哈哈
使用Turbine 监控多个微服务
1.新建Turbine项目
2.加依赖
<!--hystrix 依赖--> <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-netflix-turbine</artifactId> <version>RELEASE</version> </dependency> <!--Eureka client 依赖--> <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId> </dependency>
不要忘了cloud
<dependencyManagement> <dependencies> <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-dependencies</artifactId> <version>Edgware.RELEASE</version> <type>pom</type> <scope>import</scope> </dependency> </dependencies> </dependencyManagement>
3.修改配置文件
server: port: 9106 spring: application: name: hystrixturbine eureka: client: service-url: defaultZone: http://localhost:9100/eureka/ instance: prefer-ip-address: true #表示将注解的IP注册到Eureka Server turbine: app-config: MICROSERVICE-CONSUMER-MOVIE-1,MICROSERVICE-CONSUMER-MOVIE-2 cluster-name-expression: "'default'"
4.启动生产者and消费者们
消费者们如下
MICROSERVICE-CONSUMER-MOVIE-1
MICROSERVICE-CONSUMER-MOVIE-2
5.启动Turbine项目
6.启动Hystrix Dashboard
7.测试
返回目录
相关文章推荐
- Druid+SSM+可视化监控界面
- 搭建一个简单的基于web的网络流量监控可视化系统
- Spring Cloud 应用篇 之 Hystrix Turbine(断路器聚合监控)的基本搭建
- 史上最简单的SpringCloud教程 | 第十三篇: 断路器聚合监控(Hystrix Turbine)
- jvm可视化监控工具的使用
- 学习笔记:微服务-19 Hystrix-Turbine集成监控
- Redis高速内存缓冲平台可视化监控之RedisLive
- Spring Cloud 入门教程(八): 断路器指标数据监控Hystrix Dashboard 和 Turbine
- 使用强大的可视化工具redislive来监控我们的redis,别让自己死的太惨~~~
- Java虚拟机学习 - JDK可视化监控工具
- SpringCloud系列七:Hystrix 熔断机制(Hystrix基本配置、服务降级、HystrixDashboard服务监控、Turbine聚合监控)
- Spring Cloud构建微服务架构:Hystrix监控数据聚合【Dalston版】
- Spring Cloud——断路器监控Hystrix Dashboard&Turbine
- Spring Cloud中Hystrix仪表盘与Turbine集群监控 ( 10 )
- SpringCloud之断路器监控(Hystrix Dashboard)(九)
- .NET Core微服务之基于Steeltoe使用Hystrix熔断保护与监控
- springcloud(五):熔断监控Hystrix Dashboard和Turbine 2017/05/18
- 走进Spring Cloud之六 Hystrix(监控和断路器)(Greenwich版本)
- influxdb + Grafana可视化监控平台
- Keras入门课5 -- 网络可视化及训练监控