Skip to content

Commit

Permalink
chore: rename metrics
Browse files Browse the repository at this point in the history
Signed-off-by: Zhenchi <[email protected]>
  • Loading branch information
zhongzc committed Jan 4, 2024
1 parent 0d82313 commit eba01eb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/mito2/src/metrics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions src/mito2/src/sst/index/applier.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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<BTreeSet<usize>> {
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?;
Expand Down

0 comments on commit eba01eb

Please sign in to comment.