From c5b3d6998aae73e4b4522d526ecad47f3a3979a9 Mon Sep 17 00:00:00 2001 From: Zhenchi Date: Fri, 29 Dec 2023 09:54:23 +0000 Subject: [PATCH] add comments Signed-off-by: Zhenchi --- src/mito2/src/metrics.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/mito2/src/metrics.rs b/src/mito2/src/metrics.rs index 5f4038d93018..9c608999e716 100644 --- a/src/mito2/src/metrics.rs +++ b/src/mito2/src/metrics.rs @@ -186,9 +186,13 @@ lazy_static! { &[TYPE_LABEL, FILE_TYPE_LABEL] ) .unwrap(); + /// Counter of read bytes on intermediate files. pub static ref INDEX_INTERMEDIATE_READ_BYTES_TOTAL: IntCounter = INDEX_IO_BYTES_TOTAL.with_label_values(&["read", "intermediate"]); + /// Counter of write bytes on intermediate files. pub static ref INDEX_INTERMEDIATE_WRITE_BYTES_TOTAL: IntCounter = INDEX_IO_BYTES_TOTAL.with_label_values(&["write", "intermediate"]); + /// Counter of read bytes on puffin files. pub static ref INDEX_PUFFIN_READ_BYTES_TOTAL: IntCounter = INDEX_IO_BYTES_TOTAL.with_label_values(&["read", "puffin"]); + /// Counter of write bytes on puffin files. pub static ref INDEX_PUFFIN_WRITE_BYTES_TOTAL: IntCounter = INDEX_IO_BYTES_TOTAL.with_label_values(&["write", "puffin"]); // ------- End of index metrics. }