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 94ad9f32a9 [IOTDB-5587] Update the cluster info and node info of 
metrics (#9147)
94ad9f32a9 is described below

commit 94ad9f32a9e949f30f33f374d48e6e77e46d8da8
Author: ZhangHongYin <[email protected]>
AuthorDate: Tue Feb 28 09:34:23 2023 +0800

    [IOTDB-5587] Update the cluster info and node info of metrics (#9147)
    
    * Add cluster and nodeType into path or tags
    
    * remove node endpoint and address, add nodeId
    
    * Update prometheus tag
    
    * Update doc
    
    * Fix format
    
    * Fix int output
    
    * Fix path
    
    * Fix Default Name and format
---
 .../confignode/conf/ConfigNodeDescriptor.java      |   3 +-
 docs/UserGuide/Monitor-Alert/Metric-Tool.md        | 172 ++++++++++-----------
 docs/zh/UserGuide/Monitor-Alert/Metric-Tool.md     | 164 ++++++++++----------
 .../apache/iotdb/metrics/config/MetricConfig.java  |  40 +++--
 .../reporter/prometheus/PrometheusTextWriter.java  |  11 ++
 .../iotdb/metrics/utils/IoTDBMetricsUtils.java     |   8 +-
 .../org/apache/iotdb/metrics/utils/NodeType.java   |  30 ++++
 .../org/apache/iotdb/db/conf/IoTDBDescriptor.java  |   3 +-
 8 files changed, 242 insertions(+), 189 deletions(-)

diff --git 
a/confignode/src/main/java/org/apache/iotdb/confignode/conf/ConfigNodeDescriptor.java
 
b/confignode/src/main/java/org/apache/iotdb/confignode/conf/ConfigNodeDescriptor.java
index 1bcfa488f2..4aa8d54522 100644
--- 
a/confignode/src/main/java/org/apache/iotdb/confignode/conf/ConfigNodeDescriptor.java
+++ 
b/confignode/src/main/java/org/apache/iotdb/confignode/conf/ConfigNodeDescriptor.java
@@ -28,6 +28,7 @@ import 
org.apache.iotdb.confignode.manager.load.balancer.router.leader.ILeaderBa
 import 
org.apache.iotdb.confignode.manager.load.balancer.router.priority.IPriorityBalancer;
 import 
org.apache.iotdb.confignode.manager.partition.RegionGroupExtensionPolicy;
 import org.apache.iotdb.metrics.config.MetricConfigDescriptor;
+import org.apache.iotdb.metrics.utils.NodeType;
 
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
@@ -133,7 +134,7 @@ public class ConfigNodeDescriptor {
         MetricConfigDescriptor.getInstance().loadProps(commonProperties);
         MetricConfigDescriptor.getInstance()
             .getMetricConfig()
-            .updateRpcInstance(conf.getInternalAddress(), 
conf.getInternalPort());
+            .updateRpcInstance(conf.getClusterName(), conf.getConfigNodeId(), 
NodeType.CONFIGNODE);
       }
     } else {
       LOGGER.warn(
diff --git a/docs/UserGuide/Monitor-Alert/Metric-Tool.md 
b/docs/UserGuide/Monitor-Alert/Metric-Tool.md
index 3879be46df..fdc9f5a0a2 100644
--- a/docs/UserGuide/Monitor-Alert/Metric-Tool.md
+++ b/docs/UserGuide/Monitor-Alert/Metric-Tool.md
@@ -112,14 +112,14 @@ carefully evaluated. The current Core-level metrics are 
as follows:
 
 #### 4.1.1. Cluster
 
-| Metric                    | Tags                                             
 | Type      | Description                                         |
-| ------------------------- | 
------------------------------------------------- | --------- | 
--------------------------------------------------- |
-| config_node               | name="total",status="Registered/Online/Unknown"  
 | AutoGauge | The number of registered/online/unknown confignodes |
-| data_node                 | name="total",status="Registered/Online/Unknown"  
 | AutoGauge | The number of registered/online/unknown datanodes   |
-| cluster_node_leader_count | name="{{ip}}:{{port}}"                           
 | Gauge     | The count of consensus group leader on each node    |
-| cluster_node_status       | 
name="{{ip}}:{{port}}",type="ConfigNode/DataNode" | Gauge     | The current 
node status, 0=Unkonwn 1=online         |
-| entry                     | name="{{interface}}"                             
 | Timer     | The time consumed of thrift operations              |
-| mem                       | name="IoTConsensus"                              
 | AutoGauge | The memory usage of IoTConsensus, Unit: byte        |
+| Metric                    | Tags                                            
| Type      | Description                                         |
+| ------------------------- | ----------------------------------------------- 
| --------- | --------------------------------------------------- |
+| config_node               | name="total",status="Registered/Online/Unknown" 
| AutoGauge | The number of registered/online/unknown confignodes |
+| data_node                 | name="total",status="Registered/Online/Unknown" 
| AutoGauge | The number of registered/online/unknown datanodes   |
+| cluster_node_leader_count | name="{ip}:{port}"                              
| Gauge     | The count of consensus group leader on each node    |
+| cluster_node_status       | name="{ip}:{port}",type="ConfigNode/DataNode"   
| Gauge     | The current node status, 0=Unkonwn 1=online         |
+| entry                     | name="{interface}"                              
| Timer     | The time consumed of thrift operations              |
+| mem                       | name="IoTConsensus"                             
| AutoGauge | The memory usage of IoTConsensus, Unit: byte        |
 
 #### 4.1.2. Interface
 
@@ -135,31 +135,31 @@ carefully evaluated. The current Core-level metrics are 
as follows:
 | thrift_active_threads | name="ClientRPC-Service"           | AutoGauge | The 
number of thrift active connections of client              |
 | session_idle_time     | name = "sessionId"                 | Histogram | The 
distribution of idle time of different sessions            |
 
-#### 4.1.3. Node Statistics
-| Metric   | Tags                                  | Type      | Description   
                            |
-| -------- | ------------------------------------- | --------- | 
----------------------------------------- |
-| quantity | name="database"                       | AutoGauge | The number of 
database                    |
-| quantity | name="timeSeries"                     | AutoGauge | The number of 
timeseries                  |
-| quantity | name="pointsIn"                       | Counter   | The number of 
write points                |
-| points   | database="{{database}}", type="flush" | Gauge     | The point 
number of last flushed memtable |
-
-#### 4.1.4. Cluster Tracing
-| Metric                               | Tags                                  
               | Type  | Description                                      |
-| ------------------------------------ | 
---------------------------------------------------- | ----- | 
------------------------------------------------ |
-| performance_overview                 | interface="{{interface}}", 
type="{{statement_type}}" | Timer | The time consumed of operations in client   
     |
-| performance_overview_detail          | stage="authority"                     
               | Timer | The time consumed on authority authentication    |
-| performance_overview_detail          | stage="parser"                        
               | Timer | The time consumed on parsing statement           |
-| performance_overview_detail          | stage="analyzer"                      
               | Timer | The time consumed on analyzing statement         |
-| performance_overview_detail          | stage="planner"                       
               | Timer | The time consumed on planning                    |
-| performance_overview_detail          | stage="scheduler"                     
               | Timer | The time consumed on scheduling                  |
-| performance_overview_schedule_detail | stage="schema_validate"               
               | Timer | The time consumed on schema validation           |
-| performance_overview_schedule_detail | stage="trigger"                       
               | Timer | The time consumed on trigger                     |
-| performance_overview_schedule_detail | stage="consensus"                     
               | Timer | The time consumed on consensus                   |
-| performance_overview_schedule_detail | stage="lock"                          
               | Timer | The time consumed on grabbing lock in DataRegion |
-| performance_overview_schedule_detail | stage="memory_block"                  
               | Timer | The time consumed on insert memory control       |
-| performance_overview_schedule_detail | stage="wal"                           
               | Timer | The time consumed on writing wal                 |
-| performance_overview_schedule_detail | stage="memtable"                      
               | Timer | The time consumed on writing memtable            |
-| performance_overview_schedule_detail | stage="last_cache"                    
               | Timer | The time consumed on updating last cache         |
+#### 4.1.2. Node Statistics
+| Metric   | Tags                                | Type      | Description     
                          |
+| -------- | ----------------------------------- | --------- | 
----------------------------------------- |
+| quantity | name="database"                     | AutoGauge | The number of 
database                    |
+| quantity | name="timeSeries"                   | AutoGauge | The number of 
timeseries                  |
+| quantity | name="pointsIn"                     | Counter   | The number of 
write points                |
+| points   | database="{database}", type="flush" | Gauge     | The point 
number of last flushed memtable |
+
+#### 4.1.3. Cluster Tracing
+| Metric                               | Tags                                  
           | Type  | Description                                      |
+| ------------------------------------ | 
------------------------------------------------ | ----- | 
------------------------------------------------ |
+| performance_overview                 | interface="{interface}", 
type="{statement_type}" | Timer | The time consumed of operations in client     
   |
+| performance_overview_detail          | stage="authority"                     
           | Timer | The time consumed on authority authentication    |
+| performance_overview_detail          | stage="parser"                        
           | Timer | The time consumed on parsing statement           |
+| performance_overview_detail          | stage="analyzer"                      
           | Timer | The time consumed on analyzing statement         |
+| performance_overview_detail          | stage="planner"                       
           | Timer | The time consumed on planning                    |
+| performance_overview_detail          | stage="scheduler"                     
           | Timer | The time consumed on scheduling                  |
+| performance_overview_schedule_detail | stage="schema_validate"               
           | Timer | The time consumed on schema validation           |
+| performance_overview_schedule_detail | stage="trigger"                       
           | Timer | The time consumed on trigger                     |
+| performance_overview_schedule_detail | stage="consensus"                     
           | Timer | The time consumed on consensus                   |
+| performance_overview_schedule_detail | stage="lock"                          
           | Timer | The time consumed on grabbing lock in DataRegion |
+| performance_overview_schedule_detail | stage="memory_block"                  
           | Timer | The time consumed on insert memory control       |
+| performance_overview_schedule_detail | stage="wal"                           
           | Timer | The time consumed on writing wal                 |
+| performance_overview_schedule_detail | stage="memtable"                      
           | Timer | The time consumed on writing memtable            |
+| performance_overview_schedule_detail | stage="last_cache"                    
           | Timer | The time consumed on updating last cache         |
 
 #### 4.1.5. Task Statistics
 
@@ -246,7 +246,7 @@ carefully evaluated. The current Core-level metrics are as 
follows:
 | ----------------------------- | 
----------------------------------------------------- | --------- | 
--------------------------------------------------------------------------- |
 | jvm_gc_pause                  | action="end of major GC/end of minor 
GC",cause="xxxx" | Timer     | The number and time consumed of Young GC/Full Gc 
caused by different reason |
 |                               |
-| jvm_gc_concurrent_phase_time  | action="{{action}}",cause="{{cause}}"        
         | Timer     | The number and time consumed of Young GC/Full Gc caused 
by different        |
+| jvm_gc_concurrent_phase_time  | action="{action}",cause="{cause}"            
         | Timer     | The number and time consumed of Young GC/Full Gc caused 
by different        |
 |                               |
 | jvm_gc_max_data_size_bytes    |                                              
         | AutoGauge | The historical maximum value of old memory               
                   |
 | jvm_gc_live_data_size_bytes   |                                              
         | AutoGauge | The usage of old memory                                  
                   |
@@ -258,31 +258,31 @@ carefully evaluated. The current Core-level metrics are 
as follows:
 
 #### 4.2.1. Node
 
-| Metric | Tags                                       | Type      | 
Description                                                   |
-| ------ | ------------------------------------------ | --------- | 
------------------------------------------------------------- |
-| region | name="total",type="SchemaRegion"           | AutoGauge | The total 
number of SchemaRegion in PartitionTable            |
-| region | name="total",type="DataRegion"             | AutoGauge | The total 
number of DataRegion in PartitionTable              |
-| region | name="{{ip}}:{{port}}",type="SchemaRegion" | Gauge     | The number 
of SchemaRegion in PartitionTable of specific node |
-| region | name="{{ip}}:{{port}}",type="DataRegion"   | Gauge     | The number 
of DataRegion in PartitionTable of specific node   |
+| Metric | Tags                                   | Type      | Description    
                                               |
+| ------ | -------------------------------------- | --------- | 
------------------------------------------------------------- |
+| region | name="total",type="SchemaRegion"       | AutoGauge | The total 
number of SchemaRegion in PartitionTable            |
+| region | name="total",type="DataRegion"         | AutoGauge | The total 
number of DataRegion in PartitionTable              |
+| region | name="{ip}:{port}",type="SchemaRegion" | Gauge     | The number of 
SchemaRegion in PartitionTable of specific node |
+| region | name="{ip}:{port}",type="DataRegion"   | Gauge     | The number of 
DataRegion in PartitionTable of specific node   |
 
 #### 4.2.2. IoTConsensus
 
-| Metric       | Tags                                                          
                               | Type      | Description                        
                                   |
-| ------------ | 
--------------------------------------------------------------------------------------------
 | --------- | 
--------------------------------------------------------------------- |
-| mutli_leader | name="logDispatcher-{{IP}}:{{Port}}", region="{{region}}", 
type="currentSyncIndex"           | AutoGauge | The sync index of 
synchronization thread in replica group             |
-| mutli_leader | name="logDispatcher-{{IP}}:{{Port}}", region="{{region}}", 
type="cachedRequestInMemoryQueue" | AutoGauge | The size of cache requests of 
synchronization thread in replica group |
-| mutli_leader | name="IoTConsensusServerImpl", region="{{region}}", 
type="searchIndex"                       | AutoGauge | The write process of 
main process in replica group                    |
-| mutli_leader | name="IoTConsensusServerImpl", region="{{region}}", 
type="safeIndex"                         | AutoGauge | The sync index of 
replica group                                       |
-| mutli_leader | name="IoTConsensusServerImpl", region="{{region}}", 
type="syncLag"                           | AutoGauge | The sync lag of replica 
group                                         |
-| mutli_leader | name="IoTConsensusServerImpl", region="{{region}}", 
type="LogEntriesFromWAL"                 | AutoGauge | The number of logEntries 
from wal in Batch                            |
-| mutli_leader | name="IoTConsensusServerImpl", region="{{region}}", 
type="LogEntriesFromQueue"               | AutoGauge | The number of logEntries 
from queue in Batch                          |
-| stage        | name="iot_consensus", region="{{region}}", 
type="getStateMachineLock"                        | Histogram | The time 
consumed to get statemachine lock in main process            |
-| stage        | name="iot_consensus", region="{{region}}", 
type="checkingBeforeWrite"                        | Histogram | The time 
consumed to precheck before write in main process            |
-| stage        | name="iot_consensus", region="{{region}}", 
type="writeStateMachine"                          | Histogram | The time 
consumed to write statemachine in main process               |
-| stage        | name="iot_consensus", region="{{region}}", 
type="offerRequestToQueue"                        | Histogram | The time 
consumed to try to offer request to queue in main process    |
-| stage        | name="iot_consensus", region="{{region}}", 
type="consensusWrite"                             | Histogram | The time 
consumed to the whole write in main process                  |
-| stage        | name="iot_consensus", region="{{region}}", 
type="constructBatch"                             | Histogram | The time 
consumed to construct batch in synchronization thread        |
-| stage        | name="iot_consensus", region="{{region}}", 
type="syncLogTimePerRequest"                      | Histogram | The time 
consumed to sync log in asynchronous callback process        |
+| Metric       | Tags                                                          
                         | Type      | Description                              
                             |
+| ------------ | 
--------------------------------------------------------------------------------------
 | --------- | 
--------------------------------------------------------------------- |
+| mutli_leader | name="logDispatcher-{IP}:{Port}", region="{region}", 
type="currentSyncIndex"           | AutoGauge | The sync index of 
synchronization thread in replica group             |
+| mutli_leader | name="logDispatcher-{IP}:{Port}", region="{region}", 
type="cachedRequestInMemoryQueue" | AutoGauge | The size of cache requests of 
synchronization thread in replica group |
+| mutli_leader | name="IoTConsensusServerImpl", region="{region}", 
type="searchIndex"                   | AutoGauge | The write process of main 
process in replica group                    |
+| mutli_leader | name="IoTConsensusServerImpl", region="{region}", 
type="safeIndex"                     | AutoGauge | The sync index of replica 
group                                       |
+| mutli_leader | name="IoTConsensusServerImpl", region="{region}", 
type="syncLag"                       | AutoGauge | The sync lag of replica 
group                                         |
+| mutli_leader | name="IoTConsensusServerImpl", region="{region}", 
type="LogEntriesFromWAL"             | AutoGauge | The number of logEntries 
from wal in Batch                            |
+| mutli_leader | name="IoTConsensusServerImpl", region="{region}", 
type="LogEntriesFromQueue"           | AutoGauge | The number of logEntries 
from queue in Batch                          |
+| stage        | name="iot_consensus", region="{region}", 
type="getStateMachineLock"                    | Histogram | The time consumed 
to get statemachine lock in main process            |
+| stage        | name="iot_consensus", region="{region}", 
type="checkingBeforeWrite"                    | Histogram | The time consumed 
to precheck before write in main process            |
+| stage        | name="iot_consensus", region="{region}", 
type="writeStateMachine"                      | Histogram | The time consumed 
to write statemachine in main process               |
+| stage        | name="iot_consensus", region="{region}", 
type="offerRequestToQueue"                    | Histogram | The time consumed 
to try to offer request to queue in main process    |
+| stage        | name="iot_consensus", region="{region}", 
type="consensusWrite"                         | Histogram | The time consumed 
to the whole write in main process                  |
+| stage        | name="iot_consensus", region="{region}", 
type="constructBatch"                         | Histogram | The time consumed 
to construct batch in synchronization thread        |
+| stage        | name="iot_consensus", region="{region}", 
type="syncLogTimePerRequest"                  | Histogram | The time consumed 
to sync log in asynchronous callback process        |
 
 #### 4.2.3. Cache
 
@@ -301,14 +301,14 @@ carefully evaluated. The current Core-level metrics are 
as follows:
 
 #### 4.2.4. Memory
 
-| Metric | Tags                             | Type      | Description          
                                        |
-| ------ | -------------------------------- | --------- | 
------------------------------------------------------------ |
-| mem    | name="database_{{name}}"         | AutoGauge | The memory usage of 
DataRegion in DataNode, Unit: byte       |
-| mem    | name="chunkMetaData_{{name}}"    | AutoGauge | The memory usage of 
chunkMetaData when writting TsFile, Unit: byte |
-| mem    | name="IoTConsensus"              | AutoGauge | The memory usage of 
IoTConsensus, Unit: byte                 |
-| mem    | name="IoTConsensusQueue"         | AutoGauge | The memory usage of 
IoTConsensus Queue, Unit: byte           |
-| mem    | name="IoTConsensusSync"          | AutoGauge | The memory usage of 
IoTConsensus SyncStatus, Unit: byte      |
-| mem    | name="schema_region_total_usage" | AutoGauge | The memory usage of 
all SchemaRegion, Unit: byte             |
+| Metric | Tags                                 | Type      | Description      
                                                  |
+| ------ | ------------------------------------ | --------- | 
------------------------------------------------------------------ |
+| mem    | name="database_{name}"               | AutoGauge | The memory usage 
of DataRegion in DataNode, Unit: byte             |
+| mem    | name="chunkMetaData_{name}"          | AutoGauge | The memory usage 
of chunkMetaData when writting TsFile, Unit: byte |
+| mem    | name="IoTConsensus"                  | AutoGauge | The memory usage 
of IoTConsensus, Unit: byte                       |
+| mem    | name="IoTConsensusQueue"             | AutoGauge | The memory usage 
of IoTConsensus Queue, Unit: byte                 |
+| mem    | name="IoTConsensusSync"              | AutoGauge | The memory usage 
of IoTConsensus SyncStatus, Unit: byte            |
+| mem    | name="schema_region_total_usage"     | AutoGauge | The memory usage 
of all SchemaRegion, Unit: byte                   |
 
 #### 4.2.5. Compaction
 
@@ -400,8 +400,8 @@ carefully evaluated. The current Core-level metrics are as 
follows:
 | query_execution          | stage="get_query_resource_from_mem"               
                                  | Timer   | The time-consuming of query 
resource memory query and construction                      |
 | query_execution          | stage="driver_internal_process"                   
                                  | Timer   | The time-consuming of driver 
execution                                                  |
 | query_execution          | stage="wait_for_result"                           
                                  | Timer   | The time-consuming of getting 
query result from result handle                           |
-| operator_execution_cost  | name="{{operator_name}}"                          
                                  | Timer   | The operator execution time       
                                                      |
-| operator_execution_count | name="{{operator_name}}"                          
                                  | Counter | The number of operator calls 
(counted by the number of next method calls)               |
+| operator_execution_cost  | name="{operator_name}"                            
                                  | Timer   | The operator execution time       
                                                      |
+| operator_execution_count | name="{operator_name}"                            
                                  | Counter | The number of operator calls 
(counted by the number of next method calls)               |
 | aggregation              | from="raw_data"                                   
                                  | Timer   | The time-consuming of performing 
an aggregation calculation from a batch of raw data    |
 | aggregation              | from="statistics"                                 
                                  | Timer   | The time-consuming of updating an 
aggregated value with statistics                      |
 | series_scan_cost         | stage="load_timeseries_metadata", 
type="aligned/non_aligned", from="mem/disk"       | Timer   | The 
time-consuming of loading TimeseriesMetadata                                    
    |
@@ -432,10 +432,10 @@ carefully evaluated. The current Core-level metrics are 
as follows:
 
 #### 4.3.1. Cluster
 
-| Metric | Tags                                                           | 
Type      | Description                                                        |
-| ------ | -------------------------------------------------------------- | 
--------- | ------------------------------------------------------------------ |
-| region | name="{{DatabaseName}}",type="SchemaRegion/DataRegion"         | 
AutoGauge | The number of DataRegion/SchemaRegion of database in specific node |
-| slot   | name="{{DatabaseName}}",type="schemaSlotNumber/dataSlotNumber" | 
AutoGauge | The number of DataSlot/SchemaSlot of database in specific node     |
+| Metric | Tags                                                         | Type 
     | Description                                                        |
+| ------ | ------------------------------------------------------------ | 
--------- | ------------------------------------------------------------------ |
+| region | name="{DatabaseName}",type="SchemaRegion/DataRegion"         | 
AutoGauge | The number of DataRegion/SchemaRegion of database in specific node |
+| slot   | name="{DatabaseName}",type="schemaSlotNumber/dataSlotNumber" | 
AutoGauge | The number of DataSlot/SchemaSlot of database in specific node     |
 
 ### 4.4. All Metric
 
@@ -478,13 +478,13 @@ the sidebar `org.apache.iotdb.db.service` to view the 
cache hit ratio:
 > For metrics whose Metric Name is name and Tags are K1=V1, ..., Kn=Vn, the 
 > mapping is as follows, where value is a
 > specific value
 
-| Metric Type      | Mapping                                                   
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
           |
-| ---------------- | 
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 |
-| Counter          | name_total{k1="V1", ..., Kn="Vn"} value                   
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
           |
-| AutoGauge、Gauge | name{k1="V1", ..., Kn="Vn"} value                          
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
          |
-| Histogram        | name_max{k1="V1", ..., Kn="Vn"} value <br> 
name_sum{k1="V1", ..., Kn="Vn"} value <br> name_count{k1="V1", ..., Kn="Vn"} 
value <br> name{k1="V1", ..., Kn="Vn", quantile="0.0"} value <br> name{k1="V1", 
..., Kn="Vn", quantile="0.5"} value <br> name{k1="V1", ..., Kn="Vn", 
quantile="0.75"} value <br> name{k1="V1", ..., Kn="Vn", quantile="0.99"} value 
<br> name{k1="V1", ..., Kn="Vn", quantile="0.999"} value                        
                                         |
-| Rate             | name_total{k1="V1", ..., Kn="Vn"} value <br> 
name_total{k1="V1", ..., Kn="Vn", rate="m1"} value <br> name_total{k1="V1", 
..., Kn="Vn", rate="m5"} value  <br> name_total{k1="V1", ..., Kn="Vn", 
rate="m15"} value <br> name_total{k1="V1", ..., Kn="Vn", rate="mean"} value     
                                                                                
                                                                                
                                     |
-| Timer            | name_seconds_max{k1="V1", ..., Kn="Vn"} value <br> 
name_seconds_sum{k1="V1", ..., Kn="Vn"} value <br> name_seconds_count{k1="V1", 
..., Kn="Vn"} value <br> name_seconds{k1="V1", ..., Kn="Vn", quantile="0.0"} 
value <br> name_seconds{k1="V1", ..., Kn="Vn", quantile="0.5"} value <br> 
name_seconds{k1="V1", ..., Kn="Vn", quantile="0.75"} value <br> 
name_seconds{k1="V1", ..., Kn="Vn", quantile="0.99"} value <br> 
name_seconds{k1="V1", ..., Kn="Vn", quantile="0.999"} value |
+| Metric Type      | Mapping                                                   
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
              [...]
+| ---------------- | 
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 [...]
+| Counter          | name_total{cluster="clusterName", nodeType="nodeType", 
nodeId="nodeId", k1="V1", ..., Kn="Vn"} value                                   
                                                                                
                                                                                
                                                                                
                                                                                
                 [...]
+| AutoGauge、Gauge | name{cluster="clusterName", nodeType="nodeType", 
nodeId="nodeId", k1="V1", ..., Kn="Vn"} value                                   
                                                                                
                                                                                
                                                                                
                                                                                
                        [...]
+| Histogram        | name_max{cluster="clusterName", nodeType="nodeType", 
nodeId="nodeId", k1="V1", ..., Kn="Vn"} value <br> 
name_sum{cluster="clusterName", nodeType="nodeType", nodeId="nodeId", k1="V1", 
..., Kn="Vn"} value <br> name_count{cluster="clusterName", nodeType="nodeType", 
nodeId="nodeId", k1="V1", ..., Kn="Vn"} value <br> name{cluster="clusterName", 
nodeType="nodeType", nodeId="nodeId", k1="V1", ..., Kn="Vn", quantile="0.0"} 
value <br> name{cluster="clusterName", nodeType="nod [...]
+| Rate             | name_total{cluster="clusterName", nodeType="nodeType", 
nodeId="nodeId", k1="V1", ..., Kn="Vn"} value <br> 
name_total{cluster="clusterName", nodeType="nodeType", nodeId="nodeId", 
k1="V1", ..., Kn="Vn", rate="m1"} value <br> name_total{cluster="clusterName", 
nodeType="nodeType", nodeId="nodeId", k1="V1", ..., Kn="Vn", rate="m5"} value  
<br> name_total{cluster="clusterName", nodeType="nodeType", nodeId="nodeId", 
k1="V1", ..., Kn="Vn", rate="m15"} value <br> name_total{c [...]
+| Timer            | name_seconds_max{cluster="clusterName", 
nodeType="nodeType", nodeId="nodeId", k1="V1", ..., Kn="Vn"} value <br> 
name_seconds_sum{cluster="clusterName", nodeType="nodeType", nodeId="nodeId", 
k1="V1", ..., Kn="Vn"} value <br> name_seconds_count{cluster="clusterName", 
nodeType="nodeType", nodeId="nodeId", k1="V1", ..., Kn="Vn"} value <br> 
name_seconds{cluster="clusterName", nodeType="nodeType", nodeId="nodeId", 
k1="V1", ..., Kn="Vn", quantile="0.0"} value <br> name_seco [...]
 
 #### 5.2.2. Config File
 
@@ -758,15 +758,15 @@ data source for Apache IoTDB Dashboard.
 #### 5.3.1. IoTDB mapping relationship of metrics
 
 > For metrics whose Metric Name is name and Tags are K1=V1, ..., Kn=Vn, the 
 > mapping is as follows, taking root.__
-> system.metric.`ip:port` as an example by default
-
-| Metric Type      | Mapping                                                   
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
              [...]
-| ---------------- | 
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 [...]
-| Counter          | 
root.__system.metric.`ip:port`.name.`K1=V1`...`Kn=Vn`.value                     
                                                                                
                                                                                
                                                                                
                                                                                
                                                                        [...]
-| AutoGauge、Gauge | 
root.__system.metric.`ip:port`.name.`K1=V1`...`Kn=Vn`.value                     
                                                                                
                                                                                
                                                                                
                                                                                
                                                                         [...]
-| Histogram        | 
root.__system.metric.`ip:port`.name.`K1=V1`...`Kn=Vn`.count <br> 
root.__system.metric.`ip:port`.name.`K1=V1`...`Kn=Vn`.max <br> 
root.__system.metric.`ip:port`.name.`K1=V1`...`Kn=Vn`.sum <br> 
root.__system.metric.`ip:port`.name.`K1=V1`...`Kn=Vn`.p0 <br> 
root.__system.metric.`ip:port`.name.`K1=V1`...`Kn=Vn`.p50 <br> 
root.__system.metric.`ip:port`.name.`K1=V1`...`Kn=Vn`.p75 <br> 
root.__system.metric.`ip:port`.name.`K1=V1`...`Kn=Vn`.p99 <br> 
root.__system.metric.`ip:port [...]
-| Rate             | 
root.__system.metric.`ip:port`.name.`K1=V1`...`Kn=Vn`.count <br> 
root.__system.metric.`ip:port`.name.`K1=V1`...`Kn=Vn`.mean <br> 
root.__system.metric.`ip:port`.name.`K1=V1`...`Kn=Vn`.m1 <br> 
root.__system.metric.`ip:port`.name.`K1=V1`...`Kn=Vn`.m5 <br> 
root.__system.metric.`ip:port`.name.`K1=V1`...`Kn=Vn`.m15                       
                                                                                
                                                           [...]
-| Timer            | 
root.__system.metric.`ip:port`.name.`K1=V1`...`Kn=Vn`.count <br> 
root.__system.metric.`ip:port`.name.`K1=V1`...`Kn=Vn`.max <br> 
root.__system.metric.`ip:port`.name.`K1=V1`...`Kn=Vn`.mean <br> 
root.__system.metric.`ip:port`.name.`K1=V1`...`Kn=Vn`.sum <br> 
root.__system.metric.`ip:port`.name.`K1=V1`...`Kn=Vn`.p0 <br> 
root.__system.metric.`ip:port`.name.`K1=V1`...`Kn=Vn`.p50 <br> 
root.__system.metric.`ip:port`.name.`K1=V1`...`Kn=Vn`.p75 <br> 
root.__system.metric.`ip:por [...]
+> system.metric.`clusterName`.`nodeType`.`nodeId` as an example by default
+
+| Metric Type      | Mapping                                                   
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
              [...]
+| ---------------- | 
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 [...]
+| Counter          | 
root.__system.metric.`clusterName`.`nodeType`.`nodeId`.name.`K1=V1`...`Kn=Vn`.value
                                                                                
                                                                                
                                                                                
                                                                                
                                                                     [...]
+| AutoGauge、Gauge | 
root.__system.metric.`clusterName`.`nodeType`.`nodeId`.name.`K1=V1`...`Kn=Vn`.value
                                                                                
                                                                                
                                                                                
                                                                                
                                                                      [...]
+| Histogram        | 
root.__system.metric.`clusterName`.`nodeType`.`nodeId`.name.`K1=V1`...`Kn=Vn`.count
 <br> 
root.__system.metric.`clusterName`.`nodeType`.`nodeId`.name.`K1=V1`...`Kn=Vn`.max
 <br> 
root.__system.metric.`clusterName`.`nodeType`.`nodeId`.name.`K1=V1`...`Kn=Vn`.sum
 <br> 
root.__system.metric.`clusterName`.`nodeType`.`nodeId`.name.`K1=V1`...`Kn=Vn`.p0
 <br> 
root.__system.metric.`clusterName`.`nodeType`.`nodeId`.name.`K1=V1`...`Kn=Vn`.p50
 <br> root.__system.metric.`clusterName`. [...]
+| Rate             | 
root.__system.metric.`clusterName`.`nodeType`.`nodeId`.name.`K1=V1`...`Kn=Vn`.count
 <br> 
root.__system.metric.`clusterName`.`nodeType`.`nodeId`.name.`K1=V1`...`Kn=Vn`.mean
 <br> 
root.__system.metric.`clusterName`.`nodeType`.`nodeId`.name.`K1=V1`...`Kn=Vn`.m1
 <br> 
root.__system.metric.`clusterName`.`nodeType`.`nodeId`.name.`K1=V1`...`Kn=Vn`.m5
 <br> 
root.__system.metric.`clusterName`.`nodeType`.`nodeId`.name.`K1=V1`...`Kn=Vn`.m15
                                          [...]
+| Timer            | 
root.__system.metric.`clusterName`.`nodeType`.`nodeId`.name.`K1=V1`...`Kn=Vn`.count
 <br> 
root.__system.metric.`clusterName`.`nodeType`.`nodeId`.name.`K1=V1`...`Kn=Vn`.max
 <br> 
root.__system.metric.`clusterName`.`nodeType`.`nodeId`.name.`K1=V1`...`Kn=Vn`.mean
 <br> 
root.__system.metric.`clusterName`.`nodeType`.`nodeId`.name.`K1=V1`...`Kn=Vn`.sum
 <br> 
root.__system.metric.`clusterName`.`nodeType`.`nodeId`.name.`K1=V1`...`Kn=Vn`.p0
 <br> root.__system.metric.`clusterName` [...]
 
 #### 5.3.2. Obtain metrics
 
diff --git a/docs/zh/UserGuide/Monitor-Alert/Metric-Tool.md 
b/docs/zh/UserGuide/Monitor-Alert/Metric-Tool.md
index ba236c6528..38a0f480d5 100644
--- a/docs/zh/UserGuide/Monitor-Alert/Metric-Tool.md
+++ b/docs/zh/UserGuide/Monitor-Alert/Metric-Tool.md
@@ -90,14 +90,14 @@ Core 级别的监控指标在系统运行中默认开启,每一个 Core 级别
 
 #### 4.1.1. 集群运行状态
 
-| Metric                    | Tags                                             
 | Type      | Description                            |
-| ------------------------- | 
------------------------------------------------- | --------- | 
-------------------------------------- |
-| config_node               | name="total",status="Registered/Online/Unknown"  
 | AutoGauge | 已注册/在线/离线 confignode 的节点数量 |
-| data_node                 | name="total",status="Registered/Online/Unknown"  
 | AutoGauge | 已注册/在线/离线 datanode 的节点数量   |
-| cluster_node_leader_count | name="{{ip}}:{{port}}"                           
 | Gauge     | 节点上共识组Leader的数量               |
-| cluster_node_status       | 
name="{{ip}}:{{port}}",type="ConfigNode/DataNode" | Gauge     | 节点的状态,0=Unkonwn 
1=online         |
-| entry                     | name="{{interface}}"                             
 | Timer     | Client 建立的 Thrift 的耗时情况        |
-| mem                       | name="IoTConsensus"                              
 | AutoGauge | IoT共识协议的内存占用,单位为byte      |
+| Metric                    | Tags                                            
| Type      | Description                            |
+| ------------------------- | ----------------------------------------------- 
| --------- | -------------------------------------- |
+| config_node               | name="total",status="Registered/Online/Unknown" 
| AutoGauge | 已注册/在线/离线 confignode 的节点数量 |
+| data_node                 | name="total",status="Registered/Online/Unknown" 
| AutoGauge | 已注册/在线/离线 datanode 的节点数量   |
+| cluster_node_leader_count | name="{ip}:{port}"                              
| Gauge     | 节点上共识组Leader的数量               |
+| cluster_node_status       | name="{ip}:{port}",type="ConfigNode/DataNode"   
| Gauge     | 节点的状态,0=Unkonwn 1=online         |
+| entry                     | name="{interface}"                              
| Timer     | Client 建立的 Thrift 的耗时情况        |
+| mem                       | name="IoTConsensus"                             
| AutoGauge | IoT共识协议的内存占用,单位为byte      |
 
 #### 4.1.2. 接口层统计
 
@@ -114,30 +114,30 @@ Core 级别的监控指标在系统运行中默认开启,每一个 Core 级别
 | session_idle_time     | name = "sessionId"                 | Histogram | 不同 
Session 的空闲时间分布情况     |
 
 #### 4.1.3. 节点统计
-| Metric   | Tags                                  | Type      | Description   
              |
-| -------- | ------------------------------------- | --------- | 
--------------------------- |
-| quantity | name="database"                       | AutoGauge | 系统数据库数量       
       |
-| quantity | name="timeSeries"                     | AutoGauge | 系统时间序列数量      
      |
-| quantity | name="pointsIn"                       | Counter   | 系统累计写入点数      
      |
-| points   | database="{{database}}", type="flush" | Gauge     | 
最新一个刷盘的memtale的点数 |
+| Metric   | Tags                                | Type      | Description     
            |
+| -------- | ----------------------------------- | --------- | 
--------------------------- |
+| quantity | name="database"                     | AutoGauge | 系统数据库数量         
     |
+| quantity | name="timeSeries"                   | AutoGauge | 系统时间序列数量        
    |
+| quantity | name="pointsIn"                     | Counter   | 系统累计写入点数        
    |
+| points   | database="{database}", type="flush" | Gauge     | 
最新一个刷盘的memtale的点数 |
 
 #### 4.1.4. 集群全链路
-| Metric                               | Tags                                  
               | Type  | Description                |
-| ------------------------------------ | 
---------------------------------------------------- | ----- | 
-------------------------- |
-| performance_overview                 | interface="{{interface}}", 
type="{{statement_type}}" | Timer | 客户端执行的操作的耗时情况 |
-| performance_overview_detail          | stage="authority"                     
               | Timer | 权限认证总耗时             |
-| performance_overview_detail          | stage="parser"                        
               | Timer | 解析构造总耗时             |
-| performance_overview_detail          | stage="analyzer"                      
               | Timer | 语句分析总耗时             |
-| performance_overview_detail          | stage="planner"                       
               | Timer | 请求规划总耗时             |
-| performance_overview_detail          | stage="scheduler"                     
               | Timer | 请求执行总耗时             |
-| performance_overview_schedule_detail | stage="schema_validate"               
               | Timer | 元数据验证总耗时           |
-| performance_overview_schedule_detail | stage="trigger"                       
               | Timer | Trigger 触发总耗时         |
-| performance_overview_schedule_detail | stage="consensus"                     
               | Timer | 共识层总耗时               |
-| performance_overview_schedule_detail | stage="lock"                          
               | Timer | DataRegion 抢锁总耗时      |
-| performance_overview_schedule_detail | stage="memory_block"                  
               | Timer | 内存控制阻塞总耗时         |
-| performance_overview_schedule_detail | stage="wal"                           
               | Timer | 写入 Wal 总耗时            |
-| performance_overview_schedule_detail | stage="memtable"                      
               | Timer | 写入 Memtable 总耗时       |
-| performance_overview_schedule_detail | stage="last_cache"                    
               | Timer | 更新 LastCache 总耗时      |
+| Metric                               | Tags                                  
           | Type  | Description                |
+| ------------------------------------ | 
------------------------------------------------ | ----- | 
-------------------------- |
+| performance_overview                 | interface="{interface}", 
type="{statement_type}" | Timer | 客户端执行的操作的耗时情况 |
+| performance_overview_detail          | stage="authority"                     
           | Timer | 权限认证总耗时             |
+| performance_overview_detail          | stage="parser"                        
           | Timer | 解析构造总耗时             |
+| performance_overview_detail          | stage="analyzer"                      
           | Timer | 语句分析总耗时             |
+| performance_overview_detail          | stage="planner"                       
           | Timer | 请求规划总耗时             |
+| performance_overview_detail          | stage="scheduler"                     
           | Timer | 请求执行总耗时             |
+| performance_overview_schedule_detail | stage="schema_validate"               
           | Timer | 元数据验证总耗时           |
+| performance_overview_schedule_detail | stage="trigger"                       
           | Timer | Trigger 触发总耗时         |
+| performance_overview_schedule_detail | stage="consensus"                     
           | Timer | 共识层总耗时               |
+| performance_overview_schedule_detail | stage="lock"                          
           | Timer | DataRegion 抢锁总耗时      |
+| performance_overview_schedule_detail | stage="memory_block"                  
           | Timer | 内存控制阻塞总耗时         |
+| performance_overview_schedule_detail | stage="wal"                           
           | Timer | 写入 Wal 总耗时            |
+| performance_overview_schedule_detail | stage="memtable"                      
           | Timer | 写入 Memtable 总耗时       |
+| performance_overview_schedule_detail | stage="last_cache"                    
           | Timer | 更新 LastCache 总耗时      |
 
 #### 4.1.5. 任务统计
 
@@ -224,7 +224,7 @@ Core 级别的监控指标在系统运行中默认开启,每一个 Core 级别
 | ----------------------------- | 
----------------------------------------------------- | --------- | 
-------------------------------------- |
 | jvm_gc_pause                  | action="end of major GC/end of minor 
GC",cause="xxxx" | Timer     | 不同原因的Young GC/Full GC的次数与耗时 |
 |                               |
-| jvm_gc_concurrent_phase_time  | action="{{action}}",cause="{{cause}}"        
         | Timer     | 不同原因的Young GC/Full GC的次数与耗时 |
+| jvm_gc_concurrent_phase_time  | action="{action}",cause="{cause}"            
         | Timer     | 不同原因的Young GC/Full GC的次数与耗时 |
 |                               |
 | jvm_gc_max_data_size_bytes    |                                              
         | AutoGauge | 老年代内存的历史最大值                 |
 | jvm_gc_live_data_size_bytes   |                                              
         | AutoGauge | 老年代内存的使用值                     |
@@ -237,31 +237,31 @@ Core 级别的监控指标在系统运行中默认开启,每一个 Core 级别
 
 #### 4.2.1. 节点统计
 
-| Metric | Tags                                       | Type      | 
Description                          |
-| ------ | ------------------------------------------ | --------- | 
------------------------------------ |
-| region | name="total",type="SchemaRegion"           | AutoGauge | 分区表中 
SchemaRegion 总数量         |
-| region | name="total",type="DataRegion"             | AutoGauge | 分区表中 
DataRegion 总数量           |
-| region | name="{{ip}}:{{port}}",type="SchemaRegion" | Gauge     | 分区表中对应节点上 
DataRegion 总数量 |
-| region | name="{{ip}}:{{port}}",type="DataRegion"   | Gauge     | 分区表中对应节点上 
DataRegion 总数量 |
+| Metric | Tags                                   | Type      | Description    
                      |
+| ------ | -------------------------------------- | --------- | 
------------------------------------ |
+| region | name="total",type="SchemaRegion"       | AutoGauge | 分区表中 
SchemaRegion 总数量         |
+| region | name="total",type="DataRegion"         | AutoGauge | 分区表中 
DataRegion 总数量           |
+| region | name="{ip}:{port}",type="SchemaRegion" | Gauge     | 分区表中对应节点上 
DataRegion 总数量 |
+| region | name="{ip}:{port}",type="DataRegion"   | Gauge     | 分区表中对应节点上 
DataRegion 总数量 |
 
 #### 4.2.2. IoT共识协议统计
 
-| Metric        | Tags                                                         
                                | Type      | Description                       
|
-| ------------- | 
--------------------------------------------------------------------------------------------
 | --------- | --------------------------------- |
-| iot_consensus | name="logDispatcher-{{IP}}:{{Port}}", region="{{region}}", 
type="currentSyncIndex"           | AutoGauge | 副本组同步线程的当前同步进度      |
-| iot_consensus | name="logDispatcher-{{IP}}:{{Port}}", region="{{region}}", 
type="cachedRequestInMemoryQueue" | AutoGauge | 副本组同步线程缓存队列请求总大小  |
-| iot_consensus | name="IoTConsensusServerImpl", region="{{region}}", 
type="searchIndex"                       | AutoGauge | 副本组主流程写入进度              |
-| iot_consensus | name="IoTConsensusServerImpl", region="{{region}}", 
type="safeIndex"                         | AutoGauge | 副本组同步进度                  
  |
-| iot_consensus | name="IoTConsensusServerImpl", region="{{region}}", 
type="syncLag"                           | AutoGauge | 副本组写入进度与同步进度差        |
-| iot_consensus | name="IoTConsensusServerImpl", region="{{region}}", 
type="LogEntriesFromWAL"                 | AutoGauge | 副本组Batch中来自WAL的日志项数量  |
-| iot_consensus | name="IoTConsensusServerImpl", region="{{region}}", 
type="LogEntriesFromQueue"               | AutoGauge | 副本组Batch中来自队列的日志项数量 |
-| stage         | name="iot_consensus", region="{{region}}", 
type="getStateMachineLock"                        | Histogram | 主流程获取状态机锁耗时     
       |
-| stage         | name="iot_consensus", region="{{region}}", 
type="checkingBeforeWrite"                        | Histogram | 主流程写入状态机检查耗时    
      |
-| stage         | name="iot_consensus", region="{{region}}", 
type="writeStateMachine"                          | Histogram | 主流程写入状态机耗时      
        |
-| stage         | name="iot_consensus", region="{{region}}", 
type="offerRequestToQueue"                        | Histogram | 主流程尝试添加队列耗时     
       |
-| stage         | name="iot_consensus", region="{{region}}", 
type="consensusWrite"                             | Histogram | 主流程全写入耗时        
          |
-| stage         | name="iot_consensus", region="{{region}}", 
type="constructBatch"                             | Histogram | 同步线程构造 Batch 耗时 
          |
-| stage         | name="iot_consensus", region="{{region}}", 
type="syncLogTimePerRequest"                      | Histogram | 异步回调流程同步日志耗时    
      |
+| Metric        | Tags                                                         
                          | Type      | Description                       |
+| ------------- | 
--------------------------------------------------------------------------------------
 | --------- | --------------------------------- |
+| iot_consensus | name="logDispatcher-{IP}:{Port}", region="{region}", 
type="currentSyncIndex"           | AutoGauge | 副本组同步线程的当前同步进度      |
+| iot_consensus | name="logDispatcher-{IP}:{Port}", region="{region}", 
type="cachedRequestInMemoryQueue" | AutoGauge | 副本组同步线程缓存队列请求总大小  |
+| iot_consensus | name="IoTConsensusServerImpl", region="{region}", 
type="searchIndex"                   | AutoGauge | 副本组主流程写入进度              |
+| iot_consensus | name="IoTConsensusServerImpl", region="{region}", 
type="safeIndex"                     | AutoGauge | 副本组同步进度                    |
+| iot_consensus | name="IoTConsensusServerImpl", region="{region}", 
type="syncLag"                       | AutoGauge | 副本组写入进度与同步进度差        |
+| iot_consensus | name="IoTConsensusServerImpl", region="{region}", 
type="LogEntriesFromWAL"             | AutoGauge | 副本组Batch中来自WAL的日志项数量  |
+| iot_consensus | name="IoTConsensusServerImpl", region="{region}", 
type="LogEntriesFromQueue"           | AutoGauge | 副本组Batch中来自队列的日志项数量 |
+| stage         | name="iot_consensus", region="{region}", 
type="getStateMachineLock"                    | Histogram | 主流程获取状态机锁耗时         
   |
+| stage         | name="iot_consensus", region="{region}", 
type="checkingBeforeWrite"                    | Histogram | 主流程写入状态机检查耗时        
  |
+| stage         | name="iot_consensus", region="{region}", 
type="writeStateMachine"                      | Histogram | 主流程写入状态机耗时          
    |
+| stage         | name="iot_consensus", region="{region}", 
type="offerRequestToQueue"                    | Histogram | 主流程尝试添加队列耗时         
   |
+| stage         | name="iot_consensus", region="{region}", 
type="consensusWrite"                         | Histogram | 主流程全写入耗时            
      |
+| stage         | name="iot_consensus", region="{region}", 
type="constructBatch"                         | Histogram | 同步线程构造 Batch 耗时     
      |
+| stage         | name="iot_consensus", region="{region}", 
type="syncLogTimePerRequest"                  | Histogram | 异步回调流程同步日志耗时        
  |
 
 #### 4.2.3. 缓存统计
 
@@ -279,14 +279,14 @@ Core 级别的监控指标在系统运行中默认开启,每一个 Core 级别
 | cache     | name="DataPartition", type="all"   | Counter   | DataPartition 
Cache 的访问次数                          |
 
 #### 4.2.4. 内存统计
-| Metric | Tags                             | Type      | Description          
                             |
-| ------ | -------------------------------- | --------- | 
------------------------------------------------- |
-| mem    | name="database_{{name}}"         | AutoGauge | 
DataNode内对应DataRegion的内存占用,单位为byte    |
-| mem    | name="chunkMetaData_{{name}}"    | AutoGauge | 
写入TsFile时的ChunkMetaData的内存占用,单位为byte |
-| mem    | name="IoTConsensus"              | AutoGauge | IoT共识协议的内存占用,单位为byte 
                |
-| mem    | name="IoTConsensusQueue"         | AutoGauge | 
IoT共识协议用于队列的内存占用,单位为byte         |
-| mem    | name="IoTConsensusSync"          | AutoGauge | 
IoT共识协议用于同步的内存占用,单位为byte         |
-| mem    | name="schema_region_total_usage" | AutoGauge | 
所有SchemaRegion的总内存占用,单位为byte          |
+| Metric | Tags                                 | Type      | Description      
                                 |
+| ------ | ------------------------------------ | --------- | 
------------------------------------------------- |
+| mem    | name="database_{name}"               | AutoGauge | 
DataNode内对应DataRegion的内存占用,单位为byte    |
+| mem    | name="chunkMetaData_{name}"          | AutoGauge | 
写入TsFile时的ChunkMetaData的内存占用,单位为byte |
+| mem    | name="IoTConsensus"                  | AutoGauge | 
IoT共识协议的内存占用,单位为byte                 |
+| mem    | name="IoTConsensusQueue"             | AutoGauge | 
IoT共识协议用于队列的内存占用,单位为byte         |
+| mem    | name="IoTConsensusSync"              | AutoGauge | 
IoT共识协议用于同步的内存占用,单位为byte         |
+| mem    | name="schema_region_total_usage"     | AutoGauge | 
所有SchemaRegion的总内存占用,单位为byte          |
 
 #### 4.2.5. 合并统计
 
@@ -378,8 +378,8 @@ Core 级别的监控指标在系统运行中默认开启,每一个 Core 级别
 | query_execution          | stage="get_query_resource_from_mem"               
                                  | Timer   | 查询资源内存查询与构造耗时                     
|
 | query_execution          | stage="driver_internal_process"                   
                                  | Timer   | Driver 执行耗时                       
         |
 | query_execution          | stage="wait_for_result"                           
                                  | Timer   | 从resultHandle 获取一次查询结果的耗时         
 |
-| operator_execution_cost  | name="{{operator_name}}"                          
                                  | Timer   | 算子执行耗时                            
       |
-| operator_execution_count | name="{{operator_name}}"                          
                                  | Counter | 算子调用次数(以 next 方法调用次数计算)       |
+| operator_execution_cost  | name="{operator_name}"                            
                                  | Timer   | 算子执行耗时                            
       |
+| operator_execution_count | name="{operator_name}"                            
                                  | Counter | 算子调用次数(以 next 方法调用次数计算)       |
 | aggregation              | from="raw_data"                                   
                                  | Timer   | 从一批原始数据进行一次聚合计算的耗时           |
 | aggregation              | from="statistics"                                 
                                  | Timer   | 使用统计信息更新一次聚合值的耗时               |
 | series_scan_cost         | stage="load_timeseries_metadata", 
type="aligned/non_aligned", from="mem/disk"       | Timer   | 加载 
TimeseriesMetadata 耗时                   |
@@ -410,10 +410,10 @@ Core 级别的监控指标在系统运行中默认开启,每一个 Core 级别
 
 #### 4.3.1. 集群
 
-| Metric | Tags                                                           | 
Type      | Description                                             |
-| ------ | -------------------------------------------------------------- | 
--------- | ------------------------------------------------------- |
-| region | name="{{DatabaseName}}",type="SchemaRegion/DataRegion"         | 
AutoGauge | 特定节点上不同 Database 的 DataRegion/SchemaRegion 个数 |
-| slot   | name="{{DatabaseName}}",type="schemaSlotNumber/dataSlotNumber" | 
AutoGauge | 特定节点上不同 Database 的 DataSlot/SchemaSlot 个数     |
+| Metric | Tags                                                         | Type 
     | Description                                             |
+| ------ | ------------------------------------------------------------ | 
--------- | ------------------------------------------------------- |
+| region | name="{DatabaseName}",type="SchemaRegion/DataRegion"         | 
AutoGauge | 特定节点上不同 Database 的 DataRegion/SchemaRegion 个数 |
+| slot   | name="{DatabaseName}",type="schemaSlotNumber/dataSlotNumber" | 
AutoGauge | 特定节点上不同 Database 的 DataSlot/SchemaSlot 个数     |
 
 ### 4.4. All 级别监控指标
 
@@ -451,13 +451,13 @@ Core 级别的监控指标在系统运行中默认开启,每一个 Core 级别
 
 > 对于 Metric Name 为 name, Tags 为 K1=V1, ..., Kn=Vn 的监控指标有如下映射,其中 value 为具体值
 
-| 监控指标类型     | 映射关系                                                            
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
 |
-| ---------------- | 
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 |
-| Counter          | name_total{k1="V1", ..., Kn="Vn"} value                   
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
           |
-| AutoGauge、Gauge | name{k1="V1", ..., Kn="Vn"} value                          
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
          |
-| Histogram        | name_max{k1="V1", ..., Kn="Vn"} value <br> 
name_sum{k1="V1", ..., Kn="Vn"} value <br> name_count{k1="V1", ..., Kn="Vn"} 
value <br> name{k1="V1", ..., Kn="Vn", quantile="0.0"} value <br> name{k1="V1", 
..., Kn="Vn", quantile="0.5"} value <br> name{k1="V1", ..., Kn="Vn", 
quantile="0.75"} value <br> name{k1="V1", ..., Kn="Vn", quantile="0.99"} value 
<br> name{k1="V1", ..., Kn="Vn", quantile="0.999"} value                        
                                         |
-| Rate             | name_total{k1="V1", ..., Kn="Vn"} value <br> 
name_total{k1="V1", ..., Kn="Vn", rate="m1"} value <br> name_total{k1="V1", 
..., Kn="Vn", rate="m5"} value  <br> name_total{k1="V1", ..., Kn="Vn", 
rate="m15"} value <br> name_total{k1="V1", ..., Kn="Vn", rate="mean"} value     
                                                                                
                                                                                
                                     |
-| Timer            | name_seconds_max{k1="V1", ..., Kn="Vn"} value <br> 
name_seconds_sum{k1="V1", ..., Kn="Vn"} value <br> name_seconds_count{k1="V1", 
..., Kn="Vn"} value <br> name_seconds{k1="V1", ..., Kn="Vn", quantile="0.0"} 
value <br> name_seconds{k1="V1", ..., Kn="Vn", quantile="0.5"} value <br> 
name_seconds{k1="V1", ..., Kn="Vn", quantile="0.75"} value <br> 
name_seconds{k1="V1", ..., Kn="Vn", quantile="0.99"} value <br> 
name_seconds{k1="V1", ..., Kn="Vn", quantile="0.999"} value |
+| 监控指标类型     | 映射关系                                                            
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
              [...]
+| ---------------- | 
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 [...]
+| Counter          | name_total{cluster="clusterName", nodeType="nodeType", 
nodeId="nodeId",k1="V1" , ..., Kn="Vn"} value                                   
                                                                                
                                                                                
                                                                                
                                                                                
                 [...]
+| AutoGauge、Gauge | name{cluster="clusterName", nodeType="nodeType", 
nodeId="nodeId",k1="V1" , ..., Kn="Vn"} value                                   
                                                                                
                                                                                
                                                                                
                                                                                
                        [...]
+| Histogram        | name_max{cluster="clusterName", nodeType="nodeType", 
nodeId="nodeId",k1="V1" , ..., Kn="Vn"} value <br> 
name_sum{cluster="clusterName", nodeType="nodeType", nodeId="nodeId",k1="V1" , 
..., Kn="Vn"} value <br> name_count{cluster="clusterName", nodeType="nodeType", 
nodeId="nodeId",k1="V1" , ..., Kn="Vn"} value <br> name{cluster="clusterName", 
nodeType="nodeType", nodeId="nodeId",k1="V1" , ..., Kn="Vn", quantile="0.0"} 
value <br> name{cluster="clusterName", nodeType="nod [...]
+| Rate             | name_total{cluster="clusterName", nodeType="nodeType", 
nodeId="nodeId",k1="V1" , ..., Kn="Vn"} value <br> 
name_total{cluster="clusterName", nodeType="nodeType", nodeId="nodeId",k1="V1" 
, ..., Kn="Vn", rate="m1"} value <br> name_total{cluster="clusterName", 
nodeType="nodeType", nodeId="nodeId",k1="V1" , ..., Kn="Vn", rate="m5"} value  
<br> name_total{cluster="clusterName", nodeType="nodeType", 
nodeId="nodeId",k1="V1" , ..., Kn="Vn", rate="m15"} value <br> name_total{c 
[...]
+| Timer            | name_seconds_max{cluster="clusterName", 
nodeType="nodeType", nodeId="nodeId",k1="V1" , ..., Kn="Vn"} value <br> 
name_seconds_sum{cluster="clusterName", nodeType="nodeType", 
nodeId="nodeId",k1="V1" , ..., Kn="Vn"} value <br> 
name_seconds_count{cluster="clusterName", nodeType="nodeType", 
nodeId="nodeId",k1="V1" , ..., Kn="Vn"} value <br> 
name_seconds{cluster="clusterName", nodeType="nodeType", 
nodeId="nodeId",k1="V1" , ..., Kn="Vn", quantile="0.0"} value <br> name_seco 
[...]
 
 #### 5.2.2. 修改配置文件
 
@@ -706,15 +706,15 @@ static_configs:
 
 #### 5.3.1. 监控指标的 IoTDB 映射关系
 
-> 对于 Metric Name 为 name, Tags 为 K1=V1, ..., Kn=Vn 的监控指标有如下映射,以默认写到 
root.__system.metric.`ip:port` 为例
+> 对于 Metric Name 为 name, Tags 为 K1=V1, ..., Kn=Vn 的监控指标有如下映射,以默认写到 
root.__system.metric.`clusterName`.`nodeType`.`nodeId` 为例
 
-| 监控指标类型     | 映射关系                                                            
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
              [...]
-| ---------------- | 
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 [...]
-| Counter          | 
root.__system.metric.`ip:port`.name.`K1=V1`...`Kn=Vn`.value                     
                                                                                
                                                                                
                                                                                
                                                                                
                                                                        [...]
-| AutoGauge、Gauge | 
root.__system.metric.`ip:port`.name.`K1=V1`...`Kn=Vn`.value                     
                                                                                
                                                                                
                                                                                
                                                                                
                                                                         [...]
-| Histogram        | 
root.__system.metric.`ip:port`.name.`K1=V1`...`Kn=Vn`.count <br> 
root.__system.metric.`ip:port`.name.`K1=V1`...`Kn=Vn`.max <br> 
root.__system.metric.`ip:port`.name.`K1=V1`...`Kn=Vn`.sum <br> 
root.__system.metric.`ip:port`.name.`K1=V1`...`Kn=Vn`.p0 <br> 
root.__system.metric.`ip:port`.name.`K1=V1`...`Kn=Vn`.p50 <br> 
root.__system.metric.`ip:port`.name.`K1=V1`...`Kn=Vn`.p75 <br> 
root.__system.metric.`ip:port`.name.`K1=V1`...`Kn=Vn`.p99 <br> 
root.__system.metric.`ip:port [...]
-| Rate             | 
root.__system.metric.`ip:port`.name.`K1=V1`...`Kn=Vn`.count <br> 
root.__system.metric.`ip:port`.name.`K1=V1`...`Kn=Vn`.mean <br> 
root.__system.metric.`ip:port`.name.`K1=V1`...`Kn=Vn`.m1 <br> 
root.__system.metric.`ip:port`.name.`K1=V1`...`Kn=Vn`.m5 <br> 
root.__system.metric.`ip:port`.name.`K1=V1`...`Kn=Vn`.m15                       
                                                                                
                                                           [...]
-| Timer            | 
root.__system.metric.`ip:port`.name.`K1=V1`...`Kn=Vn`.count <br> 
root.__system.metric.`ip:port`.name.`K1=V1`...`Kn=Vn`.max <br> 
root.__system.metric.`ip:port`.name.`K1=V1`...`Kn=Vn`.mean <br> 
root.__system.metric.`ip:port`.name.`K1=V1`...`Kn=Vn`.sum <br> 
root.__system.metric.`ip:port`.name.`K1=V1`...`Kn=Vn`.p0 <br> 
root.__system.metric.`ip:port`.name.`K1=V1`...`Kn=Vn`.p50 <br> 
root.__system.metric.`ip:port`.name.`K1=V1`...`Kn=Vn`.p75 <br> 
root.__system.metric.`ip:por [...]
+| 监控指标类型     | 映射关系                                                            
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
              [...]
+| ---------------- | 
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 [...]
+| Counter          | 
root.__system.metric.`clusterName`.`nodeType`.`nodeId`.name.`K1=V1`...`Kn=Vn`.value
                                                                                
                                                                                
                                                                                
                                                                                
                                                                     [...]
+| AutoGauge、Gauge | 
root.__system.metric.`clusterName`.`nodeType`.`nodeId`.name.`K1=V1`...`Kn=Vn`.value
                                                                                
                                                                                
                                                                                
                                                                                
                                                                      [...]
+| Histogram        | 
root.__system.metric.`clusterName`.`nodeType`.`nodeId`.name.`K1=V1`...`Kn=Vn`.count
 <br> 
root.__system.metric.`clusterName`.`nodeType`.`nodeId`.name.`K1=V1`...`Kn=Vn`.max
 <br> 
root.__system.metric.`clusterName`.`nodeType`.`nodeId`.name.`K1=V1`...`Kn=Vn`.sum
 <br> 
root.__system.metric.`clusterName`.`nodeType`.`nodeId`.name.`K1=V1`...`Kn=Vn`.p0
 <br> 
root.__system.metric.`clusterName`.`nodeType`.`nodeId`.name.`K1=V1`...`Kn=Vn`.p50
 <br> root.__system.metric.`clusterName`. [...]
+| Rate             | 
root.__system.metric.`clusterName`.`nodeType`.`nodeId`.name.`K1=V1`...`Kn=Vn`.count
 <br> 
root.__system.metric.`clusterName`.`nodeType`.`nodeId`.name.`K1=V1`...`Kn=Vn`.mean
 <br> 
root.__system.metric.`clusterName`.`nodeType`.`nodeId`.name.`K1=V1`...`Kn=Vn`.m1
 <br> 
root.__system.metric.`clusterName`.`nodeType`.`nodeId`.name.`K1=V1`...`Kn=Vn`.m5
 <br> 
root.__system.metric.`clusterName`.`nodeType`.`nodeId`.name.`K1=V1`...`Kn=Vn`.m15
                                          [...]
+| Timer            | 
root.__system.metric.`clusterName`.`nodeType`.`nodeId`.name.`K1=V1`...`Kn=Vn`.count
 <br> 
root.__system.metric.`clusterName`.`nodeType`.`nodeId`.name.`K1=V1`...`Kn=Vn`.max
 <br> 
root.__system.metric.`clusterName`.`nodeType`.`nodeId`.name.`K1=V1`...`Kn=Vn`.mean
 <br> 
root.__system.metric.`clusterName`.`nodeType`.`nodeId`.name.`K1=V1`...`Kn=Vn`.sum
 <br> 
root.__system.metric.`clusterName`.`nodeType`.`nodeId`.name.`K1=V1`...`Kn=Vn`.p0
 <br> root.__system.metric.`clusterName` [...]
 
 #### 5.3.2. 获取监控指标
 
diff --git 
a/metrics/interface/src/main/java/org/apache/iotdb/metrics/config/MetricConfig.java
 
b/metrics/interface/src/main/java/org/apache/iotdb/metrics/config/MetricConfig.java
index c190c0e418..9d9b061847 100644
--- 
a/metrics/interface/src/main/java/org/apache/iotdb/metrics/config/MetricConfig.java
+++ 
b/metrics/interface/src/main/java/org/apache/iotdb/metrics/config/MetricConfig.java
@@ -22,6 +22,7 @@ package org.apache.iotdb.metrics.config;
 import org.apache.iotdb.metrics.utils.InternalReporterType;
 import org.apache.iotdb.metrics.utils.MetricFrameType;
 import org.apache.iotdb.metrics.utils.MetricLevel;
+import org.apache.iotdb.metrics.utils.NodeType;
 import org.apache.iotdb.metrics.utils.ReporterType;
 import org.apache.iotdb.metrics.utils.SystemType;
 
@@ -57,14 +58,16 @@ public class MetricConfig {
   /** The type of internal reporter. */
   private InternalReporterType internalReporterType = 
InternalReporterType.MEMORY;
 
-  /** The address of iotdb instance that is monitored. */
-  private String rpcAddress = "0.0.0.0";
-  /** The port of iotdb instance that is monitored. */
-  private Integer rpcPort = 6667;
   /** The pid of iotdb instance. */
   private String pid = "";
-  /** The running system of iotdb instance */
+  /** The running system of iotdb instance. */
   private final SystemType systemType = SystemType.getSystemType();
+  /** The type of monitored node. */
+  private NodeType nodeType = NodeType.CONFIGNODE;
+  /** The name of iotdb cluster. */
+  private String clusterName = "defaultCluster";
+  /** The id of iotdb node. */
+  private int nodeId = 0;
 
   public MetricConfig() {
     // try to get pid of iotdb instance
@@ -132,14 +135,6 @@ public class MetricConfig {
     return iotdbReporterConfig;
   }
 
-  public String getRpcAddress() {
-    return rpcAddress;
-  }
-
-  public Integer getRpcPort() {
-    return rpcPort;
-  }
-
   public String getPid() {
     return pid;
   }
@@ -148,10 +143,23 @@ public class MetricConfig {
     return systemType;
   }
 
+  public NodeType getNodeType() {
+    return nodeType;
+  }
+
+  public String getClusterName() {
+    return clusterName;
+  }
+
+  public int getNodeId() {
+    return nodeId;
+  }
+
   /** Update rpc address and rpc port of monitored node. */
-  public void updateRpcInstance(String rpcAddress, int rpcPort) {
-    this.rpcAddress = rpcAddress;
-    this.rpcPort = rpcPort;
+  public void updateRpcInstance(String clusterName, int nodeId, NodeType 
nodeType) {
+    this.clusterName = clusterName;
+    this.nodeId = nodeId;
+    this.nodeType = nodeType;
   }
 
   /** Copy properties from another metric config. */
diff --git 
a/metrics/interface/src/main/java/org/apache/iotdb/metrics/reporter/prometheus/PrometheusTextWriter.java
 
b/metrics/interface/src/main/java/org/apache/iotdb/metrics/reporter/prometheus/PrometheusTextWriter.java
index 821a7001fe..2ca5076a3d 100644
--- 
a/metrics/interface/src/main/java/org/apache/iotdb/metrics/reporter/prometheus/PrometheusTextWriter.java
+++ 
b/metrics/interface/src/main/java/org/apache/iotdb/metrics/reporter/prometheus/PrometheusTextWriter.java
@@ -19,6 +19,8 @@
 
 package org.apache.iotdb.metrics.reporter.prometheus;
 
+import org.apache.iotdb.metrics.config.MetricConfig;
+import org.apache.iotdb.metrics.config.MetricConfigDescriptor;
 import org.apache.iotdb.metrics.utils.MetricType;
 
 import java.io.FilterWriter;
@@ -27,6 +29,8 @@ import java.io.Writer;
 import java.util.Map;
 
 class PrometheusTextWriter extends FilterWriter {
+  private static final MetricConfig METRIC_CONFIG =
+      MetricConfigDescriptor.getInstance().getMetricConfig();
 
   public PrometheusTextWriter(Writer out) {
     super(out);
@@ -66,6 +70,13 @@ class PrometheusTextWriter extends FilterWriter {
     write(name);
     if (labels.size() > 0) {
       write('{');
+      write("cluster=\"");
+      write(METRIC_CONFIG.getClusterName());
+      write("\",nodeType=\"");
+      write(METRIC_CONFIG.getNodeType().toString());
+      write("\",nodeId=\"");
+      write(String.valueOf(METRIC_CONFIG.getNodeId()));
+      write("\",");
       for (Map.Entry<String, String> entry : labels.entrySet()) {
         write(entry.getKey());
         write("=\"");
diff --git 
a/metrics/interface/src/main/java/org/apache/iotdb/metrics/utils/IoTDBMetricsUtils.java
 
b/metrics/interface/src/main/java/org/apache/iotdb/metrics/utils/IoTDBMetricsUtils.java
index 83cbba1776..0e0ca4e962 100644
--- 
a/metrics/interface/src/main/java/org/apache/iotdb/metrics/utils/IoTDBMetricsUtils.java
+++ 
b/metrics/interface/src/main/java/org/apache/iotdb/metrics/utils/IoTDBMetricsUtils.java
@@ -72,9 +72,11 @@ public class IoTDBMetricsUtils {
         .append(".")
         .append(METRIC_CONFIG.getIotdbReporterConfig().getLocation())
         .append(".`")
-        .append(METRIC_CONFIG.getRpcAddress())
-        .append(":")
-        .append(METRIC_CONFIG.getRpcPort())
+        .append(METRIC_CONFIG.getClusterName())
+        .append("`.")
+        .append(METRIC_CONFIG.getNodeType().toString())
+        .append(".`")
+        .append(METRIC_CONFIG.getNodeId())
         .append("`")
         .append(".")
         .append("`")
diff --git 
a/metrics/interface/src/main/java/org/apache/iotdb/metrics/utils/NodeType.java 
b/metrics/interface/src/main/java/org/apache/iotdb/metrics/utils/NodeType.java
new file mode 100644
index 0000000000..1ffa95030c
--- /dev/null
+++ 
b/metrics/interface/src/main/java/org/apache/iotdb/metrics/utils/NodeType.java
@@ -0,0 +1,30 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.iotdb.metrics.utils;
+
+public enum NodeType {
+  CONFIGNODE,
+  DATANODE;
+
+  @Override
+  public String toString() {
+    return name();
+  }
+}
diff --git a/server/src/main/java/org/apache/iotdb/db/conf/IoTDBDescriptor.java 
b/server/src/main/java/org/apache/iotdb/db/conf/IoTDBDescriptor.java
index 79776fc6f1..a4c40333ab 100644
--- a/server/src/main/java/org/apache/iotdb/db/conf/IoTDBDescriptor.java
+++ b/server/src/main/java/org/apache/iotdb/db/conf/IoTDBDescriptor.java
@@ -49,6 +49,7 @@ import org.apache.iotdb.metrics.config.ReloadLevel;
 import org.apache.iotdb.metrics.reporter.iotdb.IoTDBInternalMemoryReporter;
 import org.apache.iotdb.metrics.reporter.iotdb.IoTDBInternalReporter;
 import org.apache.iotdb.metrics.utils.InternalReporterType;
+import org.apache.iotdb.metrics.utils.NodeType;
 import org.apache.iotdb.rpc.RpcTransportFactory;
 import org.apache.iotdb.tsfile.common.conf.TSFileDescriptor;
 import org.apache.iotdb.tsfile.file.metadata.enums.TSDataType;
@@ -188,7 +189,7 @@ public class IoTDBDescriptor {
         MetricConfigDescriptor.getInstance().loadProps(commonProperties);
         MetricConfigDescriptor.getInstance()
             .getMetricConfig()
-            .updateRpcInstance(conf.getInternalAddress(), 
conf.getInternalPort());
+            .updateRpcInstance(conf.getClusterName(), conf.getDataNodeId(), 
NodeType.DATANODE);
       }
     } else {
       logger.warn(

Reply via email to