This is an automated email from the ASF dual-hosted git repository.

gehafearless pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-pegasus.git


The following commit(s) were added to refs/heads/master by this push:
     new 794d411bc feat(new_metrics): show table stats by shell  command based 
on new metrics (part 3) (#1921)
794d411bc is described below

commit 794d411bc4309a4a991e308cca8082e1089a3d97
Author: Dan Wang <[email protected]>
AuthorDate: Wed Feb 28 11:10:28 2024 +0800

    feat(new_metrics): show table stats by shell  command based on new metrics 
(part 3) (#1921)
    
    Support more metrics new for both table-level and replica-level
    aggregations (sums and increases), including throttling, splitting,
    bulk load ingestion and RocksDB.
---
 src/shell/command_helper.h | 45 +++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 45 insertions(+)

diff --git a/src/shell/command_helper.h b/src/shell/command_helper.h
index 2979c1a06..e7a8e845a 100644
--- a/src/shell/command_helper.h
+++ b/src/shell/command_helper.h
@@ -1297,6 +1297,27 @@ inline dsn::metric_filters row_data_filters()
         "read_expired_values",
         "read_filtered_values",
         "abnormal_read_requests",
+        "throttling_delayed_write_requests",
+        "throttling_rejected_write_requests",
+        "throttling_delayed_read_requests",
+        "throttling_rejected_read_requests",
+        "throttling_delayed_backup_requests",
+        "throttling_rejected_backup_requests",
+        "splitting_rejected_write_requests",
+        "splitting_rejected_read_requests",
+        "bulk_load_ingestion_rejected_write_requests",
+        "rdb_total_sst_size_mb",
+        "rdb_total_sst_files",
+        "rdb_block_cache_hit_count",
+        "rdb_block_cache_total_count",
+        "rdb_index_and_filter_blocks_mem_usage_bytes",
+        "rdb_memtable_mem_usage_bytes",
+        "rdb_estimated_keys",
+        "rdb_bloom_filter_seek_negatives",
+        "rdb_bloom_filter_seek_total",
+        "rdb_bloom_filter_point_lookup_negatives",
+        "rdb_bloom_filter_point_lookup_positives",
+        "rdb_bloom_filter_point_lookup_true_positives",
     };
     return filters;
 }
@@ -1317,6 +1338,19 @@ inline stat_var_map create_sums(row_data &row)
 {
     return stat_var_map({
         BIND_ROW(dup_recent_lost_mutations, dup_recent_mutation_loss_count),
+        BIND_ROW(rdb_total_sst_size_mb, storage_mb),
+        BIND_ROW(rdb_total_sst_files, storage_count),
+        BIND_ROW(rdb_block_cache_hit_count, rdb_block_cache_hit_count),
+        BIND_ROW(rdb_block_cache_total_count, rdb_block_cache_total_count),
+        BIND_ROW(rdb_index_and_filter_blocks_mem_usage_bytes,
+                 rdb_index_and_filter_blocks_mem_usage),
+        BIND_ROW(rdb_memtable_mem_usage_bytes, rdb_memtable_mem_usage),
+        BIND_ROW(rdb_estimated_keys, rdb_estimate_num_keys),
+        BIND_ROW(rdb_bloom_filter_seek_negatives, rdb_bf_seek_negatives),
+        BIND_ROW(rdb_bloom_filter_seek_total, rdb_bf_seek_total),
+        BIND_ROW(rdb_bloom_filter_point_lookup_true_positives, 
rdb_bf_point_positive_true),
+        BIND_ROW(rdb_bloom_filter_point_lookup_positives, 
rdb_bf_point_positive_total),
+        BIND_ROW(rdb_bloom_filter_point_lookup_negatives, 
rdb_bf_point_negatives),
     });
 }
 
@@ -1328,6 +1362,17 @@ inline stat_var_map create_increases(row_data &row)
         BIND_ROW(read_expired_values, recent_expire_count),
         BIND_ROW(read_filtered_values, recent_filter_count),
         BIND_ROW(abnormal_read_requests, recent_abnormal_count),
+        BIND_ROW(throttling_delayed_write_requests, 
recent_write_throttling_delay_count),
+        BIND_ROW(throttling_rejected_write_requests, 
recent_write_throttling_reject_count),
+        BIND_ROW(throttling_delayed_read_requests, 
recent_read_throttling_delay_count),
+        BIND_ROW(throttling_rejected_read_requests, 
recent_read_throttling_reject_count),
+        BIND_ROW(throttling_delayed_backup_requests, 
recent_backup_request_throttling_delay_count),
+        BIND_ROW(throttling_rejected_backup_requests,
+                 recent_backup_request_throttling_reject_count),
+        BIND_ROW(splitting_rejected_write_requests, 
recent_write_splitting_reject_count),
+        BIND_ROW(splitting_rejected_read_requests, 
recent_read_splitting_reject_count),
+        BIND_ROW(bulk_load_ingestion_rejected_write_requests,
+                 recent_write_bulk_load_ingestion_reject_count),
     });
 }
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to