spring-boot
spring-boot copied to clipboard
HystrixMetricsStreamServlet not loaded
Hi Spring team
Question
Trying to simply publish the /hystrix.streamendpoint and following the spring boot hystrix documentation I noticed that the servlet isn't instantiated at all. I had to add the following to achieve that
@Bean
public ServletRegistrationBean servletRegistrationBean() {
return new ServletRegistrationBean(new HystrixMetricsStreamServlet(), "/hystrix.stream");
}
I think that the Actuator project should include a Configuration class for that.
Thanks
Actuator doesn't know anything about Hystrix. This is a request for Spring Cloud Netflix: https://github.com/spring-cloud/spring-cloud-netflix