springBoot Ribbon Hystrix Dashboard

1.引入依赖

<!-- 引入关于 hystrix Dashboard的依赖 -->
        <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-starter-netflix-hystrix-dashboard</artifactId>
            <version>2.0.2.RELEASE</version>
        </dependency>

2.主函数开启

@EnableHystrixDashboard

3.actuator 中开启hyxstrix

management:
  endpoints:
    web:
      exposure:
        include: "*"
  server:
    port: 10113
    servlet:
      context-path: /
    ssl:
      enabled: false
  endpoint:
    health:
      show-details: always
    hystrix:
      stream:
        enabled: true

4.运行http://192.168.9.6:10113/actuator/hystrix.stream  显示

5.运行 http://192.168.9.6:8764/hystrix 显示

6.填入http://192.168.9.6:10113/actuator/hystrix.stream 点击Monitor Stream 显示

 

posted @ 2018-12-21 11:25  点点_滴滴  阅读(358)  评论(0编辑  收藏  举报