This is an automated email from the ASF dual-hosted git repository.
xingtanzjr 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 3badb017a9 [IOTDB-4813] Update the doc of metric module and grafana
dashboard (#7883)
3badb017a9 is described below
commit 3badb017a9fa88494017fb108dd02a9a78f868ec
Author: ZhangHongYin <[email protected]>
AuthorDate: Thu Nov 3 10:42:41 2022 +0800
[IOTDB-4813] Update the doc of metric module and grafana dashboard (#7883)
---
...nfignode.properties => iotdb-common.properties} | 12 +-
...otdb-metric.yml => iotdb-confignode-metric.yml} | 2 +-
.../confignode1conf/iotdb-confignode.properties | 11 +-
...nfignode.properties => iotdb-common.properties} | 11 +-
...otdb-metric.yml => iotdb-confignode-metric.yml} | 2 +-
.../confignode2conf/iotdb-confignode.properties | 10 +-
...nfignode.properties => iotdb-common.properties} | 13 +-
...otdb-metric.yml => iotdb-confignode-metric.yml} | 2 +-
.../confignode3conf/iotdb-confignode.properties | 10 +-
.../multileader/MultiLeaderServerImpl.java | 10 +
.../multileader/client/DispatchLogHandler.java | 2 +
.../multileader/logdispatcher/LogDispatcher.java | 2 +
docs/UserGuide/Maintenance-Tools/Metric-Tool.md | 152 ++++++++-----
docs/zh/UserGuide/Maintenance-Tools/Metric-Tool.md | 188 ++++++++++-------
.../Apache IoTDB ConfigNode Dashboard v0.14.0.json | 234 ++++-----------------
.../Apache IoTDB DataNode Dashboard v0.14.0.json | 119 +++--------
...datanode.properties => iotdb-common.properties} | 22 +-
...{iotdb-metric.yml => iotdb-datanode-metric.yml} | 0
.../datanode1conf/iotdb-datanode.properties | 5 -
.../resources/datanode1conf/iotdb-rest.properties | 45 +---
...datanode.properties => iotdb-common.properties} | 22 +-
...{iotdb-metric.yml => iotdb-datanode-metric.yml} | 0
.../datanode2conf/iotdb-datanode.properties | 5 -
.../resources/datanode2conf/iotdb-rest.properties | 43 ----
.../iotdb-common.properties} | 22 +-
...{iotdb-metric.yml => iotdb-datanode-metric.yml} | 0
.../datanode3conf/iotdb-datanode.properties | 7 +-
.../resources/datanode3conf/iotdb-rest.properties | 45 +---
28 files changed, 316 insertions(+), 680 deletions(-)
diff --git
a/confignode/src/test/resources/confignode1conf/iotdb-confignode.properties
b/confignode/src/test/resources/confignode1conf/iotdb-common.properties
similarity index 73%
copy from
confignode/src/test/resources/confignode1conf/iotdb-confignode.properties
copy to confignode/src/test/resources/confignode1conf/iotdb-common.properties
index f3ae20e245..365fb4f09b 100644
--- a/confignode/src/test/resources/confignode1conf/iotdb-confignode.properties
+++ b/confignode/src/test/resources/confignode1conf/iotdb-common.properties
@@ -1,4 +1,3 @@
-
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
@@ -18,18 +17,11 @@
# under the License.
#
-cn_internal_address=127.0.0.1
-cn_internal_port=22277
-cn_consensus_port=22278
-cn_target_config_nodes=127.0.0.1:22277
+timestamp_precision=ms
data_region_consensus_protocol_class=org.apache.iotdb.consensus.multileader.MultiLeaderConsensus
schema_region_consensus_protocol_class=org.apache.iotdb.consensus.ratis.RatisConsensus
schema_replication_factor=3
data_replication_factor=3
-cn_system_dir=target/confignode1/system
-cn_data_dirs=target/confignode1/data
-cn_consensus_dir=target/confignode1/consensus
udf_lib_dir=target/confignode1/ext/udf
-trigger_lib_dir=target/confignode1/ext/trigger
-proc_wal_dir=target/confignode1/proc
+trigger_root_dir=target/confignode1/ext/trigger
partition_region_ratis_log_appender_buffer_size_max = 14194304
\ No newline at end of file
diff --git a/confignode/src/test/resources/confignode1conf/iotdb-metric.yml
b/confignode/src/test/resources/confignode1conf/iotdb-confignode-metric.yml
similarity index 98%
rename from confignode/src/test/resources/confignode1conf/iotdb-metric.yml
rename to
confignode/src/test/resources/confignode1conf/iotdb-confignode-metric.yml
index 3243ee39cd..7832a1f107 100644
--- a/confignode/src/test/resources/confignode1conf/iotdb-metric.yml
+++ b/confignode/src/test/resources/confignode1conf/iotdb-confignode-metric.yml
@@ -18,7 +18,7 @@
#
# whether enable the module
-enableMetric: false
+enableMetric: true
# Is stat performance of operation latency
enablePerformanceStat: false
diff --git
a/confignode/src/test/resources/confignode1conf/iotdb-confignode.properties
b/confignode/src/test/resources/confignode1conf/iotdb-confignode.properties
index f3ae20e245..29f2bcccbf 100644
--- a/confignode/src/test/resources/confignode1conf/iotdb-confignode.properties
+++ b/confignode/src/test/resources/confignode1conf/iotdb-confignode.properties
@@ -1,4 +1,3 @@
-
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
@@ -22,14 +21,6 @@ cn_internal_address=127.0.0.1
cn_internal_port=22277
cn_consensus_port=22278
cn_target_config_nodes=127.0.0.1:22277
-data_region_consensus_protocol_class=org.apache.iotdb.consensus.multileader.MultiLeaderConsensus
-schema_region_consensus_protocol_class=org.apache.iotdb.consensus.ratis.RatisConsensus
-schema_replication_factor=3
-data_replication_factor=3
cn_system_dir=target/confignode1/system
cn_data_dirs=target/confignode1/data
-cn_consensus_dir=target/confignode1/consensus
-udf_lib_dir=target/confignode1/ext/udf
-trigger_lib_dir=target/confignode1/ext/trigger
-proc_wal_dir=target/confignode1/proc
-partition_region_ratis_log_appender_buffer_size_max = 14194304
\ No newline at end of file
+cn_consensus_dir=target/confignode1/consensus
\ No newline at end of file
diff --git
a/confignode/src/test/resources/confignode2conf/iotdb-confignode.properties
b/confignode/src/test/resources/confignode2conf/iotdb-common.properties
similarity index 73%
copy from
confignode/src/test/resources/confignode2conf/iotdb-confignode.properties
copy to confignode/src/test/resources/confignode2conf/iotdb-common.properties
index 7e1fe0fcbd..2efa2b39ed 100644
--- a/confignode/src/test/resources/confignode2conf/iotdb-confignode.properties
+++ b/confignode/src/test/resources/confignode2conf/iotdb-common.properties
@@ -17,18 +17,11 @@
# under the License.
#
-cn_internal_address=127.0.0.1
-cn_internal_port=22279
-cn_consensus_port=22280
-cn_target_config_nodes=127.0.0.1:22277
+timestamp_precision=ms
data_region_consensus_protocol_class=org.apache.iotdb.consensus.multileader.MultiLeaderConsensus
schema_region_consensus_protocol_class=org.apache.iotdb.consensus.ratis.RatisConsensus
schema_replication_factor=3
data_replication_factor=3
-cn_system_dir=target/confignode2/system
-cn_data_dirs=target/confignode2/data
-cn_consensus_dir=target/confignode2/consensus
udf_lib_dir=target/confignode2/ext/udf
-trigger_lib_dir=target/confignode2/ext/trigger
-proc_wal_dir=target/confignode2/proc
+trigger_root_dir=target/confignode2/ext/trigger
partition_region_ratis_log_appender_buffer_size_max = 14194304
\ No newline at end of file
diff --git a/confignode/src/test/resources/confignode2conf/iotdb-metric.yml
b/confignode/src/test/resources/confignode2conf/iotdb-confignode-metric.yml
similarity index 98%
rename from confignode/src/test/resources/confignode2conf/iotdb-metric.yml
rename to
confignode/src/test/resources/confignode2conf/iotdb-confignode-metric.yml
index 6b3c5871bc..6e8adbc779 100644
--- a/confignode/src/test/resources/confignode2conf/iotdb-metric.yml
+++ b/confignode/src/test/resources/confignode2conf/iotdb-confignode-metric.yml
@@ -18,7 +18,7 @@
#
# whether enable the module
-enableMetric: false
+enableMetric: true
# Is stat performance of operation latency
enablePerformanceStat: false
diff --git
a/confignode/src/test/resources/confignode2conf/iotdb-confignode.properties
b/confignode/src/test/resources/confignode2conf/iotdb-confignode.properties
index 7e1fe0fcbd..2ce515d909 100644
--- a/confignode/src/test/resources/confignode2conf/iotdb-confignode.properties
+++ b/confignode/src/test/resources/confignode2conf/iotdb-confignode.properties
@@ -21,14 +21,6 @@ cn_internal_address=127.0.0.1
cn_internal_port=22279
cn_consensus_port=22280
cn_target_config_nodes=127.0.0.1:22277
-data_region_consensus_protocol_class=org.apache.iotdb.consensus.multileader.MultiLeaderConsensus
-schema_region_consensus_protocol_class=org.apache.iotdb.consensus.ratis.RatisConsensus
-schema_replication_factor=3
-data_replication_factor=3
cn_system_dir=target/confignode2/system
cn_data_dirs=target/confignode2/data
-cn_consensus_dir=target/confignode2/consensus
-udf_lib_dir=target/confignode2/ext/udf
-trigger_lib_dir=target/confignode2/ext/trigger
-proc_wal_dir=target/confignode2/proc
-partition_region_ratis_log_appender_buffer_size_max = 14194304
\ No newline at end of file
+cn_consensus_dir=target/confignode2/consensus
\ No newline at end of file
diff --git
a/confignode/src/test/resources/confignode3conf/iotdb-confignode.properties
b/confignode/src/test/resources/confignode3conf/iotdb-common.properties
similarity index 73%
copy from
confignode/src/test/resources/confignode3conf/iotdb-confignode.properties
copy to confignode/src/test/resources/confignode3conf/iotdb-common.properties
index 50a232a29c..30e5391585 100644
--- a/confignode/src/test/resources/confignode3conf/iotdb-confignode.properties
+++ b/confignode/src/test/resources/confignode3conf/iotdb-common.properties
@@ -17,18 +17,11 @@
# under the License.
#
-cn_internal_address=127.0.0.1
-cn_internal_port=22281
-cn_consensus_port=22282
-cn_target_config_nodes=127.0.0.1:22277
+timestamp_precision=ms
data_region_consensus_protocol_class=org.apache.iotdb.consensus.multileader.MultiLeaderConsensus
schema_region_consensus_protocol_class=org.apache.iotdb.consensus.ratis.RatisConsensus
schema_replication_factor=3
data_replication_factor=3
-cn_system_dir=target/confignode3/system
-cn_data_dirs=target/confignode3/data
-cn_consensus_dir=target/confignode3/consensus
udf_lib_dir=target/confignode3/ext/udf
-trigger_lib_dir=target/confignode3/ext/trigger
-proc_wal_dir=target/confignode3/proc
-partition_region_ratis_log_appender_buffer_size_max = 14194304
+trigger_root_dir=target/confignode3/ext/trigger
+partition_region_ratis_log_appender_buffer_size_max = 14194304
\ No newline at end of file
diff --git a/confignode/src/test/resources/confignode3conf/iotdb-metric.yml
b/confignode/src/test/resources/confignode3conf/iotdb-confignode-metric.yml
similarity index 98%
rename from confignode/src/test/resources/confignode3conf/iotdb-metric.yml
rename to
confignode/src/test/resources/confignode3conf/iotdb-confignode-metric.yml
index 3594690d8d..e44518bfb6 100644
--- a/confignode/src/test/resources/confignode3conf/iotdb-metric.yml
+++ b/confignode/src/test/resources/confignode3conf/iotdb-confignode-metric.yml
@@ -18,7 +18,7 @@
#
# whether enable the module
-enableMetric: false
+enableMetric: true
# Is stat performance of operation latency
enablePerformanceStat: false
diff --git
a/confignode/src/test/resources/confignode3conf/iotdb-confignode.properties
b/confignode/src/test/resources/confignode3conf/iotdb-confignode.properties
index 50a232a29c..6ff171cfe2 100644
--- a/confignode/src/test/resources/confignode3conf/iotdb-confignode.properties
+++ b/confignode/src/test/resources/confignode3conf/iotdb-confignode.properties
@@ -21,14 +21,6 @@ cn_internal_address=127.0.0.1
cn_internal_port=22281
cn_consensus_port=22282
cn_target_config_nodes=127.0.0.1:22277
-data_region_consensus_protocol_class=org.apache.iotdb.consensus.multileader.MultiLeaderConsensus
-schema_region_consensus_protocol_class=org.apache.iotdb.consensus.ratis.RatisConsensus
-schema_replication_factor=3
-data_replication_factor=3
cn_system_dir=target/confignode3/system
cn_data_dirs=target/confignode3/data
-cn_consensus_dir=target/confignode3/consensus
-udf_lib_dir=target/confignode3/ext/udf
-trigger_lib_dir=target/confignode3/ext/trigger
-proc_wal_dir=target/confignode3/proc
-partition_region_ratis_log_appender_buffer_size_max = 14194304
+cn_consensus_dir=target/confignode3/consensus
\ No newline at end of file
diff --git
a/consensus/src/main/java/org/apache/iotdb/consensus/multileader/MultiLeaderServerImpl.java
b/consensus/src/main/java/org/apache/iotdb/consensus/multileader/MultiLeaderServerImpl.java
index 986927f17a..e965973459 100644
---
a/consensus/src/main/java/org/apache/iotdb/consensus/multileader/MultiLeaderServerImpl.java
+++
b/consensus/src/main/java/org/apache/iotdb/consensus/multileader/MultiLeaderServerImpl.java
@@ -167,6 +167,8 @@ public class MultiLeaderServerImpl {
.getOrCreateHistogram(
Metric.STAGE.toString(),
MetricLevel.CORE,
+ Tag.NAME.toString(),
+ Metric.MULTI_LEADER.toString(),
Tag.TYPE.toString(),
"getStateMachineLock",
Tag.REGION.toString(),
@@ -199,6 +201,8 @@ public class MultiLeaderServerImpl {
.getOrCreateHistogram(
Metric.STAGE.toString(),
MetricLevel.CORE,
+ Tag.NAME.toString(),
+ Metric.MULTI_LEADER.toString(),
Tag.TYPE.toString(),
"checkingBeforeWrite",
Tag.REGION.toString(),
@@ -219,6 +223,8 @@ public class MultiLeaderServerImpl {
.getOrCreateHistogram(
Metric.STAGE.toString(),
MetricLevel.CORE,
+ Tag.NAME.toString(),
+ Metric.MULTI_LEADER.toString(),
Tag.TYPE.toString(),
"writeStateMachine",
Tag.REGION.toString(),
@@ -240,6 +246,8 @@ public class MultiLeaderServerImpl {
.getOrCreateHistogram(
Metric.STAGE.toString(),
MetricLevel.CORE,
+ Tag.NAME.toString(),
+ Metric.MULTI_LEADER.toString(),
Tag.TYPE.toString(),
"offerRequestToQueue",
Tag.REGION.toString(),
@@ -257,6 +265,8 @@ public class MultiLeaderServerImpl {
.getOrCreateHistogram(
Metric.STAGE.toString(),
MetricLevel.CORE,
+ Tag.NAME.toString(),
+ Metric.MULTI_LEADER.toString(),
Tag.TYPE.toString(),
"consensusWrite",
Tag.REGION.toString(),
diff --git
a/consensus/src/main/java/org/apache/iotdb/consensus/multileader/client/DispatchLogHandler.java
b/consensus/src/main/java/org/apache/iotdb/consensus/multileader/client/DispatchLogHandler.java
index 0e4644aad4..705aa980e9 100644
---
a/consensus/src/main/java/org/apache/iotdb/consensus/multileader/client/DispatchLogHandler.java
+++
b/consensus/src/main/java/org/apache/iotdb/consensus/multileader/client/DispatchLogHandler.java
@@ -68,6 +68,8 @@ public class DispatchLogHandler implements
AsyncMethodCallback<TSyncLogRes> {
.getOrCreateHistogram(
Metric.STAGE.toString(),
MetricLevel.CORE,
+ Tag.NAME.toString(),
+ Metric.MULTI_LEADER.toString(),
Tag.TYPE.toString(),
"syncLogTimePerRequest",
Tag.REGION.toString(),
diff --git
a/consensus/src/main/java/org/apache/iotdb/consensus/multileader/logdispatcher/LogDispatcher.java
b/consensus/src/main/java/org/apache/iotdb/consensus/multileader/logdispatcher/LogDispatcher.java
index 9e428f4e09..427f2d3945 100644
---
a/consensus/src/main/java/org/apache/iotdb/consensus/multileader/logdispatcher/LogDispatcher.java
+++
b/consensus/src/main/java/org/apache/iotdb/consensus/multileader/logdispatcher/LogDispatcher.java
@@ -301,6 +301,8 @@ public class LogDispatcher {
.getOrCreateHistogram(
Metric.STAGE.toString(),
MetricLevel.CORE,
+ Tag.NAME.toString(),
+ Metric.MULTI_LEADER.toString(),
Tag.TYPE.toString(),
"constructBatch",
Tag.REGION.toString(),
diff --git a/docs/UserGuide/Maintenance-Tools/Metric-Tool.md
b/docs/UserGuide/Maintenance-Tools/Metric-Tool.md
index d8cf16dfb1..a676169bd5 100644
--- a/docs/UserGuide/Maintenance-Tools/Metric-Tool.md
+++ b/docs/UserGuide/Maintenance-Tools/Metric-Tool.md
@@ -91,15 +91,15 @@ Next, we will choose Prometheus format data as samples to
describe each kind of
| thrift_active_threads | name="{{thriftThread}}" | core | current
number if thrift worker threads | thrift_active_threads{name="RPC",} 1.0
|
#### 1.3.3.2. Task
-| Metric | Tag
| level | Description
| Sample
|
-| ----------------------------- |
----------------------------------------------------------------------------- |
--------- | -------------------------------------------------------- |
---------------------------------------------------------------------------------------
|
-| queue |
name="compaction_inner/compaction_cross/flush",<br />status="running/waiting" |
important | The count of current tasks in running and waiting status |
queue{name="flush",status="waiting",}
0.0<br/>queue{name="flush",status="running",} 0.0 |
-| cost_task_seconds_count |
name="inner_compaction/cross_compaction/flush" |
important | The total count of tasks occurs till now |
cost_task_seconds_count{name="flush",} 1.0
|
-| cost_task_seconds_max |
name="inner_compaction/cross_compaction/flush" |
important | The seconds of the longest task takes till now |
cost_task_seconds_max{name="flush",} 0.363
|
-| cost_task_seconds_sum |
name="inner_compaction/cross_compaction/flush" |
important | The total cost seconds of all tasks till now |
cost_task_seconds_sum{name="flush",} 0.363
|
-| data_written_total | name="compaction", <br
/>type="aligned/not-aligned/total" | important | The size
of data written in compaction |
data_written_total{name="compaction",type="total",} 10240
|
-| data_read_total | name="compaction"
| important | The size of data read in
compaction | data_read_total{name="compaction",} 10240
|
-| compaction_task_count_total | name = "inner_compaction/cross_compaction",
type="sequence/unsequence/cross" | important | The number of compaction task
|
compaction_task_count_total{name="inner_compaction",type="sequence",} 1
|
+| Metric | Tag
| level | Description
| Sample
|
+| --------------------------- |
----------------------------------------------------------------------------- |
--------- | -------------------------------------------------------- |
---------------------------------------------------------------------------------------
|
+| queue |
name="compaction_inner/compaction_cross/flush",<br />status="running/waiting" |
important | The count of current tasks in running and waiting status |
queue{name="flush",status="waiting",}
0.0<br/>queue{name="flush",status="running",} 0.0 |
+| cost_task_seconds_count | name="inner_compaction/cross_compaction/flush"
| important | The total count of tasks occurs
till now | cost_task_seconds_count{name="flush",} 1.0
|
+| cost_task_seconds_max | name="inner_compaction/cross_compaction/flush"
| important | The seconds of the longest task
takes till now | cost_task_seconds_max{name="flush",} 0.363
|
+| cost_task_seconds_sum | name="inner_compaction/cross_compaction/flush"
| important | The total cost seconds of all
tasks till now | cost_task_seconds_sum{name="flush",} 0.363
|
+| data_written_total | name="compaction", <br
/>type="aligned/not-aligned/total" | important | The size
of data written in compaction |
data_written_total{name="compaction",type="total",} 10240
|
+| data_read_total | name="compaction"
| important | The size of data read in
compaction | data_read_total{name="compaction",} 10240
|
+| compaction_task_count_total | name = "inner_compaction/cross_compaction",
type="sequence/unsequence/cross" | important | The number of compaction task
|
compaction_task_count_total{name="inner_compaction",type="sequence",} 1
|
#### 1.3.3.3. Memory Usage
@@ -123,6 +123,7 @@ Next, we will choose Prometheus format data as samples to
describe each kind of
#### 1.3.3.6. Cluster
+##### The status of cluster
| Metric | Tag
| level | Description
| Sample
|
| ------------------------- |
------------------------------------------------------------------ | ---------
|
--------------------------------------------------------------------------------------------
| ----------------------------------------------------------------------------
|
| cluster_node_leader_count | name="{{ip}}:{{port}}"
| important | The count of ```dataGroupLeader``` on each
node, which reflects the distribution of leaders |
cluster_node_leader_count{name="127.0.0.1",} 2.0 |
@@ -136,6 +137,20 @@ Next, we will choose Prometheus format data as samples to
describe each kind of
| region |
name="{{storageGroupName}}",type="SchemaRegion/DataRegion" | normal
| The number of DataRegion/SchemaRegion in storage group
| region{name="root.schema.sg1",type="DataRegion",} 14.0
|
| slot |
name="{{storageGroupName}}",type="schemaSlotNumber/dataSlotNumber" | normal
| The number of dataSlot/schemaSlot in storage group
| slot{name="root.schema.sg1",type="schemaSlotNumber",} 2.0
|
+##### 1.3.3.6.2. MultiLeader
+| Metric | Tag
| level | 说明
| 示例
|
+| ------------ |
--------------------------------------------------------------------------------------------
| --------- |
----------------------------------------------------------------------------- |
----------------------------------------------------------------------------------------------------------------
|
+| mutli_leader | name="multiLeaderServerImpl", region="{{region}}",
type="searchIndex/safeIndex" | core | The searchIndex and
safeIndex of region in multiLeader |
multi_leader{name="multiLeaderServerImpl",region="DataRegion[7]",type="searchIndex",}
1945.0 |
+| mutli_leader | name="logDispatcher-{{IP}}:{{Port}}", region="{{region}}",
type="currentSyncIndex" | important | The currentSyncIndex of
LogDispatcherThread of related region |
multi_leader{name="logDispatcher-127.0.0.1:40014",region="DataRegion[7]",type="currentSyncIndex",}
1945.0 |
+| mutli_leader | name="logDispatcher-{{IP}}:{{Port}}", region="{{region}}",
type="cachedRequestInMemoryQueue" | important | The total size of queues that
buffers requests in LogDispatcher |
multi_leader{name="logDispatcher-127.0.0.1:40014",region="DataRegion[9]",type="cachedRequestInMemoryQueue",}
0.0 |
+| stage | name="multi_leader", region="{{region}}",
type="getStateMachineLock" | core | The time
consumed to get lock of statemachine in multiLeader |
stage{name="multi_leader",region="DataRegion[6]",type="getStateMachineLock",quantile="0.5",}
0.0 |
+| stage | name="multi_leader", region="{{region}}",
type="checkingBeforeWrite" | core | The time
consumed to check before write in multiLeader |
stage{name="multi_leader",region="DataRegion[5]",type="checkingBeforeWrite",quantile="0.5",}
0.0 |
+| stage | name="multi_leader", region="{{region}}",
type="writeStateMachine" | core | The time
consumed to write consensus request into statemachine in multiLeader |
stage{name="multi_leader",region="DataRegion[6]",type="writeStateMachine",quantile="0.5",}
1.0 |
+| stage | name="multi_leader", region="{{region}}",
type="offerRequestToQueue" | core | The time
consumed to try to offer request into queue in multiLeader |
stage{name="multi_leader",region="DataRegion[6]",type="offerRequestToQueue",quantile="0.5",}
1.0 |
+| stage | name="multi_leader", region="{{region}}",
type="consensusWrite" | core | The total time
consumed to write a consensus request in multiLeader |
stage{name="multi_leader",region="DataRegion[6]",type="consensusWrite",quantile="0.5",}
2.0625 |
+| stage | name="multi_leader", region="{{region}}",
type="constructBatch" | core | The time
consumed to construct batch in LogDispatcher per request |
stage{name="multi_leader",region="DataRegion[7]",type="constructBatch",quantile="0.5",}
0.0 |
+| stage | name="multi_leader", region="{{region}}",
type="syncLogTimePerRequest" | core | The time
consumed to sync one request in multiLeader |
stage{name="multi_leader",region="DataRegion[7]",type="syncLogTimePerRequest",quantile="0.5",}
0.0 |
+
### 1.3.4. IoTDB PreDefined Metrics Set
#### 1.3.4.1. JVM
@@ -174,11 +189,11 @@ Next, we will choose Prometheus format data as samples to
describe each kind of
##### 1.3.4.1.4. Classes
-| Metric | Tag
| level | Description
| Sample
|
-| ---------------------------------- |
--------------------------------------------- | --------- |
-----------------------------------------------------------------------------------------
|
-----------------------------------------------------------------------------------
|
-| jvm_classes_unloaded_classes | None
| Important | The total number of classes unloaded since the Java virtual
machine has started execution | jvm_classes_unloaded_classes 680.0
|
-| jvm_classes_loaded_classes | None
| Important | The number of classes that are currently loaded in the Java
virtual machine | jvm_classes_loaded_classes 5975.0
|
-| jvm_compilation_time_ms | {compiler="HotSpot 64-Bit Tiered
Compilers",} | Important | The approximate accumulated elapsed time spent in
compilation |
jvm_compilation_time_ms{compiler="HotSpot 64-Bit Tiered Compilers",} 107092.0 |
+| Metric | Tag
| level | Description
| Sample
|
+| ---------------------------- | ---------------------------------------------
| --------- |
-----------------------------------------------------------------------------------------
|
----------------------------------------------------------------------------- |
+| jvm_classes_unloaded_classes | None
| Important | The total number of classes unloaded since the Java virtual
machine has started execution | jvm_classes_unloaded_classes 680.0
|
+| jvm_classes_loaded_classes | None
| Important | The number of classes that are currently loaded in the Java
virtual machine | jvm_classes_loaded_classes 5975.0
|
+| jvm_compilation_time_ms | {compiler="HotSpot 64-Bit Tiered Compilers",}
| Important | The approximate accumulated elapsed time spent in compilation
| jvm_compilation_time_ms{compiler="HotSpot 64-Bit
Tiered Compilers",} 107092.0 |
#### 1.3.4.2. File
@@ -237,7 +252,7 @@ Next, we will choose Prometheus format data as samples to
describe each kind of
## 1.4. How to get these metrics?
-The metrics collection switch is disabled by default,you need to enable it
from ```conf/iotdb-metric.yml```, Currently, it also supports hot loading via
`load configuration` after startup.
+The metrics collection switch is disabled by default,you need to enable it
from ```conf/iotdb-{datanode/confignode}-metric.yml```, Currently, it also
supports hot loading via `load configuration` after startup.
### 1.4.1. Iotdb-metric.yml
@@ -275,7 +290,7 @@ ioTDBReporterConfig:
Then you can get metrics data as follows
-1. Enable metrics switch in ```iotdb-metric.yml```
+1. Enable metrics switch in ```iotdb-{datanode/confignode}-metric.yml```
2. You can just stay other config params as default.
3. Start/Restart your IoTDB server/cluster
4. Open your browser or use the ```curl``` command to request
```http://servier_ip:9091/metrics```,then you will get metrics data like
follows:
@@ -372,70 +387,97 @@ When creating Grafana, you can select the json file you
just downloaded to `Impo
> Except for the metrics specified specially, the following metrics are
> guaranteed to be available in the monitoring framework at the Important
> levels.
1. `Overview`:
- 1. `The number of entity`: The number of entities, currently including the
number of timeseries.
- 2. `write point per minute`: the cumulative number of write points per
minute.
- 3. `storage group used memory`: The memory size used by each storage group.
+ 1. `The number of entity`: The number of entities, currently including the
number of timeseries
+ 2. `write point per minute`: the cumulative number of write points per
minute
+ 3. `storage group used memory`: The memory size used by each storage group
2. `Interface`:
1. `The QPS of Interface`: The number of times the system interface is
accessed per second
2. `The time consumed of Interface`: The average time consumed by the
system interface
- 3. `Cache hit rate`: Cache hit rate.
+ 3. `Cache hit rate`: Cache hit rate
3. `Engine`:
- 1. `Task number (pending and active)`: The number of tasks in different
states in the system.
- 2. `The time consumed of tasking (pending and active)`: The time
consumption of tasks in different states in the system.
+ 1. `Task number (pending and active)`: The number of tasks in different
states in the system
+ 2. `The time consumed of tasking (pending and active)`: The time
consumption of tasks in different states in the system
4. `System`:
- 1. `The size of file`: The size of files related to the IoTDB system,
including the total file size under wal, the total size of tsfile files under
seq, and the total size of tsfile files under unseq.
- 2. `The number of file`: The number of files related to the IoTDB system,
including the number of files under wal, the number of tsfile files under seq,
and the number of tsfile files under unseq.
- 3. `The number of GC (per minute)`: The number of GC per minute of IoTDB,
including Young GC and Full GC.
- 4. `The time consumed of GC (per minute)`: IoTDB's average GC time per
minute, including Young GC and Full GC.
- 5. `Heap Memory`: The heap memory of IoTDB.
- 6. `Off-heap Memory`: The off-heap memory of IoTDB.
- 7. `The number of Java Thread`: The number of threads in different states
of IoTDB.
+ 1. `The size of file`: The size of files related to the IoTDB system,
including the total file size under wal, the total size of tsfile files under
seq, and the total size of tsfile files under unseq
+ 2. `The number of file`: The number of files related to the IoTDB system,
including the number of files under wal, the number of tsfile files under seq,
and the number of tsfile files under unseq
+ 3. `The number of GC (per minute)`: The number of GC per minute of IoTDB,
including Young GC and Full GC
+ 4. `The time consumed of GC (per minute)`: IoTDB's average GC time per
minute, including Young GC and Full GC
+ 5. `Heap Memory`: The heap memory of IoTDB
+ 6. `Off-heap Memory`: The off-heap memory of IoTDB
+ 7. `The number of Java Thread`: The number of threads in different states
of IoTDB
#### 1.4.3.3. Apache IoTDB ConfigNode Dashboard Instructions
> Except for the metrics specified specially, the following metrics are
> guaranteed to be available in the monitoring framework at the Important
> levels.
1. `Overview`:
- 1. `Online ConfigNode`: the number of online ConfigNodes
- 2. `Online DataNode`: the number of online DataNodes
- 3. `Storage Group`: the number of storage groups
- 4. `TotalRegion`: The total number of Regions
- 5. `DataRegion`: The total number of DataRegions
- 6. `SchemaRegion`: The total number of SchemaRegions
-2. `Region`:
+ 1. `Online ConfigNode`:The number of online confignode
+ 2. `Registered ConfigNode`:The number of registered confignode
+ 3. `Unknown ConfigNode`:The number of unknown confignode
+ 4. `Online DataNode`:The number of online datanode
+ 5. `Registered DataNode`:The number of registered datanode
+ 6. `Unknown DataNode`:The number of unknown datanode
+ 7. `TotalRegion`:The number of region
+ 8. `DataRegion`:The number of data region
+ 9. `SchemaRegion`:The number of schema region
+2. `Node Info`
+ 1. `The status of cluster node`:The status of cluster node
+ 2. `Leadership distribution`:The distribution of leaderShip
+3. `Region`:
1. `Total Region in Node`: The total number of Regions in different Nodes
2. `Region in Node`: The number of Regions in different Nodes, including
SchemaRegion, DataRegion
3. `Region in Storage Group` (Normal level): The number of Regions in
different storage groups, including SchemaRegion, DataRegion
4. `Slot in Storage Group` (Normal level): The number of Slots in different
storage groups, including the number of DataSlots and the number of SchemaSlots
-3. `System`:
+4. `System`:
1. `The number of GC(per minute)`: The number of GCs per minute of IoTDB,
including Young GC and Full GC.
2. `The time consumed of GC (per minute)`: IoTDB's average GC time per
minute, including Young GC and Full GC.
3. `Heap Memory`: The heap memory of IoTDB.
4. `Off-heap Memory`: The off-heap memory of IoTDB.
5. `The number of Java Thread`: The number of threads in different states
of IoTDB.
6. `The time consumed of Interface`: The average time consumed by the
system interface
+ 7. `CPU Load`:The load of cpu
+ 8. `Memory`:The size of system memory and used system memory
#### 1.4.3.4. Apache IoTDB DataNode Dashboard Instructions
> Except for the metrics specified specially, the following metrics are
> guaranteed to be available in the monitoring framework at the Important
> levels.
1. `Overview`:
- 1. `The number of entity`: The number of entities, currently including the
number of timeseries.
- 2. `write point per minute`: the cumulative number of write points per
minute.
- 3. `storage group used memory`: The memory size used by each storage group.
+ 1. `The number of entity`: The number of entities, currently including the
number of timeseries
+ 2. `write point per minute`: the cumulative number of write points per
minute
+ 3. `storage group used memory`: The memory size used by each storage group
+ 4. `Memory`:The size of system memory and used system memory
2. `Interface`:
1. `The QPS of Interface`: The number of times the system interface is
accessed per second
2. `The time consumed of Interface`: The average time consumed by the
system interface
-3. `Engine`:
- 1. `Task number (pending and active)`: The number of tasks in different
states in the system.
- 2. `The time consumed of tasking (pending and active)`: The time
consumption of tasks in different states in the system.
3. `Cache hit rate`: Cache hit rate
-4. `System`:
- 1. `The size of file`: The size of files related to the IoTDB system,
including the total file size under wal, the total size of tsfile files under
seq, and the total size of tsfile files under unseq.
- 2. `The number of file`: The number of files related to the IoTDB system,
including the number of files under wal, the number of tsfile files under seq,
and the number of tsfile files under unseq.
- 3. `The number of GC (per minute)`: The number of GC per minute of IoTDB,
including Young GC and Full GC.
- 4. `The time consumed of GC (per minute)`: IoTDB's average GC time per
minute, including Young GC and Full GC.
- 5. `Heap Memory`: The heap memory of IoTDB.
- 6. `Off-heap Memory`: The off-heap memory of IoTDB.
- 7. `The number of Java Thread`: The number of threads in different states
of IoTDB.
+3. `Engine`:
+ 1. `Task number (pending and active)`: The number of tasks in different
states in the system
+ 2. `The time consumed of tasking (pending and active)`: The time
consumption of tasks in different states in the system
+4. `MultiLeader`:
+ 1. `MultiLeader Used Memory`:The size of the memory used by multiLeader
consensus
+ 2. `MultiLeader Sync Index`:the searchIndex and safeIndex of region
+ 3. `MultiLeader Overview`:The total sync lag and total size of buffered
requests of node
+ 4. `The time consumed of different stages(50%)`:The median of the time
consumed of different stages
+ 5. `The time consumed of different stages(75%)`:The upper quartile of the
time consumed of different stages
+ 6. `The time consumed of different stages(100%)`:The max of the time
consumed of different stages
+ 7. `MultiLeader Search Index Rate`:The increasing rate of searchIndex of
region
+ 8. `MultiLeader Safe Index Rate`:The increasing rate of safeIndex of region
+ 9. `MultiLeader LogDispatcher Request Size`:The number of requests buffered
in logDispatcher
+ 10. `Sync Lag`:The sync lag of region
+ 11. `Min Peer Sync Lag`:The sync lag between the searchIndex of
multiLeaderServerImpl and the max currentSyncIndex of LogDispatcher
+ 12. `Sync speed diff of Peers`:The sync lag between the max
currentSyncIndex of LogDispatcher and the min currentSyncIndex of LogDispatcher
+5. `CPU`:
+ 1. `CPU Load`:The load of CPU
+ 2. `Process CPU Load`:The cpu load of iotdb process
+6. `File System`:
+ 1. `The size of file`: The size of files related to the IoTDB system,
including the total file size under wal, the total size of tsfile files under
seq, and the total size of tsfile files under unseq
+ 2. `The number of file`: The number of files related to the IoTDB system,
including the number of files under wal, the number of tsfile files under seq,
and the number of tsfile files under unseq
+ 3. `Disk Space`:The total size and remaining size of the disk mounted by
the current data directory
+7. `JVM`:
+ 1. `The number of GC (per minute)`: The number of GC per minute of IoTDB,
including Young GC and Full GC
+ 2. `The time consumed of GC (per minute)`: IoTDB's average GC time per
minute, including Young GC and Full GC
+ 3. `Heap Memory`: The heap memory of IoTDB
+ 4. `Off-heap Memory`: The off-heap memory of IoTDB
+ 5. `The number of Java Thread`: The number of threads in different states
of IoTDB
# 2. System Status Monitoring
@@ -452,13 +494,13 @@ This section describes how to use the JConsole
```Mbean```tab of jconsole to mon
## 4.1. Introduction
-To grasp the performance of iotdb, this module is added to count the
time-consumption of each operation. This module can compute the statistics of
the avg time-consuming of each operation and the proportion of each operation
whose time consumption falls into a time range. The output is in
log_measure.log file. An output example is below.
-
-<img style="width:100%; max-width:800px; max-height:600px; margin-left:auto;
margin-right:auto; display:block;"
src="https://user-images.githubusercontent.com/13203019/60937461-14296f80-a303-11e9-9602-a7bed624bfb3.png">
+The performance monitoring module is used to monitor the time-consuming of
each operation of IOTDB, so that users can better understand the overall
performance of the database. The module counts the lower quartile, median,
upper quartile, and maximum value for each operation. Current operations
include `EXECUTE_BATCH`, `EXECUTE_ONE_SQL_IN_BATCH`, and `EXECUTE_QUERY`.
## 4.2. Configuration parameter
-location:conf/iotdb-datanode.properties
+- location
+ - datanode:conf/iotdb-datanode-metric.yml
+ - confignode:conf/iotdb-confignode-metric.yml
<center>
diff --git a/docs/zh/UserGuide/Maintenance-Tools/Metric-Tool.md
b/docs/zh/UserGuide/Maintenance-Tools/Metric-Tool.md
index 0dc4677471..6a60e8790f 100644
--- a/docs/zh/UserGuide/Maintenance-Tools/Metric-Tool.md
+++ b/docs/zh/UserGuide/Maintenance-Tools/Metric-Tool.md
@@ -76,7 +76,7 @@ IoTDB对外提供JMX和Prometheus格式的监控指标,对于JMX,可以通
### 1.3.3. IoTDB 默认指标
-#### 1.3.3.1. 接入层
+#### 1.3.3.1. Interface
| Metric | Tag | level | 说明
| 示例 |
| --------------------- | ------------------------ | --------- |
------------------- | -------------------------------------------- |
@@ -89,21 +89,21 @@ IoTDB对外提供JMX和Prometheus格式的监控指标,对于JMX,可以通
#### 1.3.3.2. Task
-| Metric | Tag
| level | 说明 |
示例
|
-| ----------------------------- |
----------------------------------------------------------------------------- |
--------- | ------------------------------- |
--------------------------------------------------------------------------------------------------
|
-| queue |
name="compaction_inner/compaction_cross/flush",<br />status="running/waiting" |
important | 当前时间任务数 | queue{name="flush",status="waiting",}
0.0<br/>queue{name="compaction/flush",status="running",} 0.0 |
-| cost_task_seconds_count |
name="inner_compaction/cross_compaction/flush" |
important | 任务累计发生次数 | cost_task_seconds_count{name="flush",}
1.0 |
-| cost_task_seconds_max |
name="inner_compaction/cross_compaction/flush" |
important | 到目前为止任务耗时(s)最大的一次 | cost_task_seconds_max{name="flush",} 0.363
|
-| cost_task_seconds_sum |
name="inner_compaction/cross_compaction/flush" |
important | 任务累计耗时(s) | cost_task_seconds_sum{name="flush",}
0.363 |
-| data_written_total | name="compaction", <br
/>type="aligned/not-aligned/total" | important | 合并文件时写入量
| data_written_total{name="compaction",type="total",} 10240
|
-| data_read_total | name="compaction"
| important | 合并文件时的读取量 |
data_read_total{name="compaction",} 10240
|
-| compaction_task_count_total | name = "inner_compaction/cross_compaction",
type="sequence/unsequence/cross" | important | 合并任务个数 |
compaction_task_count_total{name="inner_compaction",type="sequence",} 1
|
+| Metric | Tag
| level | 说明 | 示例
|
+| --------------------------- |
---------------------------------------------------------------------------- |
--------- | ------------------------------- |
--------------------------------------------------------------------------------------------------
|
+| queue |
name="compaction_inner/compaction_cross/flush",<br/>status="running/waiting" |
important | 当前时间任务数 | queue{name="flush",status="waiting",}
0.0<br/>queue{name="compaction/flush",status="running",} 0.0 |
+| cost_task_seconds_count | name="inner_compaction/cross_compaction/flush"
| important | 任务累计发生次数 |
cost_task_seconds_count{name="flush",} 1.0
|
+| cost_task_seconds_max | name="inner_compaction/cross_compaction/flush"
| important | 到目前为止任务耗时(s)最大的一次 |
cost_task_seconds_max{name="flush",} 0.363
|
+| cost_task_seconds_sum | name="inner_compaction/cross_compaction/flush"
| important | 任务累计耗时(s) |
cost_task_seconds_sum{name="flush",} 0.363
|
+| data_written_total | name="compaction",
<br/>type="aligned/not-aligned/total" | important |
合并文件时写入量 | data_written_total{name="compaction",type="total",}
10240 |
+| data_read_total | name="compaction"
| important | 合并文件时的读取量 |
data_read_total{name="compaction",} 10240
|
+| compaction_task_count_total | name = "inner_compaction/cross_compaction",
type="sequence/unsequence/cross" | important | 合并任务个数 |
compaction_task_count_total{name="inner_compaction",type="sequence",} 1
|
#### 1.3.3.3. 内存占用
-| Metric | Tag | level | 说明
| 示例 |
-| ------ | --------------------------------------- | --------- |
-------------------------------------------------- |
--------------------------------- |
-| mem | name="chunkMetaData/storageGroup/mtree" | important |
chunkMetaData/storageGroup/mtree占用的内存(byte) | mem{name="chunkMetaData",} 2050.0
|
+| Metric | Tag |
level | 说明 | 示例 |
+| ------ | ------------------------------------------------------------ |
--------- | -------------------------- | --------------------------------- |
+| mem | name="chunkMetaData/storageGroup/mtree/MultiLeaderConsensus" |
important | 对应部分占用的内存(byte) | mem{name="chunkMetaData",} 2050.0 |
#### 1.3.3.4. 缓存
@@ -120,18 +120,35 @@ IoTDB对外提供JMX和Prometheus格式的监控指标,对于JMX,可以通
#### 1.3.3.6. 集群
+##### 1.3.3.6.1. 集群状态
+
| Metric | Tag
| level | 说明
| 示例
|
| ------------------------- |
------------------------------------------------------------------ | ---------
| ------------------------------------------------------------- |
---------------------------------------------------------------------------- |
-| cluster_node_leader_count | name="{{ip}}:{{port}}"
| important | 节点上```dataGroupLeader```的数量,用来观察leader是否分布均匀
| cluster_node_leader_count{name="127.0.0.1",} 2.0 |
-| cluster_uncommitted_log | name="{{ip_datagroupHeader}}"
| important | 节点```uncommitted_log```的数量
|
cluster_uncommitted_log{name="127.0.0.1_Data-127.0.0.1-40010-raftId-0",} 0.0 |
-| cluster_node_status |
name="{{ip}}:{{port}}",type="ConfigNode/DataNode" | important
| 节点状态,0=Unkonwn 1=online |
cluster_node_status{name="0.0.0.0:22277",type="ConfigNode",} 1.0 |
-| cluster_elect_total | name="{{ip}}",status="fail/win"
| important | 节点参与选举的次数及结果
| cluster_elect_total{name="127.0.0.1",status="win",} 1.0
|
-| config_node | name="total",status="Registered/Online/Unknown"
| core | 已注册/在线/离线 confignode 的节点数量
| config_node{name="total",status="Online",} 2.0
|
-| data_node | name="total",status="Registered/Online/Unknown"
| core | 已注册/在线/离线 datanode 的节点数量
| data_node{name="total",status="Registered",} 3.0
|
-| partition_table | name="number"
| core | partition table表的个数
| partition_table{name="number",} 2.0
|
-| region |
name="total/{{ip}}:{{port}}",type="SchemaRegion/DataRegion" | important
| 全部或某个节点的schemaRegion/dataRegion个数 |
region{name="127.0.0.1:6671",type="DataRegion",} 10.0 |
-| region |
name="{{storageGroupName}}",type="SchemaRegion/DataRegion" | normal
| 存储组的DataRegion/Schema个数 |
region{name="root.schema.sg1",type="DataRegion",} 14.0 |
-| slot |
name="{{storageGroupName}}",type="schemaSlotNumber/dataSlotNumber" | normal
| 存储组的schemaSlot/dataSlot个数 |
slot{name="root.schema.sg1",type="schemaSlotNumber",} 2.0 |
+| cluster_node_leader_count | name="{{ip}}:{{port}}"
| important | 节点上```dataGroupLeader```的数量,用来观察leader是否分布均匀 |
cluster_node_leader_count{name="127.0.0.1",} 2.0 |
+| cluster_uncommitted_log | name="{{ip_datagroupHeader}}"
| important | 节点```uncommitted_log```的数量
|
cluster_uncommitted_log{name="127.0.0.1_Data-127.0.0.1-40010-raftId-0",} 0.0 |
+| cluster_node_status |
name="{{ip}}:{{port}}",type="ConfigNode/DataNode" | important
| 节点状态,0=Unkonwn 1=online |
cluster_node_status{name="0.0.0.0:22277",type="ConfigNode",} 1.0 |
+| cluster_elect_total | name="{{ip}}",status="fail/win"
| important | 节点参与选举的次数及结果
| cluster_elect_total{name="127.0.0.1",status="win",} 1.0
|
+| config_node | name="total",status="Registered/Online/Unknown"
| core | 已注册/在线/离线 confignode 的节点数量
| config_node{name="total",status="Online",} 2.0
|
+| data_node | name="total",status="Registered/Online/Unknown"
| core | 已注册/在线/离线 datanode 的节点数量
| data_node{name="total",status="Registered",} 3.0
|
+| partition_table | name="number"
| core | partition table表的个数
| partition_table{name="number",} 2.0
|
+| region |
name="total/{{ip}}:{{port}}",type="SchemaRegion/DataRegion" | important
| 全部或某个节点的schemaRegion/dataRegion个数 |
region{name="127.0.0.1:6671",type="DataRegion",} 10.0 |
+| region |
name="{{storageGroupName}}",type="SchemaRegion/DataRegion" | normal
| 存储组的DataRegion/Schema个数 |
region{name="root.schema.sg1",type="DataRegion",} 14.0 |
+| slot |
name="{{storageGroupName}}",type="schemaSlotNumber/dataSlotNumber" | normal
| 存储组的schemaSlot/dataSlot个数 |
slot{name="root.schema.sg1",type="schemaSlotNumber",} 2.0 |
+
+##### 1.3.3.6.2. 弱一致性
+| Metric | Tag
| level | 说明
| 示例
|
+| ------------ |
--------------------------------------------------------------------------------------------
| --------- | ---------------------------------------------------- |
----------------------------------------------------------------------------------------------------------------
|
+| mutli_leader | name="multiLeaderServerImpl", region="{{region}}",
type="searchIndex/safeIndex" | core |
弱一致性对应region的写入index和同步index |
multi_leader{name="multiLeaderServerImpl",region="DataRegion[7]",type="searchIndex",}
1945.0 |
+| mutli_leader | name="logDispatcher-{{IP}}:{{Port}}", region="{{region}}",
type="currentSyncIndex" | important | 弱一致性对应region的同步线程当前的同步index
|
multi_leader{name="logDispatcher-127.0.0.1:40014",region="DataRegion[7]",type="currentSyncIndex",}
1945.0 |
+| mutli_leader | name="logDispatcher-{{IP}}:{{Port}}", region="{{region}}",
type="cachedRequestInMemoryQueue" | important | 弱一致性对应region的同步线程缓存的队列总大小
|
multi_leader{name="logDispatcher-127.0.0.1:40014",region="DataRegion[9]",type="cachedRequestInMemoryQueue",}
0.0 |
+| stage | name="multi_leader", region="{{region}}",
type="getStateMachineLock" | core |
弱一致性对应region获取状态机锁的耗时 |
stage{name="multi_leader",region="DataRegion[6]",type="getStateMachineLock",quantile="0.5",}
0.0 |
+| stage | name="multi_leader", region="{{region}}",
type="checkingBeforeWrite" | core |
弱一致性对应region状态机完成写前检查的耗时 |
stage{name="multi_leader",region="DataRegion[5]",type="checkingBeforeWrite",quantile="0.5",}
0.0 |
+| stage | name="multi_leader", region="{{region}}",
type="writeStateMachine" | core |
弱一致性对应region状态机写入请求的耗时 |
stage{name="multi_leader",region="DataRegion[6]",type="writeStateMachine",quantile="0.5",}
1.0 |
+| stage | name="multi_leader", region="{{region}}",
type="offerRequestToQueue" | core |
弱一致性对应region状态机尝试将请求放入同步队列的耗时 |
stage{name="multi_leader",region="DataRegion[6]",type="offerRequestToQueue",quantile="0.5",}
1.0 |
+| stage | name="multi_leader", region="{{region}}",
type="consensusWrite" | core |
弱一致性对应region状态机处理共识层请求的耗时 |
stage{name="multi_leader",region="DataRegion[6]",type="consensusWrite",quantile="0.5",}
2.0625 |
+| stage | name="multi_leader", region="{{region}}",
type="constructBatch" | core |
弱一致性对应同步线程完成一个请求构造的耗时 |
stage{name="multi_leader",region="DataRegion[7]",type="constructBatch",quantile="0.5",}
0.0 |
+| stage | name="multi_leader", region="{{region}}",
type="syncLogTimePerRequest" | core |
弱一致性对应同步线程完成一个请求同步的耗时 |
stage{name="multi_leader",region="DataRegion[7]",type="syncLogTimePerRequest",quantile="0.5",}
0.0 |
+
### 1.3.4. IoTDB 预定义指标集
@@ -171,11 +188,11 @@ IoTDB对外提供JMX和Prometheus格式的监控指标,对于JMX,可以通
##### 1.3.4.1.4. Classes
-| Metric | Tag
| level | 说明 | 示例
|
-| ---------------------------------- |
--------------------------------------------- | --------- |
---------------------- |
-----------------------------------------------------------------------------------
|
-| jvm_classes_unloaded_classes | 无
| important | jvm累计卸载的class数量 | jvm_classes_unloaded_classes 680.0
|
-| jvm_classes_loaded_classes | 无
| important | jvm累计加载的class数量 | jvm_classes_loaded_classes 5975.0
|
-| jvm_compilation_time_ms | {compiler="HotSpot 64-Bit Tiered
Compilers",} | important | jvm耗费在编译上的时间 |
jvm_compilation_time_ms{compiler="HotSpot 64-Bit Tiered Compilers",} 107092.0 |
+| Metric | Tag
| level | 说明 | 示例
|
+| ---------------------------- | ---------------------------------------------
| --------- | ---------------------- |
----------------------------------------------------------------------------- |
+| jvm_classes_unloaded_classes | 无
| important | jvm累计卸载的class数量 | jvm_classes_unloaded_classes 680.0
|
+| jvm_classes_loaded_classes | 无
| important | jvm累计加载的class数量 | jvm_classes_loaded_classes 5975.0
|
+| jvm_compilation_time_ms | {compiler="HotSpot 64-Bit Tiered Compilers",}
| important | jvm耗费在编译上的时间 | jvm_compilation_time_ms{compiler="HotSpot 64-Bit
Tiered Compilers",} 107092.0 |
#### 1.3.4.2. 文件(File)
@@ -235,7 +252,7 @@ IoTDB对外提供JMX和Prometheus格式的监控指标,对于JMX,可以通
## 1.4. 怎样获取这些系统监控指标?
-metric采集默认是关闭的,需要先到conf/iotdb-metric.yml中打开后启动server,目前也支持启动后,通过`load
configuration`热加载。
+metric采集默认是关闭的,需要先到```conf/iotdb-{datanode/confignode}-metric.yml中打开后启动server,目前也支持启动后,通过`load
configuration`热加载。
### 1.4.1. 配置文件
@@ -246,7 +263,7 @@ enableMetric: false
# 是否启用操作延迟统计
enablePerformanceStat: false
-# 数据提供方式,对外部通过jmx和prometheus协议提供metrics的数据, 可选参数:[JMX, PROMETHEUS,
IOTDB],IOTDB是默认关闭的。
+# 数据提供方式,对外部通过jmx和prometheus协议提供metrics的数据, 可选参数:[JMX, PROMETHEUS, IOTDB],
IOTDB是默认关闭的。
metricReporterList:
- JMX
- PROMETHEUS
@@ -369,70 +386,97 @@ static_configs:
> 除特殊说明的监控项以外,以下监控项均保证在Important级别的监控框架中可用。
1. `Overview`:系统概述
- 1. `The number of entity`:实体数量,目前包含时间序列的数量。
- 2. `write point per minute`:每分钟系统累计写入点数。
- 3. `storage group used memory`:每个存储组使用的内存大小。
+ 1. `The number of entity`:实体数量,目前包含时间序列的数量
+ 2. `write point per minute`:每分钟系统累计写入点数
+ 3. `storage group used memory`:每个存储组使用的内存大小
2. `Interface`:接口
1. `The QPS of Interface`:系统接口每秒钟访问次数
2. `The time consumed of Interface`:系统接口的平均耗时
- 3. `Cache hit rate`:缓存命中率。
+ 3. `Cache hit rate`:缓存命中率
3. `Engine`:引擎
- 1. `Task number(pending and active)`:系统中不同状态的任务个数。
- 2. `The time consumed of tasking(pending and active)`:系统中不同状态的任务的耗时。
+ 1. `Task number(pending and active)`:系统中不同状态的任务个数
+ 2. `The time consumed of tasking(pending and active)`:系统中不同状态的任务的耗时
4. `System`:系统
- 1. `The size of
file`:IoTDB系统相关的文件大小,包括wal下的文件总大小、seq下的tsfile文件总大小、unseq下的tsfile文件总大小。
- 2. `The number of
file`:IoTDB系统相关的文件个数,包括wal下的文件个数、seq下的tsfile文件个数、unseq下的tsfile文件个数。
- 3. `The number of GC(per minute)`:IoTDB每分钟的GC数量,包括Young GC和Full GC。
- 4. `The time consumed of GC(per minute)`:IoTDB的每分钟平均GC耗时,包括Young GC和Full GC。
- 5. `Heap Memory`:IoTDB的堆内存。
- 6. `Off-heap Memory`:IoTDB的堆外内存。
- 7. `The number of Java Thread`:IoTDB的不同状态线程数。
+ 1. `The size of
file`:IoTDB系统相关的文件大小,包括wal下的文件总大小、seq下的tsfile文件总大小、unseq下的tsfile文件总大小
+ 2. `The number of
file`:IoTDB系统相关的文件个数,包括wal下的文件个数、seq下的tsfile文件个数、unseq下的tsfile文件个数
+ 3. `The number of GC(per minute)`:IoTDB每分钟的GC数量,包括Young GC和Full GC
+ 4. `The time consumed of GC(per minute)`:IoTDB的每分钟平均GC耗时,包括Young GC和Full GC
+ 5. `Heap Memory`:IoTDB的堆内存
+ 6. `Off-heap Memory`:IoTDB的堆外内存
+ 7. `The number of Java Thread`:IoTDB的不同状态线程数
#### 1.4.3.3. Apache IoTDB ConfigNode Dashboard 说明
> 除特殊说明的监控项以外,以下监控项均保证在Important级别的监控框架中可用。
1. `Overview`:系统概述
- 1. `Online ConfigNode`:线上ConfigNode个数
- 2. `Online DataNode`:线上DataNode个数
- 3. `Storage Group`:存储组数量
+ 1. `Online ConfigNode`:正常运行ConfigNode个数
+ 2. `Registered ConfigNode`:注册ConfigNode个数
+ 3. `Unknown ConfigNode`:状态未知ConfigNode个数
+ 4. `Online DataNode`:正常运行DataNode个数
+ 5. `Registered DataNode`:注册DataNode个数
+ 3. `Unknown DataNode`:状态未知DataNode个数
4. `TotalRegion`:Region总数量
5. `DataRegion`:DataRegion总数量
6. `SchemaRegion`:SchemaRegion总数量
-2. `Region`:Region分布情况
+2. `Node Info`:节点信息
+ 1. `The status of cluster node`:集群节点状态
+ 2. `Leadership distribution`:Leader分布情况
+3. `Region`:Region分布情况
1. `Total Region in Node`:不同Node的Region总数量
2. `Region in Node`:不同Node的Region数量,包括SchemaRegion、DataRegion
3. `Region in Storage
Group`(Normal级别):不同存储组的Region数量,包括SchemaRegion、DataRegion
4. `Slot in Storage Group`(Normal级别):不同存储组的Slot数量,包括DataSlot数量和SchemaSlot数量
-3. `System`:系统
- 1. `The number of GC(per minute)`:IoTDB每分钟的GC数量,包括Young GC和Full GC。
- 2. `The time consumed of GC(per minute)`:IoTDB的每分钟平均GC耗时,包括Young GC和Full GC。
- 3. `Heap Memory`:IoTDB的堆内存。
- 4. `Off-heap Memory`:IoTDB的堆外内存。
- 5. `The number of Java Thread`:IoTDB的不同状态线程数。
+4. `System`:系统
+ 1. `The number of GC(per minute)`:IoTDB每分钟的GC数量,包括Young GC和Full GC
+ 2. `The time consumed of GC(per minute)`:IoTDB的每分钟平均GC耗时,包括Young GC和Full GC
+ 3. `Heap Memory`:IoTDB的堆内存
+ 4. `Off-heap Memory`:IoTDB的堆外内存
+ 5. `The number of Java Thread`:IoTDB的不同状态线程数
6. `The time consumed of Interface`:系统接口的平均耗时
+ 7. `CPU Load`:当前处理器的总负载
+ 8. `Memory`:系统内存大小和已经使用的大小
#### 1.4.3.4. Apache IoTDB DataNode Dashboard 说明
> 除特殊说明的监控项以外,以下监控项均保证在Important级别的监控框架中可用。
1. `Overview`:系统概述
- 1. `The number of entity`:实体数量,目前包含时间序列的数量。
- 2. `write point per minute`:每分钟系统累计写入点数。
- 3. `storage group used memory`:每个存储组使用的内存大小。
+ 1. `The number of entity`:实体数量,目前包含时间序列的数量
+ 2. `write point per minute`:每分钟系统累计写入点数
+ 3. `storage group used memory`:每个存储组使用的内存大小
+ 4. `Memory`:系统内存大小和已经使用的大小
2. `Interface`:接口
1. `The QPS of Interface`:系统接口每秒钟访问次数
2. `The time consumed of Interface`:系统接口的平均耗时
+ 3. `Cache hit Rate`:缓存命中率
3. `Engine`:引擎
- 1. `Task number(pending and active)`:系统中不同状态的任务个数。
- 2. `The time consumed of tasking(pending and active)`:系统中不同状态的任务的耗时。
- 3. `Cache hit rate`:缓存命中率。
-4. `System`:系统
- 1. `The size of
file`:IoTDB系统相关的文件大小,包括wal下的文件总大小、seq下的tsfile文件总大小、unseq下的tsfile文件总大小。
- 2. `The number of
file`:IoTDB系统相关的文件个数,包括wal下的文件个数、seq下的tsfile文件个数、unseq下的tsfile文件个数。
- 3. `The number of GC(per minute)`:IoTDB每分钟的GC数量,包括Young GC和Full GC。
- 4. `The time consumed of GC(per minute)`:IoTDB的每分钟平均GC耗时,包括Young GC和Full GC。
- 5. `Heap Memory`:IoTDB的堆内存。
- 6. `Off-heap Memory`:IoTDB的堆外内存。
- 7. `The number of Java Thread`:IoTDB的不同状态线程数。
+ 1. `Task number(pending and active)`:系统中不同状态的任务个数
+ 2. `The time consumed of tasking(pending and active)`:系统中不同状态的任务的耗时
+4. `MultiLeader`:弱一致性共识协议
+ 1. `MultiLeader Used Memory`:弱一致性共识层使用的内存大小
+ 2. `MultiLeader Sync Index`:不同的Region的写入Index和同步Index
+ 3. `MultiLeader Overview`:不同节点的同步总差距、总缓存的请求个数
+ 4. `The time consumed of different stages(50%)`:不同阶段耗时的中位数
+ 5. `The time consumed of different stages(75%)`:不同阶段耗时的上四分位数
+ 6. `The time consumed of different stages(100%)`:不同阶段耗时的最大值
+ 7. `MultiLeader Search Index Rate`:不同region的写入Index的增长速度
+ 8. `MultiLeader Safe Index Rate`:不同region的同步Index的增长速度
+ 9. `MultiLeader LogDispatcher Request Size`:不同的LogDispatcherThread缓存的请求个数
+ 10. `Sync Lag`:每个region的同步index差距
+ 11. `Min Peer Sync
Lag`:每个region的写入index和同步最快的LogDispatcherThread的同步index之间的差距
+ 12. `Sync speed diff of
Peers`:每个region中同步最快的LogDispatcherThread与同步最慢的LogDispatcherThread之间的同步index差距
+5. `CPU`:处理器
+ 1. `CPU Load`:当前处理器的总负载
+ 2. `Process CPU Load`:IoTDB进程占用处理器的负载
+6. `File System`:文件系统
+ 1. `The size of
file`:IoTDB系统相关的文件大小,包括wal下的文件总大小、seq下的tsfile文件总大小、unseq下的tsfile文件总大小
+ 2. `The number of
file`:IoTDB系统相关的文件个数,包括wal下的文件个数、seq下的tsfile文件个数、unseq下的tsfile文件个数
+ 3. `Disk Space`:当前data目录所挂载的磁盘总大小和剩余大小
+7. `JVM`:系统
+ 1. `The number of GC(per minute)`:IoTDB每分钟的GC数量,包括Young GC和Full GC
+ 2. `The time consumed of GC(per minute)`:IoTDB的每分钟平均GC耗时,包括Young GC和Full GC
+ 3. `Heap Memory`:IoTDB的堆内存
+ 4. `Off-heap Memory`:IoTDB的堆外内存
+ 5. `The number of Java Thread`:IoTDB的不同状态线程数
# 2. 系统状态监控
进入 Jconsole 监控页面后,首先看到的是 IoTDB 各类运行情况的概览。在这里,您可以看到堆内存信息、线程信息、类信息以及服务器的 CPU
使用情况。
@@ -447,17 +491,17 @@ static_configs:
## 4.1. 介绍
-性能监控模块用来监控 IOTDB
每一个操作的耗时,以便用户更好的了解数据库的整体性能。此模块会统计每一种操作的平均耗时,以及耗时在一定时间区间内(1ms,4ms,16ms,64ms,256ms,1024ms,以上)的操作的比例。输出文件在
log_measure.log 中。输出样例如下:
-
-<img style="width:100%; max-width:800px; max-height:600px; margin-left:auto;
margin-right:auto; display:block;"
src="https://user-images.githubusercontent.com/13203019/60937461-14296f80-a303-11e9-9602-a7bed624bfb3.png">
+性能监控模块用来监控 IOTDB
每一个操作的耗时,以便用户更好的了解数据库的整体性能。该模块会统计每一种操作的下四分位数、中位数、上四分位数和最大值。目前操作包括`EXECUTE_BATCH`、`EXECUTE_ONE_SQL_IN_BATCH`和`EXECUTE_QUERY`。
## 4.2. 配置参数
-配置文件位置:conf/iotdb-datanode.properties
+- 配置文件位置
+ - datanode:conf/iotdb-datanode-metric.yml
+ - confignode:conf/iotdb-confignode-metric.yml
<center>
-**表 -配置参数以及描述项**
+**表-配置参数以及描述项**
| 参数 | 默认值 | 描述 |
| :------------------------ | :----- | :------------------- |
diff --git a/grafana-metrics-example/cluster/Apache IoTDB ConfigNode Dashboard
v0.14.0.json b/grafana-metrics-example/cluster/Apache IoTDB ConfigNode
Dashboard v0.14.0.json
index 659b7a2808..202bca4c1a 100644
--- a/grafana-metrics-example/cluster/Apache IoTDB ConfigNode Dashboard
v0.14.0.json
+++ b/grafana-metrics-example/cluster/Apache IoTDB ConfigNode Dashboard
v0.14.0.json
@@ -9,13 +9,13 @@
"pluginName": "Prometheus"
}
],
- "__elements": {},
+ "__elements": [],
"__requires": [
{
"type": "grafana",
"id": "grafana",
"name": "Grafana",
- "version": "9.2.0"
+ "version": "8.4.2"
},
{
"type": "datasource",
@@ -63,6 +63,7 @@
"fiscalYearStartMonth": 0,
"graphTooltip": 1,
"id": null,
+ "iteration": 1667383647381,
"links": [],
"liveNow": false,
"panels": [
@@ -110,7 +111,7 @@
},
"textMode": "auto"
},
- "pluginVersion": "9.2.0",
+ "pluginVersion": "8.4.2",
"targets": [
{
"datasource": {
@@ -181,7 +182,7 @@
"collapsed": false,
"datasource": {
"type": "prometheus",
- "uid": "-paUMyI4z"
+ "uid": "${DS_PROMETHEUS}"
},
"gridPos": {
"h": 1,
@@ -195,7 +196,7 @@
{
"datasource": {
"type": "prometheus",
- "uid": "-paUMyI4z"
+ "uid": "${DS_PROMETHEUS}"
},
"refId": "A"
}
@@ -214,8 +215,6 @@
"mode": "palette-classic"
},
"custom": {
- "axisCenteredZero": false,
- "axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"axisSoftMax": 2,
@@ -274,7 +273,7 @@
},
"gridPos": {
"h": 10,
- "w": 24,
+ "w": 12,
"x": 0,
"y": 9
},
@@ -310,36 +309,6 @@
"type": "timeseries"
},
{
- "collapsed": false,
- "datasource": {
- "type": "prometheus",
- "uid": "-paUMyI4z"
- },
- "gridPos": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 19
- },
- "id": 28,
- "panels": [],
- "targets": [
- {
- "datasource": {
- "type": "prometheus",
- "uid": "-paUMyI4z"
- },
- "refId": "A"
- }
- ],
- "title": "Leadership Distribution",
- "type": "row"
- },
- {
- "datasource": {
- "type": "prometheus",
- "uid": "${DS_PROMETHEUS}"
- },
"fieldConfig": {
"defaults": {
"color": {
@@ -359,10 +328,10 @@
"overrides": []
},
"gridPos": {
- "h": 8,
- "w": 24,
- "x": 0,
- "y": 20
+ "h": 10,
+ "w": 12,
+ "x": 12,
+ "y": 9
},
"id": 26,
"options": {
@@ -379,7 +348,7 @@
},
"textMode": "auto"
},
- "pluginVersion": "9.2.0",
+ "pluginVersion": "8.4.2",
"targets": [
{
"datasource": {
@@ -402,13 +371,13 @@
"collapsed": false,
"datasource": {
"type": "prometheus",
- "uid": "-paUMyI4z"
+ "uid": "${DS_PROMETHEUS}"
},
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
- "y": 28
+ "y": 19
},
"id": 24,
"panels": [],
@@ -416,7 +385,7 @@
{
"datasource": {
"type": "prometheus",
- "uid": "-paUMyI4z"
+ "uid": "${DS_PROMETHEUS}"
},
"refId": "A"
}
@@ -435,8 +404,6 @@
"mode": "palette-classic"
},
"custom": {
- "axisCenteredZero": false,
- "axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
@@ -481,7 +448,7 @@
"h": 8,
"w": 12,
"x": 0,
- "y": 29
+ "y": 20
},
"id": 22,
"options": {
@@ -523,8 +490,6 @@
"mode": "palette-classic"
},
"custom": {
- "axisCenteredZero": false,
- "axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
@@ -569,7 +534,7 @@
"h": 8,
"w": 12,
"x": 12,
- "y": 29
+ "y": 20
},
"id": 20,
"options": {
@@ -611,8 +576,6 @@
"mode": "palette-classic"
},
"custom": {
- "axisCenteredZero": false,
- "axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
@@ -657,7 +620,7 @@
"h": 8,
"w": 12,
"x": 0,
- "y": 37
+ "y": 28
},
"id": 19,
"options": {
@@ -699,8 +662,6 @@
"mode": "palette-classic"
},
"custom": {
- "axisCenteredZero": false,
- "axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
@@ -745,7 +706,7 @@
"h": 8,
"w": 12,
"x": 12,
- "y": 37
+ "y": 28
},
"id": 18,
"options": {
@@ -780,13 +741,13 @@
"collapsed": false,
"datasource": {
"type": "prometheus",
- "uid": "-paUMyI4z"
+ "uid": "${DS_PROMETHEUS}"
},
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
- "y": 45
+ "y": 36
},
"id": 16,
"panels": [],
@@ -794,7 +755,7 @@
{
"datasource": {
"type": "prometheus",
- "uid": "-paUMyI4z"
+ "uid": "${DS_PROMETHEUS}"
},
"refId": "A"
}
@@ -813,8 +774,6 @@
"mode": "palette-classic"
},
"custom": {
- "axisCenteredZero": false,
- "axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
@@ -859,7 +818,7 @@
"h": 8,
"w": 12,
"x": 0,
- "y": 46
+ "y": 37
},
"id": 10,
"options": {
@@ -913,8 +872,6 @@
"mode": "palette-classic"
},
"custom": {
- "axisCenteredZero": false,
- "axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
@@ -960,7 +917,7 @@
"h": 8,
"w": 12,
"x": 12,
- "y": 46
+ "y": 37
},
"id": 8,
"options": {
@@ -1014,8 +971,6 @@
"mode": "palette-classic"
},
"custom": {
- "axisCenteredZero": false,
- "axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
@@ -1061,7 +1016,7 @@
"h": 8,
"w": 12,
"x": 0,
- "y": 54
+ "y": 45
},
"id": 6,
"options": {
@@ -1151,8 +1106,6 @@
"mode": "palette-classic"
},
"custom": {
- "axisCenteredZero": false,
- "axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
@@ -1198,7 +1151,7 @@
"h": 8,
"w": 12,
"x": 12,
- "y": 54
+ "y": 45
},
"id": 4,
"options": {
@@ -1240,8 +1193,6 @@
"mode": "palette-classic"
},
"custom": {
- "axisCenteredZero": false,
- "axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
@@ -1274,7 +1225,8 @@
"mode": "absolute",
"steps": [
{
- "color": "green"
+ "color": "green",
+ "value": null
}
]
}
@@ -1285,7 +1237,7 @@
"h": 8,
"w": 12,
"x": 0,
- "y": 62
+ "y": 53
},
"id": 2,
"options": {
@@ -1339,8 +1291,6 @@
"mode": "palette-classic"
},
"custom": {
- "axisCenteredZero": false,
- "axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
@@ -1373,7 +1323,8 @@
"mode": "absolute",
"steps": [
{
- "color": "green"
+ "color": "green",
+ "value": null
}
]
},
@@ -1385,7 +1336,7 @@
"h": 8,
"w": 12,
"x": 12,
- "y": 62
+ "y": 53
},
"id": 27,
"options": {
@@ -1427,8 +1378,6 @@
"mode": "palette-classic"
},
"custom": {
- "axisCenteredZero": false,
- "axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"axisSoftMax": 0,
@@ -1463,7 +1412,8 @@
"mode": "percentage",
"steps": [
{
- "color": "green"
+ "color": "green",
+ "value": null
}
]
},
@@ -1475,7 +1425,7 @@
"h": 8,
"w": 12,
"x": 0,
- "y": 70
+ "y": 61
},
"id": 42,
"options": {
@@ -1503,7 +1453,7 @@
"refId": "A"
}
],
- "title": "CPU-Load",
+ "title": "CPU Load",
"type": "timeseries"
},
{
@@ -1517,8 +1467,6 @@
"mode": "palette-classic"
},
"custom": {
- "axisCenteredZero": false,
- "axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
@@ -1551,7 +1499,8 @@
"mode": "absolute",
"steps": [
{
- "color": "green"
+ "color": "green",
+ "value": null
}
]
},
@@ -1563,7 +1512,7 @@
"h": 8,
"w": 12,
"x": 12,
- "y": 70
+ "y": 61
},
"id": 44,
"options": {
@@ -1605,111 +1554,10 @@
],
"title": "Memory",
"type": "timeseries"
- },
- {
- "datasource": {
- "type": "prometheus",
- "uid": "${DS_PROMETHEUS}"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "palette-classic"
- },
- "custom": {
- "axisCenteredZero": false,
- "axisColorMode": "text",
- "axisLabel": "",
- "axisPlacement": "auto",
- "axisSoftMin": -5,
- "barAlignment": 0,
- "drawStyle": "line",
- "fillOpacity": 0,
- "gradientMode": "none",
- "hideFrom": {
- "legend": false,
- "tooltip": false,
- "viz": false
- },
- "lineInterpolation": "linear",
- "lineWidth": 1,
- "pointSize": 5,
- "scaleDistribution": {
- "type": "linear"
- },
- "showPoints": "auto",
- "spanNulls": false,
- "stacking": {
- "group": "A",
- "mode": "none"
- },
- "thresholdsStyle": {
- "mode": "off"
- }
- },
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green"
- }
- ]
- },
- "unit": "bytes"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 8,
- "w": 12,
- "x": 0,
- "y": 78
- },
- "id": 46,
- "options": {
- "legend": {
- "calcs": [],
- "displayMode": "list",
- "placement": "bottom",
- "showLegend": true
- },
- "tooltip": {
- "mode": "multi",
- "sort": "desc"
- }
- },
- "targets": [
- {
- "datasource": {
- "type": "prometheus",
- "uid": "${DS_PROMETHEUS}"
- },
- "exemplar": true,
- "expr": "sys_disk_total_space{instance=\"$instance\",
name=\"system\"}-sys_disk_free_space{instance=\"$instance\", name=\"system\"}",
- "interval": "",
- "legendFormat": "Used disk space",
- "refId": "A"
- },
- {
- "datasource": {
- "type": "prometheus",
- "uid": "${DS_PROMETHEUS}"
- },
- "exemplar": true,
- "expr": "sys_disk_total_space{instance=\"$instance\",
name=\"system\"}",
- "hide": false,
- "interval": "",
- "legendFormat": "Total disk space",
- "refId": "B"
- }
- ],
- "title": "Disk-Space",
- "type": "timeseries"
}
],
- "refresh": "",
- "schemaVersion": 37,
+ "refresh": "15s",
+ "schemaVersion": 35,
"style": "dark",
"tags": [
"Apache-IoTDB",
diff --git a/grafana-metrics-example/cluster/Apache IoTDB DataNode Dashboard
v0.14.0.json b/grafana-metrics-example/cluster/Apache IoTDB DataNode Dashboard
v0.14.0.json
index c4fb220747..818f4421f1 100644
--- a/grafana-metrics-example/cluster/Apache IoTDB DataNode Dashboard
v0.14.0.json
+++ b/grafana-metrics-example/cluster/Apache IoTDB DataNode Dashboard
v0.14.0.json
@@ -9,13 +9,13 @@
"pluginName": "Prometheus"
}
],
- "__elements": {},
+ "__elements": [],
"__requires": [
{
"type": "grafana",
"id": "grafana",
"name": "Grafana",
- "version": "9.2.0"
+ "version": "8.4.2"
},
{
"type": "datasource",
@@ -57,6 +57,7 @@
"fiscalYearStartMonth": 0,
"graphTooltip": 1,
"id": null,
+ "iteration": 1667383574315,
"links": [],
"liveNow": false,
"panels": [
@@ -64,7 +65,7 @@
"collapsed": false,
"datasource": {
"type": "prometheus",
- "uid": "-paUMyI4z"
+ "uid": "${DS_PROMETHEUS}"
},
"gridPos": {
"h": 1,
@@ -78,7 +79,7 @@
{
"datasource": {
"type": "prometheus",
- "uid": "-paUMyI4z"
+ "uid": "${DS_PROMETHEUS}"
},
"refId": "A"
}
@@ -97,8 +98,6 @@
"mode": "palette-classic"
},
"custom": {
- "axisCenteredZero": false,
- "axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
@@ -175,18 +174,12 @@
"type": "timeseries"
},
{
- "datasource": {
- "type": "prometheus",
- "uid": "${DS_PROMETHEUS}"
- },
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
- "axisCenteredZero": false,
- "axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
@@ -273,8 +266,6 @@
"mode": "palette-classic"
},
"custom": {
- "axisCenteredZero": false,
- "axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
@@ -364,8 +355,6 @@
"mode": "palette-classic"
},
"custom": {
- "axisCenteredZero": false,
- "axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
@@ -462,7 +451,7 @@
"collapsed": false,
"datasource": {
"type": "prometheus",
- "uid": "-paUMyI4z"
+ "uid": "${DS_PROMETHEUS}"
},
"gridPos": {
"h": 1,
@@ -476,7 +465,7 @@
{
"datasource": {
"type": "prometheus",
- "uid": "-paUMyI4z"
+ "uid": "${DS_PROMETHEUS}"
},
"refId": "A"
}
@@ -495,8 +484,6 @@
"mode": "palette-classic"
},
"custom": {
- "axisCenteredZero": false,
- "axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
@@ -583,8 +570,6 @@
"mode": "palette-classic"
},
"custom": {
- "axisCenteredZero": false,
- "axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
@@ -672,8 +657,6 @@
"mode": "palette-classic"
},
"custom": {
- "axisCenteredZero": false,
- "axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
@@ -770,7 +753,7 @@
"collapsed": false,
"datasource": {
"type": "prometheus",
- "uid": "-paUMyI4z"
+ "uid": "${DS_PROMETHEUS}"
},
"gridPos": {
"h": 1,
@@ -784,7 +767,7 @@
{
"datasource": {
"type": "prometheus",
- "uid": "-paUMyI4z"
+ "uid": "${DS_PROMETHEUS}"
},
"refId": "A"
}
@@ -803,8 +786,6 @@
"mode": "palette-classic"
},
"custom": {
- "axisCenteredZero": false,
- "axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
@@ -893,8 +874,6 @@
"mode": "palette-classic"
},
"custom": {
- "axisCenteredZero": false,
- "axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
@@ -977,7 +956,7 @@
"collapsed": false,
"datasource": {
"type": "prometheus",
- "uid": "-paUMyI4z"
+ "uid": "${DS_PROMETHEUS}"
},
"gridPos": {
"h": 1,
@@ -991,7 +970,7 @@
{
"datasource": {
"type": "prometheus",
- "uid": "-paUMyI4z"
+ "uid": "${DS_PROMETHEUS}"
},
"refId": "A"
}
@@ -1010,8 +989,6 @@
"mode": "palette-classic"
},
"custom": {
- "axisCenteredZero": false,
- "axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
@@ -1091,10 +1068,6 @@
"type": "timeseries"
},
{
- "datasource": {
- "type": "prometheus",
- "uid": "${DS_PROMETHEUS}"
- },
"description": "",
"fieldConfig": {
"defaults": {
@@ -1102,8 +1075,6 @@
"mode": "palette-classic"
},
"custom": {
- "axisCenteredZero": false,
- "axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
@@ -1177,7 +1148,7 @@
"exemplar": true,
"expr": "multi_leader{instance=~\"$instance\",
name=\"multiLeaderServerImpl\", type=\"safeIndex\"}",
"interval": "",
- "legendFormat": "{{region}}",
+ "legendFormat": "{{region}}-safeIndex",
"range": true,
"refId": "A"
},
@@ -1187,9 +1158,11 @@
"uid": "${DS_PROMETHEUS}"
},
"editorMode": "code",
+ "exemplar": true,
"expr": "multi_leader{instance=~\"$instance\",
name=\"multiLeaderServerImpl\", type=\"searchIndex\"}",
"hide": false,
- "legendFormat": "{{region}}",
+ "interval": "",
+ "legendFormat": "{{region}}-searchIndex",
"range": true,
"refId": "B"
}
@@ -1209,8 +1182,6 @@
"mode": "palette-classic"
},
"custom": {
- "axisCenteredZero": false,
- "axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
@@ -1316,8 +1287,6 @@
"mode": "palette-classic"
},
"custom": {
- "axisCenteredZero": false,
- "axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
@@ -1408,8 +1377,6 @@
"mode": "palette-classic"
},
"custom": {
- "axisCenteredZero": false,
- "axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
@@ -1500,8 +1467,6 @@
"mode": "palette-classic"
},
"custom": {
- "axisCenteredZero": false,
- "axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
@@ -1592,8 +1557,6 @@
"mode": "palette-classic"
},
"custom": {
- "axisCenteredZero": false,
- "axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
@@ -1685,8 +1648,6 @@
"mode": "palette-classic"
},
"custom": {
- "axisCenteredZero": false,
- "axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
@@ -1779,8 +1740,6 @@
"mode": "palette-classic"
},
"custom": {
- "axisCenteredZero": false,
- "axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
@@ -1869,8 +1828,6 @@
"mode": "palette-classic"
},
"custom": {
- "axisCenteredZero": false,
- "axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
@@ -1961,8 +1918,6 @@
"mode": "palette-classic"
},
"custom": {
- "axisCenteredZero": false,
- "axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
@@ -2055,8 +2010,6 @@
"mode": "palette-classic"
},
"custom": {
- "axisCenteredZero": false,
- "axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
@@ -2141,7 +2094,7 @@
"collapsed": false,
"datasource": {
"type": "prometheus",
- "uid": "-paUMyI4z"
+ "uid": "${DS_PROMETHEUS}"
},
"gridPos": {
"h": 1,
@@ -2155,7 +2108,7 @@
{
"datasource": {
"type": "prometheus",
- "uid": "-paUMyI4z"
+ "uid": "${DS_PROMETHEUS}"
},
"refId": "A"
}
@@ -2174,8 +2127,6 @@
"mode": "palette-classic"
},
"custom": {
- "axisCenteredZero": false,
- "axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"axisSoftMax": 0,
@@ -2253,7 +2204,7 @@
"refId": "A"
}
],
- "title": "CPU-Load",
+ "title": "CPU Load",
"type": "timeseries"
},
{
@@ -2267,8 +2218,6 @@
"mode": "palette-classic"
},
"custom": {
- "axisCenteredZero": false,
- "axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"axisSoftMax": 0,
@@ -2353,7 +2302,7 @@
"collapsed": false,
"datasource": {
"type": "prometheus",
- "uid": "-paUMyI4z"
+ "uid": "${DS_PROMETHEUS}"
},
"gridPos": {
"h": 1,
@@ -2367,7 +2316,7 @@
{
"datasource": {
"type": "prometheus",
- "uid": "-paUMyI4z"
+ "uid": "${DS_PROMETHEUS}"
},
"refId": "A"
}
@@ -2386,8 +2335,6 @@
"mode": "palette-classic"
},
"custom": {
- "axisCenteredZero": false,
- "axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
@@ -2487,8 +2434,6 @@
"mode": "palette-classic"
},
"custom": {
- "axisCenteredZero": false,
- "axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
@@ -2587,8 +2532,6 @@
"mode": "palette-classic"
},
"custom": {
- "axisCenteredZero": false,
- "axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"axisSoftMin": -5,
@@ -2679,14 +2622,14 @@
"refId": "B"
}
],
- "title": "Disk-Space",
+ "title": "Disk Space",
"type": "timeseries"
},
{
"collapsed": false,
"datasource": {
"type": "prometheus",
- "uid": "-paUMyI4z"
+ "uid": "${DS_PROMETHEUS}"
},
"gridPos": {
"h": 1,
@@ -2700,7 +2643,7 @@
{
"datasource": {
"type": "prometheus",
- "uid": "-paUMyI4z"
+ "uid": "${DS_PROMETHEUS}"
},
"refId": "A"
}
@@ -2719,8 +2662,6 @@
"mode": "palette-classic"
},
"custom": {
- "axisCenteredZero": false,
- "axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
@@ -2819,8 +2760,6 @@
"mode": "palette-classic"
},
"custom": {
- "axisCenteredZero": false,
- "axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
@@ -2920,8 +2859,6 @@
"mode": "palette-classic"
},
"custom": {
- "axisCenteredZero": false,
- "axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
@@ -3057,8 +2994,6 @@
"mode": "palette-classic"
},
"custom": {
- "axisCenteredZero": false,
- "axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
@@ -3146,8 +3081,6 @@
"mode": "palette-classic"
},
"custom": {
- "axisCenteredZero": false,
- "axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
@@ -3237,7 +3170,7 @@
}
],
"refresh": false,
- "schemaVersion": 37,
+ "schemaVersion": 35,
"style": "dark",
"tags": [
"Apache-IoTDB",
@@ -3293,7 +3226,7 @@
]
},
"time": {
- "from": "now-7d",
+ "from": "now-3h",
"to": "now"
},
"timepicker": {
@@ -3309,6 +3242,6 @@
"timezone": "browser",
"title": "Apache IoTDB DataNode Dashboard",
"uid": "TbEVYRw7m",
- "version": 23,
+ "version": 3,
"weekStart": ""
}
\ No newline at end of file
diff --git a/server/src/test/resources/datanode1conf/iotdb-datanode.properties
b/server/src/test/resources/datanode1conf/iotdb-common.properties
similarity index 59%
copy from server/src/test/resources/datanode1conf/iotdb-datanode.properties
copy to server/src/test/resources/datanode1conf/iotdb-common.properties
index 3a783db236..7991cc2b98 100644
--- a/server/src/test/resources/datanode1conf/iotdb-datanode.properties
+++ b/server/src/test/resources/datanode1conf/iotdb-common.properties
@@ -17,24 +17,6 @@
# under the License.
#
-dn_rpc_address=0.0.0.0
-dn_internal_address=127.0.0.1
-
-dn_rpc_port=6667
-dn_mpp_data_exchange_port=8777
-dn_internal_port=9003
-dn_data_region_consensus_port=40010
-dn_schema_region_consensus_port=50030
-
-dn_target_config_nodes=127.0.0.1:22277,127.0.0.1:22279,127.0.0.1:22281
-
-dn_system_dir=target/datanode1/system
-dn_data_dirs=target/datanode1/data
-dn_wal_dirs=target/datanode1/wal
-index_root_dir=target/datanode1/data/index
-udf_lib_dir=target/datanode1/ext/udf
-dn_tracing_dir=target/datanode1/data/tracing
-dn_consensus_dir=target/datanode1/consensus
-trigger_root_dir=target/datanode1/ext/trigger
-sync_dir=target/datanode1/sync
timestamp_precision=ms
+udf_lib_dir=target/datanode1/ext/udf
+trigger_root_dir=target/datanode1/ext/trigger
\ No newline at end of file
diff --git a/server/src/test/resources/datanode1conf/iotdb-metric.yml
b/server/src/test/resources/datanode1conf/iotdb-datanode-metric.yml
similarity index 100%
rename from server/src/test/resources/datanode1conf/iotdb-metric.yml
rename to server/src/test/resources/datanode1conf/iotdb-datanode-metric.yml
diff --git a/server/src/test/resources/datanode1conf/iotdb-datanode.properties
b/server/src/test/resources/datanode1conf/iotdb-datanode.properties
index 3a783db236..dc82c3b8be 100644
--- a/server/src/test/resources/datanode1conf/iotdb-datanode.properties
+++ b/server/src/test/resources/datanode1conf/iotdb-datanode.properties
@@ -31,10 +31,5 @@
dn_target_config_nodes=127.0.0.1:22277,127.0.0.1:22279,127.0.0.1:22281
dn_system_dir=target/datanode1/system
dn_data_dirs=target/datanode1/data
dn_wal_dirs=target/datanode1/wal
-index_root_dir=target/datanode1/data/index
-udf_lib_dir=target/datanode1/ext/udf
dn_tracing_dir=target/datanode1/data/tracing
dn_consensus_dir=target/datanode1/consensus
-trigger_root_dir=target/datanode1/ext/trigger
-sync_dir=target/datanode1/sync
-timestamp_precision=ms
diff --git a/server/src/test/resources/datanode1conf/iotdb-rest.properties
b/server/src/test/resources/datanode1conf/iotdb-rest.properties
index b7f426f745..797783f2b3 100644
--- a/server/src/test/resources/datanode1conf/iotdb-rest.properties
+++ b/server/src/test/resources/datanode1conf/iotdb-rest.properties
@@ -15,47 +15,4 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
-#
-
-####################
-### REST Service Configuration
-####################
-
-# Is the REST service enabled
-# enable_rest_service=false
-
-# the binding port of the REST service
-# rest_service_port=18080
-
-# the default row limit to a REST query response when the rowSize parameter is
not given in request
-# rest_query_default_row_size_limit=10000
-
-# the expiration time of the user login information cache (in seconds)
-# cache_expire_in_seconds=28800
-
-# maximum number of users can be stored in the user login cache.
-# cache_max_num=100
-
-# init capacity of users can be stored in the user login cache.
-# cache_init_num=10
-
-# is SSL enabled
-# enable_https=false
-
-# SSL key store path
-# key_store_path=
-
-# SSL key store password
-# key_store_pwd=
-
-# Is client authentication required
-# client_auth=false
-
-# SSL trust store path
-# trust_store_path=
-
-# SSL trust store password.
-# trust_store_pwd=
-
-# SSL timeout (in seconds)
-# idle_timeout_in_seconds=50000
+#
\ No newline at end of file
diff --git a/server/src/test/resources/datanode2conf/iotdb-datanode.properties
b/server/src/test/resources/datanode2conf/iotdb-common.properties
similarity index 59%
copy from server/src/test/resources/datanode2conf/iotdb-datanode.properties
copy to server/src/test/resources/datanode2conf/iotdb-common.properties
index 24ef667c12..7b9be7eed2 100644
--- a/server/src/test/resources/datanode2conf/iotdb-datanode.properties
+++ b/server/src/test/resources/datanode2conf/iotdb-common.properties
@@ -17,24 +17,6 @@
# under the License.
#
-dn_rpc_address=0.0.0.0
-dn_internal_address=127.0.0.1
-
-dn_rpc_port=6669
-dn_mpp_data_exchange_port=8779
-dn_internal_port=9005
-dn_data_region_consensus_port=40012
-dn_schema_region_consensus_port=50032
-
-dn_target_config_nodes=127.0.0.1:22277,127.0.0.1:22279,127.0.0.1:22281
-
-dn_system_dir=target/datanode2/system
-dn_data_dirs=target/datanode2/data
-dn_wal_dirs=target/datanode2/wal
-index_root_dir=target/datanode2/data/index
-udf_lib_dir=target/datanode2/ext/udf
-dn_tracing_dir=target/datanode2/data/tracing
-dn_consensus_dir=target/datanode2/consensus
-trigger_root_dir=target/datanode2/ext/trigger
-sync_dir=target/datanode2/sync
timestamp_precision=ms
+udf_lib_dir=target/datanode2/ext/udf
+trigger_root_dir=target/datanode2/ext/trigger
\ No newline at end of file
diff --git a/server/src/test/resources/datanode2conf/iotdb-metric.yml
b/server/src/test/resources/datanode2conf/iotdb-datanode-metric.yml
similarity index 100%
rename from server/src/test/resources/datanode2conf/iotdb-metric.yml
rename to server/src/test/resources/datanode2conf/iotdb-datanode-metric.yml
diff --git a/server/src/test/resources/datanode2conf/iotdb-datanode.properties
b/server/src/test/resources/datanode2conf/iotdb-datanode.properties
index 24ef667c12..a8fdd288e7 100644
--- a/server/src/test/resources/datanode2conf/iotdb-datanode.properties
+++ b/server/src/test/resources/datanode2conf/iotdb-datanode.properties
@@ -31,10 +31,5 @@
dn_target_config_nodes=127.0.0.1:22277,127.0.0.1:22279,127.0.0.1:22281
dn_system_dir=target/datanode2/system
dn_data_dirs=target/datanode2/data
dn_wal_dirs=target/datanode2/wal
-index_root_dir=target/datanode2/data/index
-udf_lib_dir=target/datanode2/ext/udf
dn_tracing_dir=target/datanode2/data/tracing
dn_consensus_dir=target/datanode2/consensus
-trigger_root_dir=target/datanode2/ext/trigger
-sync_dir=target/datanode2/sync
-timestamp_precision=ms
diff --git a/server/src/test/resources/datanode2conf/iotdb-rest.properties
b/server/src/test/resources/datanode2conf/iotdb-rest.properties
index b7f426f745..585be9602f 100644
--- a/server/src/test/resources/datanode2conf/iotdb-rest.properties
+++ b/server/src/test/resources/datanode2conf/iotdb-rest.properties
@@ -16,46 +16,3 @@
# specific language governing permissions and limitations
# under the License.
#
-
-####################
-### REST Service Configuration
-####################
-
-# Is the REST service enabled
-# enable_rest_service=false
-
-# the binding port of the REST service
-# rest_service_port=18080
-
-# the default row limit to a REST query response when the rowSize parameter is
not given in request
-# rest_query_default_row_size_limit=10000
-
-# the expiration time of the user login information cache (in seconds)
-# cache_expire_in_seconds=28800
-
-# maximum number of users can be stored in the user login cache.
-# cache_max_num=100
-
-# init capacity of users can be stored in the user login cache.
-# cache_init_num=10
-
-# is SSL enabled
-# enable_https=false
-
-# SSL key store path
-# key_store_path=
-
-# SSL key store password
-# key_store_pwd=
-
-# Is client authentication required
-# client_auth=false
-
-# SSL trust store path
-# trust_store_path=
-
-# SSL trust store password.
-# trust_store_pwd=
-
-# SSL timeout (in seconds)
-# idle_timeout_in_seconds=50000
diff --git a/server/src/test/resources/datanode2conf/iotdb-datanode.properties
b/server/src/test/resources/datanode3conf/iotdb-common.properties
similarity index 56%
copy from server/src/test/resources/datanode2conf/iotdb-datanode.properties
copy to server/src/test/resources/datanode3conf/iotdb-common.properties
index 24ef667c12..b21a4882e6 100644
--- a/server/src/test/resources/datanode2conf/iotdb-datanode.properties
+++ b/server/src/test/resources/datanode3conf/iotdb-common.properties
@@ -17,24 +17,6 @@
# under the License.
#
-dn_rpc_address=0.0.0.0
-dn_internal_address=127.0.0.1
-
-dn_rpc_port=6669
-dn_mpp_data_exchange_port=8779
-dn_internal_port=9005
-dn_data_region_consensus_port=40012
-dn_schema_region_consensus_port=50032
-
-dn_target_config_nodes=127.0.0.1:22277,127.0.0.1:22279,127.0.0.1:22281
-
-dn_system_dir=target/datanode2/system
-dn_data_dirs=target/datanode2/data
-dn_wal_dirs=target/datanode2/wal
-index_root_dir=target/datanode2/data/index
-udf_lib_dir=target/datanode2/ext/udf
-dn_tracing_dir=target/datanode2/data/tracing
-dn_consensus_dir=target/datanode2/consensus
-trigger_root_dir=target/datanode2/ext/trigger
-sync_dir=target/datanode2/sync
timestamp_precision=ms
+udf_lib_dir=target/datanode3/ext/udf
+trigger_root_dir=target/datanode3/ext/trigger
\ No newline at end of file
diff --git a/server/src/test/resources/datanode3conf/iotdb-metric.yml
b/server/src/test/resources/datanode3conf/iotdb-datanode-metric.yml
similarity index 100%
rename from server/src/test/resources/datanode3conf/iotdb-metric.yml
rename to server/src/test/resources/datanode3conf/iotdb-datanode-metric.yml
diff --git a/server/src/test/resources/datanode3conf/iotdb-datanode.properties
b/server/src/test/resources/datanode3conf/iotdb-datanode.properties
index 19af2da098..8755ca81c6 100644
--- a/server/src/test/resources/datanode3conf/iotdb-datanode.properties
+++ b/server/src/test/resources/datanode3conf/iotdb-datanode.properties
@@ -31,10 +31,5 @@
dn_target_config_nodes=127.0.0.1:22277,127.0.0.1:22279,127.0.0.1:22281
dn_system_dir=target/datanode3/system
dn_data_dirs=target/datanode3/data
dn_wal_dir=target/datanode3/wal
-index_root_dir=target/datanode3/data/index
-udf_lib_dir=target/datanode3/ext
dn_tracing_dir=target/datanode3/data/tracing
-dn_consensus_dir=target/datanode3/consensus
-trigger_root_dir=target/datanode3/ext/trigger
-sync_dir=target/datanode3/sync
-timestamp_precision=ms
\ No newline at end of file
+dn_consensus_dir=target/datanode3/consensus
\ No newline at end of file
diff --git a/server/src/test/resources/datanode3conf/iotdb-rest.properties
b/server/src/test/resources/datanode3conf/iotdb-rest.properties
index b7f426f745..797783f2b3 100644
--- a/server/src/test/resources/datanode3conf/iotdb-rest.properties
+++ b/server/src/test/resources/datanode3conf/iotdb-rest.properties
@@ -15,47 +15,4 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
-#
-
-####################
-### REST Service Configuration
-####################
-
-# Is the REST service enabled
-# enable_rest_service=false
-
-# the binding port of the REST service
-# rest_service_port=18080
-
-# the default row limit to a REST query response when the rowSize parameter is
not given in request
-# rest_query_default_row_size_limit=10000
-
-# the expiration time of the user login information cache (in seconds)
-# cache_expire_in_seconds=28800
-
-# maximum number of users can be stored in the user login cache.
-# cache_max_num=100
-
-# init capacity of users can be stored in the user login cache.
-# cache_init_num=10
-
-# is SSL enabled
-# enable_https=false
-
-# SSL key store path
-# key_store_path=
-
-# SSL key store password
-# key_store_pwd=
-
-# Is client authentication required
-# client_auth=false
-
-# SSL trust store path
-# trust_store_path=
-
-# SSL trust store password.
-# trust_store_pwd=
-
-# SSL timeout (in seconds)
-# idle_timeout_in_seconds=50000
+#
\ No newline at end of file