Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

Springcloud Micro Service configuration Monitoring Endpoint hystrix.stream

Shulou Source: shulou.com Published: 2022-06-02 23:27:25 11月16日 Update

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

Tags: Monitoring services endpoints configuration code penguins reasons business friends service systems electronics e-commerce systems requirements responses Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Linux OPPO Reno MySQL Redmi Docker