You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ma...@apache.org on 2023/06/02 06:54:11 UTC
[iotdb] 01/01: remove max pool size metric
This is an automated email from the ASF dual-hosted git repository.
marklau99 pushed a commit to branch remove-pool-max-size-metric
in repository https://gitbox.apache.org/repos/asf/iotdb.git
commit 7d06c1d5dabd5d9e4172aa8c5e89605df538189b
Author: Liu Xuxin <li...@outlook.com>
AuthorDate: Fri Jun 2 14:51:39 2023 +0800
remove max pool size metric
---
.../iotdb/commons/concurrent/ThreadPoolMetrics.java | 16 ----------------
1 file changed, 16 deletions(-)
diff --git a/node-commons/src/main/java/org/apache/iotdb/commons/concurrent/ThreadPoolMetrics.java b/node-commons/src/main/java/org/apache/iotdb/commons/concurrent/ThreadPoolMetrics.java
index 9ced16bf8aa..ee1b32c5129 100644
--- a/node-commons/src/main/java/org/apache/iotdb/commons/concurrent/ThreadPoolMetrics.java
+++ b/node-commons/src/main/java/org/apache/iotdb/commons/concurrent/ThreadPoolMetrics.java
@@ -34,7 +34,6 @@ public class ThreadPoolMetrics implements IMetricSet {
private static final String THREAD_POOL_DONE_TASK_COUNT = "thread_pool_done_task_count";
private static final String THREAD_POOL_WAITING_TASK_COUNT = "thread_pool_waiting_task_count";
private static final String THREAD_POOL_CORE_SIZE = "thread_pool_core_size";
- private static final String THREAD_POOL_MAX_POOL_SIZE = "thread_pool_max_pool_size";
private static final String THREAD_POOL_LARGEST_POOL_SIZE = "thread_pool_largest_pool_size";
private static final String POOL_NAME = "pool_name";
private AbstractMetricService metricService;
@@ -81,13 +80,6 @@ public class ThreadPoolMetrics implements IMetricSet {
map -> registeredPoolMap.get(name).getCompletedTaskCount(),
POOL_NAME,
name);
- metricService.createAutoGauge(
- THREAD_POOL_MAX_POOL_SIZE,
- MetricLevel.IMPORTANT,
- registeredPoolMap,
- map -> registeredPoolMap.get(name).getMaximumPoolSize(),
- POOL_NAME,
- name);
metricService.createAutoGauge(
THREAD_POOL_LARGEST_POOL_SIZE,
MetricLevel.IMPORTANT,
@@ -132,13 +124,6 @@ public class ThreadPoolMetrics implements IMetricSet {
map -> entry.getValue().getCompletedTaskCount(),
POOL_NAME,
entry.getKey());
- metricService.createAutoGauge(
- THREAD_POOL_MAX_POOL_SIZE,
- MetricLevel.IMPORTANT,
- registeredPoolMap,
- map -> entry.getValue().getMaximumPoolSize(),
- POOL_NAME,
- entry.getKey());
metricService.createAutoGauge(
THREAD_POOL_LARGEST_POOL_SIZE,
MetricLevel.IMPORTANT,
@@ -162,7 +147,6 @@ public class ThreadPoolMetrics implements IMetricSet {
MetricType.GAUGE, THREAD_POOL_WAITING_TASK_COUNT, POOL_NAME, entry.getKey());
metricService.remove(
MetricType.GAUGE, THREAD_POOL_DONE_TASK_COUNT, POOL_NAME, entry.getKey());
- metricService.remove(MetricType.GAUGE, THREAD_POOL_MAX_POOL_SIZE, POOL_NAME, entry.getKey());
metricService.remove(
MetricType.GAUGE, THREAD_POOL_LARGEST_POOL_SIZE, POOL_NAME, entry.getKey());
}