Spring Cloud:Hystrix 监控面板【Finchley 版】Unable to connect to Command Metric Stream


(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.

@configuration
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

你可能感兴趣的:(SpringCloud)