huaweicloud / spring-cloud-huawei

Spring Cloud Huawei is a framework that makes it easier and productive to develop microservices with Spring Cloud.
https://github.com/huaweicloud/spring-cloud-huawei/wiki
Apache License 2.0
518 stars 222 forks source link

通过浏览器调用consumer服务,consumer服务调用provider服务,只有provider端上报数据,consumer端缺少数据上报 #761

Closed david6969xin closed 2 years ago

liubao68 commented 2 years ago

你是如何验证的?这个需要使用最新代码, 并且consumer和provider都需要开启 客户端熔断 和 服务端熔断。

servicecomb:
  matchGroup:
    AllOperation: |
      matches:
        - apiPath:
            prefix: "/"
  # 服务端熔断
  circuitBreaker:
    AllOperation: |
      minimumNumberOfCalls: 5
      slidingWindowSize: 10
      slidingWindowType: COUNT_BASED
      failureRateThreshold: 20
  # 客户端熔断
  instanceIsolation:
    AllOperation: |
      minimumNumberOfCalls: 5
      slidingWindowSize: 10
      slidingWindowType: COUNT_BASED
      failureRateThreshold: 20

参考:https://github.com/huaweicloud/spring-cloud-huawei/wiki/dashboard

david6969xin commented 2 years ago

嗯嗯 看到这块的代码了(GovernanceMonitorDataProvider)