Unable to connect to Command Metric Stream. 连不上Hystrix监控
来源:10-7 hystrix-dashboard

菜鸟精髓
2018-06-09
我的控制台:
我的版本:
4回答
-
@EnableFeignClients(basePackages = "com.sell.product.client")
@EnableHystrixDashboard
@SpringCloudApplication
@ComponentScan(basePackages = "com.sell")
public class OrderApplication {
public static void main(String[] args) {
SpringApplication.run(OrderApplication.class, args);
}
@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;
}
}加了一样没解决
022020-01-17 -
菜鸟精髓
提问者
2018-06-11
boot 2.0.1 已解决:
@Bean
public ServletRegistrationBean getServlet() {
HystrixMetricsStreamServlet streamServlet = new HystrixMetricsStreamServlet();
ServletRegistrationBean registrationBean = new ServletRegistrationBean(streamServlet);
registrationBean.setLoadOnStartup(1);
registrationBean.addUrlMappings("/hystrix.stream");
registrationBean.setName("HystrixMetricsStreamServlet");
return registrationBean;
}212018-06-19 -
老年新手
2020-08-25
@Bean
public ServletRegistrationBean getServlet(){
HystrixMetricsStreamServlet streamServlet = new HystrixMetricsStreamServlet();
ServletRegistrationBean registrationBean = new ServletRegistrationBean(streamServlet);
registrationBean.setLoadOnStartup(1);
registrationBean.addUrlMappings("/hystrix.stream");
registrationBean.setName("hystrix.stream");
return registrationBean;
}00 -
菜鸟精髓
提问者
2018-06-09
没有老师演示的Application,怎么改???这个版本,跪求老师指导下
00
SpringCloud Finchley(M2+RELEASE+SR2)微服务实战
5672 学习 · 2489 问题
相似问题