Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Springcloud Micro Service configuration Monitoring Endpoint hystrix.stream

2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

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

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report