add metrics

This commit is contained in:
houseme
2025-05-15 23:34:36 +08:00
parent 5304b73588
commit 60635aeb65
27 changed files with 1702 additions and 42 deletions
+1 -1
View File
@@ -1,3 +1,4 @@
/// Bucket copy metric descriptor
use crate::metrics::{new_counter_md, new_gauge_md, subsystems, MetricDescriptor, MetricName};
// Label constants
@@ -6,7 +7,6 @@ pub const OPERATION_L: &str = "operation";
pub const TARGET_ARN_L: &str = "targetArn";
pub const RANGE_L: &str = "range";
/// Bucket copy metric descriptor
lazy_static::lazy_static! {
pub static ref BUCKET_REPL_LAST_HR_FAILED_BYTES_MD: MetricDescriptor =
new_gauge_md(