Unable to connect to Command Metric Stream. 问题解决

初次使用SpringCloud Hystrix DashBoard 会出现 Unable to connect to Command Metric Stream

这里写图片描述

通过启动信息可以看到,
http://localhost:8181/actuator/hystrix.stream 是404 ,说明在SpringCloud Finchley.SR1 版本中,该访问路径是默认不开启的,所以我们需要手动开启昂

2018-09-03 00:34:19.382  WARN 29124 --- [nio-8181-exec-2] ashboardConfiguration$ProxyStreamServlet : Failed opening connection to http://localhost:8181/actuator/hystrix.stream : 404 : HTTP/1.1 404 
2018-09-03 00:34:19.382  WARN 29124 --- [nio-8181-exec-1] ashboardConfiguration$ProxyStreamServlet : Failed opening connection to http://localhost:8181/actuator/hystrix.stream : 404 : HTTP/1.1 404 

application.yml 文件中增加以下配置:

#暴露全部的监控信息
management:
  endpoints:
    web:
      exposure:
        include: "*"

此时再次启动,发现上述错误已经没有了,再次访问监控面板,是loading 状态。。。
这里写图片描述

调用feign 服务API,再次查看界面,在 Dashboard 界面即可看到 Hystrix 监控界面:

这里写图片描述

参考文章:
https://www.cnblogs.com/mark7/p/8920288.html
https://docs.spring.io/spring-boot/docs/current-SNAPSHOT/reference/htmlsingle/#boot-features-security-actuator

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

大痴小乙

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值