美文网首页
hystrix-dashboard 报错 /actuator/h

hystrix-dashboard 报错 /actuator/h

作者: 码农笔录 | 来源:发表于2018-08-06 00:07 被阅读364次

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: '*'

相关文章

网友评论

      本文标题:hystrix-dashboard 报错 /actuator/h

      本文链接:https://www.haomeiwen.com/subject/jwgivftx.html