【全栈之路】微服务课程14_Hystrix之监控

新增配置

management:
  endpoints:
    web:
      exposure:
        include: 'hystrix.stream'

新增依赖


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


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

启动增加注解

@EnableHystrixDashboard

【全栈之路】微服务课程14_Hystrix之监控_第1张图片

测试访问

http://localhost:8010/hystrix/

http://localhost:8010/actuator/hystrix.stream

【全栈之路】微服务课程14_Hystrix之监控_第2张图片

【全栈之路】微服务课程14_Hystrix之监控_第3张图片

你可能感兴趣的:(springboot,springcloud)