[IOTDB-3214] Refact predefined metrics in metric framework. (#5930)
authorZhangHongYin <46039728+SpriCoder@users.noreply.github.com>
Thu, 19 May 2022 09:01:15 +0000 (17:01 +0800)
committerGitHub <noreply@github.com>
Thu, 19 May 2022 09:01:15 +0000 (17:01 +0800)
commitdd1a28c58d7718fb1372b5e5a44e8d79057ecdbe
treeb682081f8195c0c7b69b30773aecab09f3fab06b
parentb724afb4b236d15eb55eba24e89f98e3c9879e6e
[IOTDB-3214] Refact predefined metrics in metric framework. (#5930)
44 files changed:
LICENSE
cluster/src/main/java/org/apache/iotdb/cluster/log/manage/PartitionedSnapshotLogManager.java
cluster/src/main/java/org/apache/iotdb/cluster/server/handlers/caller/ElectionHandler.java
cluster/src/main/java/org/apache/iotdb/cluster/utils/nodetool/ClusterMonitor.java
docs/UserGuide/Maintenance-Tools/Metric-Tool.md
docs/zh/UserGuide/Maintenance-Tools/Metric-Tool.md
metrics/dropwizard-metrics/src/main/java/org/apache/iotdb/metrics/dropwizard/DropwizardMetricManager.java
metrics/interface/src/main/assembly/resources/conf/iotdb-metric.yml
metrics/interface/src/main/java/org/apache/iotdb/metrics/DoNothingMetricService.java
metrics/interface/src/main/java/org/apache/iotdb/metrics/MetricManager.java
metrics/interface/src/main/java/org/apache/iotdb/metrics/MetricService.java
metrics/interface/src/main/java/org/apache/iotdb/metrics/config/MetricConfig.java
metrics/interface/src/main/java/org/apache/iotdb/metrics/impl/DoNothingMetricManager.java
metrics/interface/src/main/java/org/apache/iotdb/metrics/predefined/IMetricSet.java [new file with mode: 0644]
metrics/interface/src/main/java/org/apache/iotdb/metrics/predefined/jvm/JvmClassLoaderMetrics.java [new file with mode: 0644]
metrics/interface/src/main/java/org/apache/iotdb/metrics/predefined/jvm/JvmCompileMetrics.java [new file with mode: 0644]
metrics/interface/src/main/java/org/apache/iotdb/metrics/predefined/jvm/JvmGcMetrics.java [new file with mode: 0644]
metrics/interface/src/main/java/org/apache/iotdb/metrics/predefined/jvm/JvmMemoryMetrics.java [new file with mode: 0644]
metrics/interface/src/main/java/org/apache/iotdb/metrics/predefined/jvm/JvmMetrics.java [new file with mode: 0644]
metrics/interface/src/main/java/org/apache/iotdb/metrics/predefined/jvm/JvmThreadMetrics.java [new file with mode: 0644]
metrics/interface/src/main/java/org/apache/iotdb/metrics/predefined/logback/LogbackMetrics.java [new file with mode: 0644]
metrics/interface/src/main/java/org/apache/iotdb/metrics/utils/JvmUtils.java [new file with mode: 0644]
metrics/interface/src/main/java/org/apache/iotdb/metrics/utils/PredefinedMetric.java
metrics/micrometer-metrics/src/main/java/org/apache/iotdb/metrics/micrometer/MicrometerMetricManager.java
server/src/main/java/org/apache/iotdb/db/engine/cache/ChunkCache.java
server/src/main/java/org/apache/iotdb/db/engine/cache/TimeSeriesMetadataCache.java
server/src/main/java/org/apache/iotdb/db/engine/compaction/CompactionMetricsManager.java
server/src/main/java/org/apache/iotdb/db/engine/flush/FlushManager.java
server/src/main/java/org/apache/iotdb/db/engine/flush/MemTableFlushTask.java
server/src/main/java/org/apache/iotdb/db/engine/memtable/AbstractMemTable.java
server/src/main/java/org/apache/iotdb/db/engine/storagegroup/DataRegion.java
server/src/main/java/org/apache/iotdb/db/engine/storagegroup/TsFileProcessorInfo.java
server/src/main/java/org/apache/iotdb/db/metadata/rescon/TimeseriesStatistics.java
server/src/main/java/org/apache/iotdb/db/query/pool/RawQueryReadTaskPoolManager.java
server/src/main/java/org/apache/iotdb/db/service/metrics/MetricsService.java
server/src/main/java/org/apache/iotdb/db/service/metrics/enums/Metric.java [moved from server/src/main/java/org/apache/iotdb/db/service/metrics/Metric.java with 96% similarity]
server/src/main/java/org/apache/iotdb/db/service/metrics/enums/Operation.java [moved from server/src/main/java/org/apache/iotdb/db/service/metrics/Operation.java with 96% similarity]
server/src/main/java/org/apache/iotdb/db/service/metrics/enums/Tag.java [moved from server/src/main/java/org/apache/iotdb/db/service/metrics/Tag.java with 94% similarity]
server/src/main/java/org/apache/iotdb/db/service/metrics/predefined/FileMetrics.java [new file with mode: 0644]
server/src/main/java/org/apache/iotdb/db/service/metrics/predefined/ProcessMetrics.java [moved from server/src/main/java/org/apache/iotdb/db/service/metrics/ProcessMetricsMonitor.java with 80% similarity]
server/src/main/java/org/apache/iotdb/db/service/metrics/predefined/SystemMetrics.java [moved from server/src/main/java/org/apache/iotdb/db/service/metrics/SysRunMetricsMonitor.java with 82% similarity]
server/src/main/java/org/apache/iotdb/db/service/thrift/ProcessorWithMetrics.java
server/src/main/java/org/apache/iotdb/db/service/thrift/impl/DataNodeTSIServiceImpl.java
server/src/main/java/org/apache/iotdb/db/service/thrift/impl/TSServiceImpl.java