From 51e00fac6bef9d6a7621d24bd5e2f4b2947d991b Mon Sep 17 00:00:00 2001 From: Wallace Date: Fri, 26 Jan 2024 14:17:10 +0800 Subject: [PATCH] fix(metric): fix checkpoint size use small buckets (#14809) Signed-off-by: Little-Wallace --- src/storage/src/monitor/monitored_storage_metrics.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/storage/src/monitor/monitored_storage_metrics.rs b/src/storage/src/monitor/monitored_storage_metrics.rs index b2cf2186deab8..009cd7308df9e 100644 --- a/src/storage/src/monitor/monitored_storage_metrics.rs +++ b/src/storage/src/monitor/monitored_storage_metrics.rs @@ -127,7 +127,7 @@ impl MonitoredStorageMetrics { let opts = histogram_opts!( "state_store_iter_item", "Total bytes gotten from state store scan(), for calculating read throughput", - size_buckets + size_buckets.clone(), ); let iter_item = register_histogram_vec_with_registry!(opts, &["table_id"], registry).unwrap(); @@ -189,14 +189,14 @@ impl MonitoredStorageMetrics { let opts = histogram_opts!( "state_store_sync_duration", "Histogram of time spent on compacting shared buffer to remote storage", - time_buckets.clone() + time_buckets, ); let sync_duration = register_histogram_with_registry!(opts, registry).unwrap(); let opts = histogram_opts!( "state_store_sync_size", "Total size of upload to l0 every epoch", - time_buckets + size_buckets, ); let sync_size = register_histogram_with_registry!(opts, registry).unwrap();