This is an automated email from the ASF dual-hosted git repository.

spricoder pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iotdb.git


The following commit(s) were added to refs/heads/master by this push:
     new 17b3c1a80b2 fix missing metric (#10194)
17b3c1a80b2 is described below

commit 17b3c1a80b2ad6bab909dff604099bc9f561d485
Author: Potato <[email protected]>
AuthorDate: Sat Jun 17 16:47:55 2023 +0200

    fix missing metric (#10194)
    
    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) {

Reply via email to