This is an automated email from the ASF dual-hosted git repository. tanxinyu pushed a commit to branch iot_consensus_missing_metric in repository https://gitbox.apache.org/repos/asf/iotdb.git
commit 111f955cc07e7973346264f2075dcede966e2a95 Author: OneSizeFitQuorum <[email protected]> AuthorDate: Sat Jun 17 08:49:24 2023 +0200 fix missing metric Signed-off-by: OneSizeFitQuorum <[email protected]> --- .../logdispatcher/LogDispatcherThreadMetrics.java | 38 ++++++++++++---------- 1 file changed, 20 insertions(+), 18 deletions(-) diff --git a/consensus/src/main/java/org/apache/iotdb/consensus/iot/logdispatcher/LogDispatcherThreadMetrics.java b/consensus/src/main/java/org/apache/iotdb/consensus/iot/logdispatcher/LogDispatcherThreadMetrics.java index 130c35041a6..bcfc8382eeb 100644 --- a/consensus/src/main/java/org/apache/iotdb/consensus/iot/logdispatcher/LogDispatcherThreadMetrics.java +++ b/consensus/src/main/java/org/apache/iotdb/consensus/iot/logdispatcher/LogDispatcherThreadMetrics.java @@ -91,24 +91,26 @@ public class LogDispatcherThreadMetrics implements IMetricSet { } private void bindStageHistogram(AbstractMetricService metricService) { - metricService.getOrCreateHistogram( - Metric.STAGE.toString(), - MetricLevel.IMPORTANT, - Tag.NAME.toString(), - Metric.IOT_CONSENSUS.toString(), - Tag.TYPE.toString(), - "constructBatch", - Tag.REGION.toString(), - peerGroupId); - metricService.getOrCreateHistogram( - Metric.STAGE.toString(), - MetricLevel.IMPORTANT, - Tag.NAME.toString(), - Metric.IOT_CONSENSUS.toString(), - Tag.TYPE.toString(), - "syncLogTimePerRequest", - Tag.REGION.toString(), - peerGroupId); + constructBatchHistogram = + metricService.getOrCreateHistogram( + Metric.STAGE.toString(), + MetricLevel.IMPORTANT, + Tag.NAME.toString(), + Metric.IOT_CONSENSUS.toString(), + Tag.TYPE.toString(), + "constructBatch", + Tag.REGION.toString(), + peerGroupId); + syncLogTimePerRequestHistogram = + metricService.getOrCreateHistogram( + Metric.STAGE.toString(), + MetricLevel.IMPORTANT, + Tag.NAME.toString(), + Metric.IOT_CONSENSUS.toString(), + Tag.TYPE.toString(), + "syncLogTimePerRequest", + Tag.REGION.toString(), + peerGroupId); } private void unbindStageHistogram(AbstractMetricService metricService) {
