This is an automated email from the ASF dual-hosted git repository. haonan pushed a commit to branch metric_ssl in repository https://gitbox.apache.org/repos/asf/iotdb.git
commit ffe9cd964e74bb31bc4e2f685ce6417245d99d03 Author: HTHou <hao...@apache.org> AuthorDate: Wed Sep 10 10:28:41 2025 +0800 finish config --- .../java/org/apache/iotdb/metrics/config/MetricConfig.java | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/iotdb-core/metrics/interface/src/main/java/org/apache/iotdb/metrics/config/MetricConfig.java b/iotdb-core/metrics/interface/src/main/java/org/apache/iotdb/metrics/config/MetricConfig.java index 26529b3e080..317290e3435 100644 --- a/iotdb-core/metrics/interface/src/main/java/org/apache/iotdb/metrics/config/MetricConfig.java +++ b/iotdb-core/metrics/interface/src/main/java/org/apache/iotdb/metrics/config/MetricConfig.java @@ -95,19 +95,16 @@ public class MetricConfig { } public List<ReporterType> getMetricReporterList() { - this.metricReporterList = new ArrayList<>(); - this.metricReporterList.add(ReporterType.valueOf("PROMETHEUS")); return metricReporterList; } public void setMetricReporterList(String metricReporterList) { this.metricReporterList = new ArrayList<>(); - // for (String type : metricReporterList.split(",")) { - // if (type.trim().length() != 0) { - // this.metricReporterList.add(ReporterType.valueOf(type)); - // } - // } - this.metricReporterList.add(ReporterType.valueOf("PROMETHEUS")); + for (String type : metricReporterList.split(",")) { + if (!type.trim().isEmpty()) { + this.metricReporterList.add(ReporterType.valueOf(type)); + } + } } public InternalReporterType getInternalReportType() {