apache / incubator-pegasus

Apache Pegasus - A horizontally scalable, strongly consistent and high-performance key-value store
https://pegasus.apache.org/
Apache License 2.0
1.97k stars 314 forks source link

feat(new_metrics): show table stats by shell `app_stat` command based on new metrics (part 1) #1903

Closed empiredan closed 7 months ago

empiredan commented 7 months ago

This is the 1st part of migrating metrics for app_stat to new framework, since there are many (59) metrics to be migrated and both table-level and partition-level should be supported.

Since app_stat command has more dimensions for stats, i.e. table id and partition id, an abstract class aggregate_stats is introduced to allow users to perform their self-defined aggregations on fetched metrics.

New configuration is added:

[shell]
+ tables_sample_interval_ms = 1000