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.加依赖


    org.springframework.boot
    spring-boot-starter-actuator

2.启动后调用接口

3.打开监控

ip:接口/hystrix.stream

4.测试

Hystrix的监控_第1张图片

Feign方式整合的Hystrix

1.加依赖



    org.springframework.cloud
    spring-cloud-starter-netflix-hystrix

2.启动类添加注解

Hystrix的监控_第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

你可能感兴趣的:(SpringCloud)