mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-01-06 13:22:57 +00:00
* chore/series-metrics: ### Add Metrics for Active Series and Values in Memtable - **`simple_bulk_memtable.rs`**: Implemented `Drop` trait for `SimpleBulkMemtable` to decrement `MEMTABLE_ACTIVE_SERIES_COUNT` and `MEMTABLE_ACTIVE_VALUES_COUNT` upon dropping. - **`time_series.rs`**: - Introduced `SeriesMap` with `Drop` implementation to manage active series and values count. - Updated `SeriesSet` and `Iter` to use `SeriesMap`. - Added `num_values` method in `Series` to calculate the number of values. - **`metrics.rs`**: Added `MEMTABLE_ACTIVE_SERIES_COUNT` and `MEMTABLE_ACTIVE_VALUES_COUNT` metrics to track active series and values in `TimeSeriesMemtable`. Signed-off-by: Lei, HUANG <mrsatangel@gmail.com> * chore/series-metrics: - Add metrics for active series and field builders - Update dashboard Signed-off-by: Lei, HUANG <mrsatangel@gmail.com> * chore/series-metrics: **Add Series Count Tracking in Memtables** - **`flush.rs`**: Updated `RegionFlushTask` to track and log the series count during memtable flush operations. - **`memtable.rs`**: Introduced `series_count` in `MemtableStats` and added a method to retrieve it. - **`partition_tree.rs`, `partition.rs`, `tree.rs`**: Implemented series count calculation in `PartitionTreeMemtable` and its components. - **`simple_bulk_memtable.rs`, `time_series.rs`**: Integrated series count tracking in `SimpleBulkMemtable` and `TimeSeriesMemtable` implementations. Signed-off-by: Lei, HUANG <mrsatangel@gmail.com> * Update src/mito2/src/memtable.rs Co-authored-by: Yingwen <realevenyag@gmail.com> --------- Signed-off-by: Lei, HUANG <mrsatangel@gmail.com> Co-authored-by: Yingwen <realevenyag@gmail.com>