Hystrix Dashboard监控报“Unable to connect to Command Metric Stream”?

问题截图

 

问题排查

排查应用日志,发现有个WARN警告信息(这个日志信息提示非常明确了):

http://scclient1:7001/actuator/hystrix.stream is not in the allowed list of proxy host names.  If it should be allowed add it to hystrix.dashboard.proxyStreamAllowList.

问题解决

1、在应用配置文件中加上以下参数:

hystrix.dashboard.proxy-stream-allow-list=scclient1

2、客户端触发Feign调用,验证http://scclient1:7001/actuator/hystrix.stream接口是否能正常返回数据:

 3、如果【步骤2】中ping没有数据返回,则要检查应用配置是否将actuator的相关监控endpoints暴露:

#开启所有端点(不推荐),在生产环境建议只开启需要的即可
management.endpoints.web.exposure.include=*
原文地址:https://www.cnblogs.com/itsharehome/p/15628220.html