springcloud微服務配置監控端點hystrix.stream-創新互聯
springcloud 微服務配置監控端點 hystrix.stream
有spring cloud b2b2c電子商務需求的朋友可以加企鵝求求:一零三八七七四六二六
spring cloud 2.0.2.RELEASE 微服務系統中需要將服務添加到hystrix dashboard監控,#在被監控服務上添加暴露端點時yml配置如下:
management: endpoints: web: exposure: include: hystrix.stream
但是訪問 host:port/actuator/hystrix.stream沒反應,在啟動類加入了如下代碼才OK,原因還不知道,先做個記錄
@Bean public ServletRegistrationBean hystrixMetricsStreamServlet() { ServletRegistrationBean registration = new ServletRegistrationBean(new HystrixMetricsStreamServlet()); registration.addUrlMappings("/actuator/hystrix.stream"); return registration; }
網頁題目:springcloud微服務配置監控端點hystrix.stream-創新互聯
文章地址:http://www.xueling.net.cn/article/dcceos.html