SpringCloud(Finchley.SR 2)は、hstrix dashboardを統合し、Unbale to connect to Command Metric Streamを提示する。
1269 ワード
SpringCloud(Finchley.SR 2)は、hstrix dashboardを統合し、Unbale to connect to Command Metric Streamを提示する。
springcloud(Finchley.SR 2)は下記のアドレスを使用する必要があります。
http://localhost:9721/actuator/hystrix.stream
ではなくhttp://localhost:9721/hystrix.stream
多くの解決策を探して、突然このブログを見ました。https://blog.csdn.net/ddxd0406/article/details/79643059
下のコードを設定に追加します。
springcloud(Finchley.SR 2)は下記のアドレスを使用する必要があります。
http://localhost:9721/actuator/hystrix.stream
ではなくhttp://localhost:9721/hystrix.stream
多くの解決策を探して、突然このブログを見ました。https://blog.csdn.net/ddxd0406/article/details/79643059
下のコードを設定に追加します。
@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;
}