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

zyk 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 ce0c43263f [IOTDB-5524] Update metric docs for schema module (#9136)
ce0c43263f is described below

commit ce0c43263ffe0cc86d0374ce06390eddd1036478
Author: Chen YZ <[email protected]>
AuthorDate: Fri Feb 24 15:45:28 2023 +0800

    [IOTDB-5524] Update metric docs for schema module (#9136)
---
 docs/UserGuide/Monitor-Alert/Metric-Tool.md    | 29 ++++++++++++++++++--------
 docs/zh/UserGuide/Monitor-Alert/Metric-Tool.md | 29 ++++++++++++++++++--------
 2 files changed, 40 insertions(+), 18 deletions(-)

diff --git a/docs/UserGuide/Monitor-Alert/Metric-Tool.md 
b/docs/UserGuide/Monitor-Alert/Metric-Tool.md
index 47e9195318..3b0a7ad102 100644
--- a/docs/UserGuide/Monitor-Alert/Metric-Tool.md
+++ b/docs/UserGuide/Monitor-Alert/Metric-Tool.md
@@ -300,15 +300,14 @@ carefully evaluated. The current Core-level metrics are 
as follows:
 
 #### 4.2.5. 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                   |
-| mem    | name="schema_region_total_remaining" | AutoGauge | The memory 
remaining for 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.6. Compaction
 
@@ -416,6 +415,18 @@ carefully evaluated. The current Core-level metrics are as 
follows:
 | series_scan_cost         | stage="build_tsblock_from_page_reader", 
type="aligned/non_aligned", from="mem/disk" | Timer   | The time-consuming of 
constructing Tsblock from PageReader                              |
 | series_scan_cost         | stage="build_tsblock_from_merge_reader", 
type="aligned/non_aligned", from="null"    | Timer   | The time-consuming of 
constructing Tsblock from MergeReader (handling overlapping data) |
 
+#### 4.2.16 Schema Engine
+
+| Metric        | Tags                                                         
| Type      | Description                            |
+| ------------- | ------------------------------------------------------------ 
| --------- | -------------------------------------- |
+| schema_engine | name="schema_region_total_mem_usage"                         
| AutoGauge | Memory usgae for all SchemaRegion      |
+| schema_engine | name="schema_region_mem_capacity"                            
| AutoGauge | Memory capacity for all SchemaRegion   |
+| schema_engine | name="schema_engine_mode"                                    
| Gauge     | Mode of SchemaEngine                   |
+| schema_engine | name="schema_region_consensus"                               
| Gauge     | Consensus protocol of SchemaRegion     |
+| schema_engine | name="schema_region_number"                                  
| AutoGauge | Number of SchemaRegion                 |
+| schema_region | name="schema_region_mem_usage", 
region="SchemaRegion[{regionId}]" | AutoGauge | Memory usgae for each 
SchemaRegion     |
+| schema_region | name="schema_region_series_cnt", 
region="SchemaRegion[{regionId}]" | AutoGauge | Timeseries count for each 
SchemaRegion |
+
 ### 4.3. Normal level Metrics
 
 #### 4.3.1. Cluster
diff --git a/docs/zh/UserGuide/Monitor-Alert/Metric-Tool.md 
b/docs/zh/UserGuide/Monitor-Alert/Metric-Tool.md
index f0d5fff341..f3b75a8df7 100644
--- a/docs/zh/UserGuide/Monitor-Alert/Metric-Tool.md
+++ b/docs/zh/UserGuide/Monitor-Alert/Metric-Tool.md
@@ -278,15 +278,14 @@ Core 级别的监控指标在系统运行中默认开启,每一个 Core 级别
 | thrift_active_threads | name="ClientRPC-Service"           | AutoGauge | 
Client 建立的活跃 Thrift 连接数     |
 
 #### 4.2.5. 内存统计
-| 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         |
-| mem    | name="schema_region_total_remaining" | 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.6. 合并统计
 
@@ -394,6 +393,18 @@ Core 级别的监控指标在系统运行中默认开启,每一个 Core 级别
 | series_scan_cost         | stage="build_tsblock_from_page_reader", 
type="aligned/non_aligned", from="mem/disk" | Timer   | 从 PageReader 构造 Tsblock 
耗时                |
 | series_scan_cost         | stage="build_tsblock_from_merge_reader", 
type="aligned/non_aligned", from="null"    | Timer   | 从 MergeReader 构造 Tsblock 
(解乱序数据)耗时 |
 
+#### 4.2.16 元数据引擎统计
+
+| Metric        | Tags                                                         
| Type      | Description                                    |
+| ------------- | ------------------------------------------------------------ 
| --------- | ---------------------------------------------- |
+| schema_engine | name="schema_region_total_mem_usage"                         
| AutoGauge | SchemaRegion 全局内存使用量                    |
+| schema_engine | name="schema_region_mem_capacity"                            
| AutoGauge | SchemaRegion 全局可用内存                      |
+| schema_engine | name="schema_engine_mode"                                    
| Gauge     | SchemaEngine 模式                              |
+| schema_engine | name="schema_region_consensus"                               
| Gauge     | 元数据管理引擎共识协议                         |
+| schema_engine | name="schema_region_number"                                  
| AutoGauge | SchemaRegion 个数                              |
+| schema_region | name="schema_region_mem_usage", 
region="SchemaRegion[{regionId}]" | AutoGauge | 每个 SchemaRegion 分别的内存使用量        
     |
+| schema_region | name="schema_region_series_cnt", 
region="SchemaRegion[{regionId}]" | AutoGauge | 每个 SchemaRegion 分别的时间序列数        
     |
+
 ### 4.3. Normal 级别监控指标
 
 #### 4.3.1. 集群

Reply via email to