spring cloud 的监控turbine-rabbitmq
2018-01-03 15:18
489 查看
前提是你已经有了注册中心,然后搭建一个基础spring cloud 服务,并配置注册服务等等前提环境搭建
接下来描述的服务提供者和服务调用者的配置都是一样的,来自《spring cloud 与 docker微服务架构实战》的读后的个人总结.
pom文件中需要引入spring-cloud-starter-hystrix/spring-cloud-starter-hystrix-dashboard/spring-cloud-netflix-hystrix-stream/spring-cloud-starter-turbine-stream/spring-cloud-starter-stream-rabbit
如下
启动类需要添加如下注解
接下来的操作才是关键
1,将注册中心 服务提供者 服务调用者 都启动
2.访问服务提供者 ip:port/hystrix 如图
3. 图中总共有三个文本框,其中第一个文本框是必填的,填写的是服务调用者的 ip:port/hystrix.stream,然后点击Monitor Stream.
4. 注意,如果第一个文本框填写的不正确会展示如下内容
5. 访问服务调用者,当然,该服务调用者提供的接口需要调用服务提供者提供的接口的
6.这时候就能看到如下内容,就证明你成功了
访问hystrix.stream
访问该连接时,想要出现如下的情况
这个就要访问服务提供者的 ip:port/hystrix.stream
接下来描述的服务提供者和服务调用者的配置都是一样的,来自《spring cloud 与 docker微服务架构实战》的读后的个人总结.
pom文件中需要引入spring-cloud-starter-hystrix/spring-cloud-starter-hystrix-dashboard/spring-cloud-netflix-hystrix-stream/spring-cloud-starter-turbine-stream/spring-cloud-starter-stream-rabbit
如下
<dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-hystrix</artifactId> </dependency> <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-hystrix-dashboard</artifactId> </dependency> <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-netflix-hystrix-stream</artifactId> </dependency> <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-turbine-stream</artifactId> </dependency> <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-stream-rabbit</artifactId> </dependency>
启动类需要添加如下注解
/*turibine监控*/ @EnableTurbineStream @EnableCircuitBreaker /*Dashboard监控*/ @EnableHystrixDashboard
接下来的操作才是关键
1,将注册中心 服务提供者 服务调用者 都启动
2.访问服务提供者 ip:port/hystrix 如图
3. 图中总共有三个文本框,其中第一个文本框是必填的,填写的是服务调用者的 ip:port/hystrix.stream,然后点击Monitor Stream.
4. 注意,如果第一个文本框填写的不正确会展示如下内容
5. 访问服务调用者,当然,该服务调用者提供的接口需要调用服务提供者提供的接口的
6.这时候就能看到如下内容,就证明你成功了
访问hystrix.stream
访问该连接时,想要出现如下的情况
这个就要访问服务提供者的 ip:port/hystrix.stream
相关文章推荐
- spring cloud 的监控turbine-rabbitmq 深入学习--监控中心搭建
- Spring Cloud——断路器监控Hystrix Dashboard&Turbine
- Spring Cloud 之服务监控 turbine(六)
- Spring Cloud中Hystrix仪表盘与Turbine集群监控
- spring cloud 的监控turbine-rabbitmq的示例
- Spring Cloud学习--容错机制(Hystrix之Turbine集群监控)
- Cloud中Hystrix仪表盘与Turbine集群监控
- 详解Spring Cloud 断路器集群监控(Turbine)
- shell脚本监控rabbitmq队列消息数量(堵塞情况)
- RabbitMQ安装与监控
- RabbitMQ监控(2)——RabbitMQ-javaclient使用
- RabbitMQ监控(3)——核心监控类实现
- spring cloud熔断监控Hystrix Dashboard和Turbine
- springcloud(五):熔断监控Hystrix Dashboard和Turbine
- RabbitMQ监控(4)——URL监控
- RabbitMQ监控(4)——URL监控
- 最简单的 RabbitMQ 监控方法
- SpringCloud: 断路器聚合监控(Hystrix Turbine)
- hystrix-turbine 监控的使用
- 史上最简单的SpringCloud教程 | 第十三篇: 断路器聚合监控(Hystrix Turbine)