Skip to content

Commit

Permalink
Add timeline count bucket
Browse files Browse the repository at this point in the history
  • Loading branch information
petuhovskiy committed May 30, 2023
1 parent 3457760 commit 1115897
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion safekeeper/src/metrics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,11 +133,14 @@ pub static BROKER_PUSH_ALL_UPDATES_SECONDS: Lazy<Histogram> = Lazy::new(|| {
)
.expect("Failed to register safekeeper_broker_push_update_seconds histogram vec")
});
pub const TIMELINES_COUNT_BUCKETS: &[f64] = &[
1.0, 10.0, 50.0, 100.0, 200.0, 500.0, 1000.0, 2000.0, 5000.0, 10000.0, 20000.0, 50000.0,
];
pub static BROKER_ITERATION_TIMELINES: Lazy<Histogram> = Lazy::new(|| {
register_histogram!(
"safekeeper_broker_iteration_timelines",
"Count of timelines pushed to the broker in a single iteration",
DISK_WRITE_SECONDS_BUCKETS.to_vec()
TIMELINES_COUNT_BUCKETS.to_vec()
)
.expect("Failed to register safekeeper_broker_iteration_timelines histogram vec")
});
Expand Down

0 comments on commit 1115897

Please sign in to comment.