Lei Rui created IOTDB-4994:
------------------------------
Summary: Micrometer and DropWizard behave differently
Key: IOTDB-4994
URL: https://issues.apache.org/jira/browse/IOTDB-4994
Project: Apache IoTDB
Issue Type: Wish
Reporter: Lei Rui
Micrometer: Value only appears in one window.
DropWizard: Value retains in every window.
Here is an example of Micrometer:
{code:java}
IoTDB> select
DCP_SeriesScanOperator_hasNext_count.`name=DCP_A_GET_CHUNK_METADATAS`.value as
cnt from root.__system.metric.`0.0.0.0:6667`
+-----------------------------+---+
| Time|cnt|
+-----------------------------+---+
|2022-11-19T20:12:09.306+08:00|2.0|
|2022-11-19T20:12:24.305+08:00|0.0|
|2022-11-19T20:12:39.306+08:00|0.0|
|2022-11-19T20:12:54.306+08:00|0.0|
+-----------------------------+---+
Total line number = 4
It costs 0.022s
IoTDB> select
sum(DCP_SeriesScanOperator_hasNext_count.`name=DCP_A_GET_CHUNK_METADATAS`.value)
as sum_cnt from root.__system.metric.`0.0.0.0:6667`
+-------+
|sum_cnt|
+-------+
| 2.0|
+-------+
Total line number = 1
It costs 0.320s {code}
Here is an example of DropWizard:
{code:java}
IoTDB> select
`dropwizard:DCP_SeriesScanOperator_hasNext_count`.`name=DCP_A_GET_CHUNK_METADATAS`.value
as cnt from root.__system.metric.`0.0.0.0:6667`
+-----------------------------+---+
| Time|cnt|
+-----------------------------+---+
|2022-11-19T20:09:17.090+08:00| 2|
|2022-11-19T20:09:31.881+08:00| 2|
|2022-11-19T20:09:46.847+08:00| 2|
|2022-11-19T20:10:01.867+08:00| 2|
|2022-11-19T20:10:16.868+08:00| 2|
|2022-11-19T20:10:31.852+08:00| 2|
+-----------------------------+---+
Total line number = 6
It costs 0.035s
IoTDB> select
sum(`dropwizard:DCP_SeriesScanOperator_hasNext_count`.`name=DCP_A_GET_CHUNK_METADATAS`.value)
as sum_cnt from root.__system.metric.`0.0.0.0:6667`
+-------+
|sum_cnt|
+-------+
| 18.0|
+-------+
Total line number = 1
It costs 0.010s {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)