Spring Cloud:Hystrix 監控面板【Finchley 版】Unable to connect to Command Metric Stream
阿新 • • 發佈:2019-02-12
(1)方法一:version 2.0.0.
management.endpoints.web.exposure.include=hystrix.stream" adding in bootstrap.properties;
and the url was change to "http://host:port/actuator/hystrix.stream", it is ok.
also,"management.endpoints.web.base-path=/ " can make "http://host:port/hystrix.stream" work.
(2)方法二:version 2.0.0.
public class HystrixServletDefinitions {
@Bean(name = "hystrixRegistrationBean") public ServletRegistrationBean servletRegistrationBean() { ServletRegistrationBean registration = new ServletRegistrationBean( new HystrixMetricsStreamServlet(), "/hystrix.stream"); registration.setName("hystrixServlet"); registration.setLoadOnStartup(1); return registration; }
}
解決連結:https://github.com/Netflix/Hystrix/issues/1566
解決連結:https://blog.csdn.net/qq_22772259/article/details/79812026