Fix meter value not correct in some MAL function (#10197)
This commit is contained in:
parent
66234d52b2
commit
449b249559
|
|
@ -60,6 +60,7 @@
|
|||
* Fix ServiceMeshServiceDispatcher overwrite ServiceDispatcher debug file when open SW_OAL_ENGINE_DEBUG.
|
||||
* Use `groupBy` and `in` operators to optimize topology query for BanyanDB storage plugin.
|
||||
* Support server status watcher for `MetricsPersistentWorker` to check the metrics whether required initialization.
|
||||
* Fix the meter value are not correct when using `sumPerMinLabeld` or `sumHistogramPercentile` MAL function.
|
||||
|
||||
#### UI
|
||||
|
||||
|
|
|
|||
|
|
@ -233,9 +233,9 @@ public abstract class SumHistogramPercentileFunction extends Meter implements Ac
|
|||
SumHistogramPercentileFunction metrics = (SumHistogramPercentileFunction) createNew();
|
||||
metrics.setEntityId(getEntityId());
|
||||
metrics.setTimeBucket(toTimeBucketInHour());
|
||||
metrics.setSummation(getSummation());
|
||||
metrics.setRanks(getRanks());
|
||||
metrics.setPercentileValues(getPercentileValues());
|
||||
metrics.getSummation().copyFrom(getSummation());
|
||||
metrics.getRanks().copyFrom(getRanks());
|
||||
metrics.getPercentileValues().copyFrom(getPercentileValues());
|
||||
return metrics;
|
||||
}
|
||||
|
||||
|
|
@ -244,9 +244,9 @@ public abstract class SumHistogramPercentileFunction extends Meter implements Ac
|
|||
SumHistogramPercentileFunction metrics = (SumHistogramPercentileFunction) createNew();
|
||||
metrics.setEntityId(getEntityId());
|
||||
metrics.setTimeBucket(toTimeBucketInDay());
|
||||
metrics.setSummation(getSummation());
|
||||
metrics.setRanks(getRanks());
|
||||
metrics.setPercentileValues(getPercentileValues());
|
||||
metrics.getSummation().copyFrom(getSummation());
|
||||
metrics.getRanks().copyFrom(getRanks());
|
||||
metrics.getPercentileValues().copyFrom(getPercentileValues());
|
||||
return metrics;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -108,7 +108,7 @@ public abstract class SumPerMinLabeledFunction extends Meter implements Acceptab
|
|||
metrics.setEntityId(getEntityId());
|
||||
metrics.setTimeBucket(toTimeBucketInHour());
|
||||
metrics.setServiceId(getServiceId());
|
||||
metrics.setTotal(getTotal());
|
||||
metrics.getTotal().copyFrom(getTotal());
|
||||
return metrics;
|
||||
}
|
||||
|
||||
|
|
@ -118,7 +118,7 @@ public abstract class SumPerMinLabeledFunction extends Meter implements Acceptab
|
|||
metrics.setEntityId(getEntityId());
|
||||
metrics.setTimeBucket(toTimeBucketInDay());
|
||||
metrics.setServiceId(getServiceId());
|
||||
metrics.setTotal(getTotal());
|
||||
metrics.getTotal().copyFrom(getTotal());
|
||||
return metrics;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue