Skip to content

Commit

Permalink
refactor:关闭老的ratelimit监控数据上报 (#398)
Browse files Browse the repository at this point in the history
  • Loading branch information
chuntaojun committed May 29, 2023
1 parent 814ed73 commit c7c721c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,6 @@ public static Map<String, String> convertInsGaugeToLabels(InstanceGauge insGauge
case SystemMetricName.CALLEE_METHOD:
addLabel(labelName, insGauge.getMethod(), labels);
break;
case SystemMetricName.CALLEE_SUBSET:
addLabel(labelName, insGauge.getSubset(), labels);
break;
case SystemMetricModel.SystemMetricName.CALLEE_INSTANCE:
addLabel(labelName, buildAddress(insGauge.getHost(), insGauge.getPort()), labels);
break;
Expand Down Expand Up @@ -133,10 +130,6 @@ public static Map<String, String> convertInsGaugeToLabels(InstanceGauge insGauge
String callerIp = Objects.isNull(insGauge.getCallerIp()) ? sdkIP : insGauge.getCallerIp();
addLabel(labelName, callerIp, labels);
break;
case SystemMetricName.RULE_NAME:
String ruleName = Objects.isNull(insGauge.getRuleName()) ? null : insGauge.getRuleName();
addLabel(labelName, ruleName, labels);
break;
default:
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public QuotaResponse getQuota(QuotaRequest request) throws PolarisException {
LimitValidator.validateQuotaRequest(request);
CommonQuotaRequest commonQuotaRequest = new CommonQuotaRequest(request, sdkContext.getConfig());
QuotaResponse response = quotaFlow.getQuota(commonQuotaRequest);
reportRateLimit(request, response);
// reportRateLimit(request, response);
return response;
}

Expand Down

0 comments on commit c7c721c

Please sign in to comment.