1. 程式人生 > >第四章、spring cloud---熔斷監控Hystrix+Dashboard+Turbine+security

第四章、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