Check before init agg metrics (#12989)
This commit is contained in:
parent
c12a57eb3c
commit
025c078948
|
|
@ -267,10 +267,16 @@ public class AggregateMetricsCollector implements MetricsCollector<RequestEvent>
|
|||
@Override
|
||||
public void initMetrics(MetricsEvent event) {
|
||||
MethodMetric metric = new MethodMetric(applicationModel, event.getAttachmentValue(MetricsConstants.INVOCATION));
|
||||
initMethodMetric(event);
|
||||
initQpsMetric(metric);
|
||||
initRtMetric(metric);
|
||||
initRtAgrMetric(metric);
|
||||
if (enableQps) {
|
||||
initMethodMetric(event);
|
||||
initQpsMetric(metric);
|
||||
}
|
||||
if (enableRt) {
|
||||
initRtMetric(metric);
|
||||
}
|
||||
if (enableRtPxx) {
|
||||
initRtAgrMetric(metric);
|
||||
}
|
||||
}
|
||||
|
||||
public void initMethodMetric(MetricsEvent event){
|
||||
|
|
|
|||
Loading…
Reference in New Issue