Backgorund
Problems
As IoTDB becomes more and more complex, some system operating metric need to be monitored to improve the operational viability and robustness of the system. IoTDB does not have a relatively complete metric collector to support the collection of some system operating metric now, so it is necessary to design a set of metric acquisition system.
There are some widely used metric acquisition library in the open source community, such as Dropwizard metrics, micrometer, and dubbo metrics, that can be considered for adaptation. Considering that IoTDB is a real-time online system, according to the experience of previously collected metrics leading to a significant drop in performance, these metrics library may not be able to meet the needs of IoTDB in terms of performance.
Targets
Provides a set of metric collector interfaces.
A set of adaptation implementations based on micrometer.
A set of adaptation implementations based on dropwizard.
Test metric creation and query performance on miceometer and dropwizard.
metrics
Provide tools for collecting metric in different scenarios, including Counter, Gauge, Meter, Histogram, Timer, each with tags.
metricManager
Provides functions such as creating, finding, updating, and deleting metrics.
Provides management of reporter, including starting and stopping reporter.
Provides the ability to introduce default metrics(Known Metric).
Provides its own start and stop methods.
MetricReporter
Push the collector's data to other systems, such as Prometheus, JMX, IoTDB, etc.
MetricService
Provides metricManager start-up, acquisition, and shutdown functions that can be used in the future after being registered as Iservice.