第四章、spring cloud---熔断监控Hystrix+Dashboard+Turbine+security

Hystrix+Dashboard+Turbine+security集成

  1. Hystrix-dashboard是一款针对Hystrix进行实时监控的工具,通过Hystrix Dashboard我们可以在直观地看到各Hystrix Command的请求响应时间, 请求成功率等数据。
  2. 但是只使用Hystrix Dashboard的话, 你只能看到单个应用内的服务信息, 这明显不够. 但是只使用Hystrix Dashboard的话, 你只能看到单个应用内的服务信息, 这明显不够. 我们需要一个工具能让我们汇总系统内多个服务的数据并显示到Hystrix Dashboard上, 这个工具就是Turbine.
  3. 最后使用Spring Security保护你的Eureka注册服务中心.

项目节点
04spring-cloud-hystrix-dashboard-turbine
---->0401spring-cloud-eureka 说明:服务注册中心eureka配置(增加Security) 1.spring cloud服务注册中心eureka server—添加Security用户认证(第四章)
---->0402spring-cloud-consumer-hystrix-dashboard 说明:添加Hystrix Dashboard 2.spring cloud服务注册中心eureka server—添加Hystrix Dashboard(第四章)
---->0403spring-cloud-producer 说明:服务提供者,增加Security的pom文件和properties相关引用。
---->0404spring-cloud-consumer-hystrix-node1 说明:服务注册中心消费者-node1满足turbin集成的测试 3.spring cloud服务注册中心eureka server—Hystrix Dashboard的turbine集成(第四章)
---->0405spring-cloud-consumer-hystrix-node2 说明:服务注册中心消费者-node2满足turbin集成的测试 3.spring cloud服务注册中心eureka server—Hystrix Dashboard的turbine集成(第四章)
---->0406spring-cloud-hystrix-dashboard-turbine 说明:hystrix-dashboard-turbine集成展示 3.spring cloud服务注册中心eureka server—Hystrix Dashboard的turbine集成(第四章)

示例代码-码云 https://gitee.com/sharps/springcloud

猜你喜欢

转载自blog.csdn.net/qq_40342015/article/details/83994330