使用并解决高版本hystrix-dashboard-turbine集群监控无法使用,长时间loading的问题

mac2026-03-03  9

当使用Turbine 来监控整个系统和集群的时候,会出现长时间loading的情况,无法正常使用,以前旧版本的解决方式无法正常解决,我将从头到尾整合并达到可使用! 环境: spring boot:2.1.5 spring cloud:Greenwich.SR1

1.需要引入以下jar:

2.需要在application开启注解服务:

因为监控的服务不光要开启熔断和仪表盘,同样也要开启turbine

3.YML配置

4.在需要监控的服务下配置bean

我尝试了了很多遍,发现单独的设置yml是不起作用的 并且也能解决以下异常:

com.netflix.turbine.monitor.instance.InstanceMonitor$MisconfiguredHostException: [{"timestamp":"2018-08-07T03:36:31.487+0000","status":404,"error":"Not Found","message":"No message available","path":"/actuator/hystrix.stream"}]

5.此步骤非常重要,必须调用带有@HystrixCommand的方法才能监控到,普通的方法是监控不到的,所以没有数据,一直loading!

最新回复(0)