You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by xi...@apache.org on 2022/11/23 02:51:05 UTC

[iotdb] branch rel/0.13 updated: [IOTDB-5025][To rel/0.13] Fix the tag of metrics in 0.13 version (#8102)

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

xingtanzjr pushed a commit to branch rel/0.13
in repository https://gitbox.apache.org/repos/asf/iotdb.git


The following commit(s) were added to refs/heads/rel/0.13 by this push:
     new d4c5b546c7 [IOTDB-5025][To rel/0.13] Fix the tag of metrics in 0.13 version (#8102)
d4c5b546c7 is described below

commit d4c5b546c75c47319ffafc91a11d68bb25f6f910
Author: ZhangHongYin <46...@users.noreply.github.com>
AuthorDate: Wed Nov 23 10:50:59 2022 +0800

    [IOTDB-5025][To rel/0.13] Fix the tag of metrics in 0.13 version (#8102)
---
 .../iotdb/db/engine/compaction/CompactionMetricsManager.java | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)

diff --git a/server/src/main/java/org/apache/iotdb/db/engine/compaction/CompactionMetricsManager.java b/server/src/main/java/org/apache/iotdb/db/engine/compaction/CompactionMetricsManager.java
index 1ec4f41393..a7267f2293 100644
--- a/server/src/main/java/org/apache/iotdb/db/engine/compaction/CompactionMetricsManager.java
+++ b/server/src/main/java/org/apache/iotdb/db/engine/compaction/CompactionMetricsManager.java
@@ -52,9 +52,7 @@ public class CompactionMetricsManager {
             Tag.NAME.toString(),
             compactionType.toString(),
             Tag.TYPE.toString(),
-            aligned ? "ALIGNED" : "NOT_ALIGNED",
-            Tag.TYPE.toString(),
-            processChunkType.toString());
+            (aligned ? "ALIGNED" : "NOT_ALIGNED") + "_" + processChunkType.toString());
     MetricService.getInstance()
         .count(
             byteNum / 1024L,
@@ -134,9 +132,7 @@ public class CompactionMetricsManager {
                 Metric.COST_TASK.toString(),
                 MetricLevel.IMPORTANT,
                 Tag.NAME.toString(),
-                "compaction",
-                Tag.NAME.toString(),
-                isInnerTask ? "inner" : "cross");
+                (isInnerTask ? "inner" : "cross") + "_compaction");
         if (isInnerTask) {
           MetricService.getInstance()
               .count(
@@ -156,7 +152,9 @@ public class CompactionMetricsManager {
                   Metric.COMPACTION_TASK_COUNT.toString(),
                   MetricLevel.IMPORTANT,
                   Tag.NAME.toString(),
-                  "cross_compaction_count");
+                  "cross_compaction_count",
+                  Tag.TYPE.toString(),
+                  "cross");
         }
         break;
     }