diff --git a/src/mito2/src/metrics.rs b/src/mito2/src/metrics.rs index 2dcf49f6e9fe..aa407bfdbced 100644 --- a/src/mito2/src/metrics.rs +++ b/src/mito2/src/metrics.rs @@ -149,9 +149,9 @@ lazy_static! { // Index metrics. /// Timer of index application. - pub static ref INDEX_APPLY_COST_TIME: Histogram = register_histogram!( - "index_apply_cost_time", - "index apply cost time", + pub static ref INDEX_APPLY_ELAPSED: Histogram = register_histogram!( + "index_apply_elapsed", + "index apply elapsed", ) .unwrap(); /// Gauge of index apply memory usage. diff --git a/src/mito2/src/sst/index/applier.rs b/src/mito2/src/sst/index/applier.rs index 7d8b63c9e71f..0efc3f8e6ad0 100644 --- a/src/mito2/src/sst/index/applier.rs +++ b/src/mito2/src/sst/index/applier.rs @@ -30,7 +30,7 @@ use crate::error::{ Result, }; use crate::metrics::{ - INDEX_APPLY_COST_TIME, INDEX_APPLY_MEMORY_USAGE, INDEX_PUFFIN_READ_BYTES_TOTAL, + INDEX_APPLY_ELAPSED, INDEX_APPLY_MEMORY_USAGE, INDEX_PUFFIN_READ_BYTES_TOTAL, INDEX_PUFFIN_READ_OP_TOTAL, INDEX_PUFFIN_SEEK_OP_TOTAL, }; use crate::sst::file::FileId; @@ -70,7 +70,7 @@ impl SstIndexApplier { /// Applies predicates to the provided SST file id and returns the relevant row group ids pub async fn apply(&self, file_id: FileId) -> Result> { - let _timer = INDEX_APPLY_COST_TIME.start_timer(); + let _timer = INDEX_APPLY_ELAPSED.start_timer(); let mut puffin_reader = self.puffin_reader(file_id).await?; let blob_reader = Self::index_blob_reader(&mut puffin_reader).await?;