关于springCloud 2.0以上版本中Turbine聚合监控时一直出现loading的问题

springboot 版本 :  2.0.4.RELEASE

cloud版本:  Finchley.SR1

 

        单个Hystrix Dashboard监控按正常的配置去写,监控图形化界面都正常出来;当时用Turbine将每个服务Hystrix Dashboard数据进行整合的时候,一直显示loading,困扰了好久都没弄好,后来发现在feign 配置Dashboard 端中yml配置有这么一段

register-with-eureka: false  #false表示不向注册中心注册自己。

将其注销之后再启动服务,问题解决,loading消失了!!!(自己头一次玩cloud,网上资料翻多了,头都搞糊涂了,yml也是瞎写把自己搞晕了),下面是我feign客户单yml配置文件。


server:
  port: 8099

feign:
  hystrix:
    enabled: true

feign-client:
    ribbon:     #RetryRule   RandomRule
      NFLoadBalancerRuleClassName: com.netflix.loadbalancer.RetryRule

eureka:
  client:
  # register-with-eureka: false  #false表示不向注册中心注册自己。
    service-url:
      defaultZone: #eureka服务器地址

spring:
  application:
    name: feign-client-hy

management:
  endpoints:
    web:
      base-path: /actuator
      exposure:
        include: "*"
      cors:
        allowed-origins: "*"
        allowed-methods: "*"

这个是 Eureka服务端截图:

关于springCloud 2.0以上版本中Turbine聚合监控时一直出现loading的问题_第1张图片

参考链接https://www.kancloud.cn/fymod/springcloud2/784132

你可能感兴趣的:(springCloud,springboot)