打开Hystrix Stream页面,进入后,发现只有一行Unable to connect to Command Metric Stream

解决方法:

在客户端启动类中需要配置servlet

@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;
}

打开Hystrix Stream页面,进入后,发现只有一行Unable to connect to Command Metric Stream

相关文章:

  • 2022-12-23
  • 2021-11-23
  • 2021-10-07
  • 2022-12-23
  • 2021-06-10
  • 2021-05-15
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-07-08
  • 2022-03-05
  • 2021-12-14
  • 2021-11-13
  • 2022-01-10
  • 2021-04-20
相关资源
相似解决方案