This is an automated email from the ASF dual-hosted git repository.
chenyz 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 76a8d6ca12a Change schema_region_total_device_cnt label to
SCHEMA_ENGINE (#12636)
76a8d6ca12a is described below
commit 76a8d6ca12af9a50ff08085941fb714048982d13
Author: Chen YZ <[email protected]>
AuthorDate: Mon Jun 3 14:21:55 2024 +0800
Change schema_region_total_device_cnt label to SCHEMA_ENGINE (#12636)
---
.../apache/iotdb/db/schemaengine/metric/SchemaEngineMemMetric.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/schemaengine/metric/SchemaEngineMemMetric.java
b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/schemaengine/metric/SchemaEngineMemMetric.java
index b80f0f6b6ef..839477b434d 100644
---
a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/schemaengine/metric/SchemaEngineMemMetric.java
+++
b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/schemaengine/metric/SchemaEngineMemMetric.java
@@ -50,7 +50,7 @@ public class SchemaEngineMemMetric implements
ISchemaEngineMetric {
@Override
public void bindTo(AbstractMetricService metricService) {
metricService.createAutoGauge(
- Metric.MEM.toString(),
+ Metric.SCHEMA_ENGINE.toString(),
MetricLevel.IMPORTANT,
engineStatistics,
ISchemaEngineStatistics::getTotalDevicesNumber,
@@ -102,7 +102,7 @@ public class SchemaEngineMemMetric implements
ISchemaEngineMetric {
@Override
public void unbindFrom(AbstractMetricService metricService) {
metricService.remove(
- MetricType.AUTO_GAUGE, Metric.MEM.toString(), Tag.NAME.toString(),
DEVICE_NUMBER);
+ MetricType.AUTO_GAUGE, Metric.SCHEMA_ENGINE.toString(),
Tag.NAME.toString(), DEVICE_NUMBER);
metricService.remove(
MetricType.AUTO_GAUGE,
Metric.MEM.toString(),