Skip to content

Commit

Permalink
More granular latency histogram
Browse files Browse the repository at this point in the history
  • Loading branch information
hacker-volodya authored May 19, 2024
1 parent 9b46725 commit d6ac415
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/metrics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ impl AccountBlockMetrics {
)?;
let hist_vec = HistogramVec::new(
HistogramOpts::new("account_block_tx_latency", "ShardAccountBlocks transactions latency histogram (seconds from imported message utime to transaction utime)")
.buckets(vec![0., 5., 10., 15., 20., 30., 60., 120., 300., 600., 1800., 3600.])
.buckets(vec![0., 5., 10., 15., 20., 30., 40., 50., 60., 70., 80., 90., 100., 110., 120., 150., 180., 210., 240., 270., 300., 360., 420., 480., 540., 600., 900., 1200., 1500., 1800., 2400., 3000., 3600.])
, &["shard"])?;
let shard = shard.to_string();
Ok(Self {
Expand Down Expand Up @@ -315,4 +315,4 @@ impl Collector for OutMsgMetrics {
fn collect(&self) -> Vec<prometheus::proto::MetricFamily> {
self.counter_vec.collect()
}
}
}

0 comments on commit d6ac415

Please sign in to comment.