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

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/hystrix.stream 404 Not Found)