iotdb-core/metrics/ReadMe.md
Metric Module
In this project, we provide interface and its implementation
In each implementation, you can use several types of reporter to report metric
The acquisition system consists of following four parts.
We implemented the monitoring framework mainly based on Micrometer, and tested the results as follows:
System.setProperty("line.separator", "\n");
System.setProperty("IOTDB_CONF", "metrics/core/src/test/resources");
iotdb-datanode.properties(iotdb-confignode.properties) as you like, some details:| properties | meaning | example |
|---|---|---|
| dn(cn)_enable_metric | whether enable the module | true |
| dn(cn)_enable_performance_stat | Is stat performance of operation latency | true |
| dn(cn)_metric_reporter_list | the list of reporter | JMX, PROMETHEUS, IOTDB |
| dn(cn)_metric_level | the init level of metrics | ALL, NORMAL, IMPORTANT, CORE |
| dn(cn)_metric_async_collect_period | The period of the collection of some metrics in asynchronous way, such as tsfile size. | 5 |
dn(cn)_enable_metric=true to use metric service.MetricService.getInstance(), for example:MetricService.getInstance().count(1, "operation_count", MetricLevel.IMPORTANT, "name", operation.getName());
reloadProperties to reload properties when running.org.apache.iotdb.metricssrc/main/resources/META-INF/services/org.apache.iotdb.metrics.Reporter,and record your MetricManager class name in this file, such as org.apache.iotdb.metrics.core.reporter.IoTDBJmxReporter