我是靠谱客的博主 坦率纸鹤,这篇文章主要介绍Hystrix的监控,现在分享给大家,希望可以做个参考。

返回目录

https://blog.csdn.net/BW_Bear/article/details/88746646

源码位置:

微服务注册管理:

https://github.com/zhaowei-zhang/CloudTest/tree/master/使用Hystrix实现容错/microservice-discovery-eureka

生产者:

https://github.com/zhaowei-zhang/CloudTest/tree/master/使用Hystrix实现容错/microservice-provider-user

通用方式整合:

https://github.com/zhaowei-zhang/CloudTest/tree/master/使用Hystrix实现容错/microservice-consumer-movie-ribbon-hystrix

Feign方式整合:

https://github.com/zhaowei-zhang/CloudTest/tree/master/使用Hystrix实现容错/microservice-consumer-movie-feign-hystrix-fallback-stream

通用方式整合的Hystrix

1.加依赖

<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-actuator</artifactId>
</dependency>

2.启动后调用接口

3.打开监控

ip:接口/hystrix.stream

4.测试

在这里插入图片描述

Feign方式整合的Hystrix

1.加依赖

<!--hystrix 依赖-->
<dependency>
    <groupId>org.springframework.cloud</groupId>
    <artifactId>spring-cloud-starter-netflix-hystrix</artifactId>
</dependency>

2.启动类添加注解

在这里插入图片描述

3.打开监控

ip:接口/hystrix.stream

4.测试

在这里插入图片描述

Hystrix监控可视化

https://blog.csdn.net/BW_Bear/article/details/88769748

返回目录

https://blog.csdn.net/BW_Bear/article/details/88746646

最后

以上就是坦率纸鹤最近收集整理的关于Hystrix的监控的全部内容,更多相关Hystrix内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(139)

评论列表共有 0 条评论

立即
投稿
返回
顶部