hystrix-dashboard 报错 /actuator/hystrix.stream 404 Not Found

版权声明:本文为 码农笔录 公众号 原创文章,未经博主允许不得转载。 https://blog.csdn.net/yp090416/article/details/81437390

springcloud 中使用 hystrix-dashboard 进行监控的时候启动报错”path”:”/actuator/hystrix.stream”,”status”:404,”error”:”Not Found”

这是因为springboot2.x使用了endpoint

解决办法是在被监控的微服务的bootstrap.yml文件中加入如下配置

management:
  endpoints:
    web:
      exposure:
        include: ["hystrix-stream"]

这样就可以了,但是actuator/health就无法访问了,所以还可以选择全部放开。

management:
  endpoints:
    web:
      exposure:
        include: '*'

关注

如果有问题,请在下方评论,或者加群讨论 200909980

关注下方微信公众号,可以及时获取到各种技术的干货哦,如果你有想推荐的帖子,也可以联系我们的。

这里写图片描述

猜你喜欢

转载自blog.csdn.net/yp090416/article/details/81437390