本文共 608 字,大约阅读时间需要 2 分钟。
SpringCloud(Finchley.SR2)整合hystrix dashboard 提示Unable to connect to Command Metric Stream.
springcloud(Finchley.SR2)需要使用下面地址
而不是
搜了很多解决方案,突然看到这个博客
将下面的代码配置加到配置中
@Bean public ServletRegistrationBean getServlet(){ HystrixMetricsStreamServlet streamServlet = new HystrixMetricsStreamServlet(); ServletRegistrationBean registrationBean = new ServletRegistrationBean(streamServlet); registrationBean.setLoadOnStartup(1); registrationBean.addUrlMappings("/actuator/hystrix.stream"); registrationBean.setName("HystrixMetricsStreamServlet"); return registrationBean; }
转载地址:http://dhmdi.baihongyu.com/