Springcloud Micro Service configuration Monitoring Endpoint hystrix.stream
Springcloud Micro Service configuration Monitoring Endpoint hystrix.stream
Friends with spring cloud b2b2c e-commerce needs can add penguins to ask: 1038774626
In spring cloud 2.0.2.RELEASE micro-service system, services need to be added to hystrix dashboard monitoring. # when adding exposed endpoints to the monitored service, the yml configuration is as follows:
Management: endpoints: web: exposure: include: hystrix.stream
However, there was no response when visiting host:port/actuator/hystrix.stream. The following code was added to the startup class before OK. The reason is not known, so make a note first.
@ Bean public ServletRegistrationBean hystrixMetricsStreamServlet () {ServletRegistrationBean registration = new ServletRegistrationBean (new HystrixMetricsStreamServlet ()); registration.addUrlMappings ("/ actuator/hystrix.stream"); return registration;}