Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
Update pvf metric histogram buckets (#4818)
Browse files Browse the repository at this point in the history
Signed-off-by: Andrei Sandu <[email protected]>
sandreim authored Jan 31, 2022

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 5e416e8 commit c9f4932
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions node/core/pvf/src/metrics.rs
Original file line number Diff line number Diff line change
@@ -160,11 +160,11 @@ impl metrics::Metrics for Metrics {
0.1,
0.5,
1.0,
2.0,
3.0,
10.0,
20.0,
30.0,
40.0,
50.0,
60.0,
]),
)?,
@@ -175,7 +175,19 @@ impl metrics::Metrics for Metrics {
prometheus::HistogramOpts::new(
"polkadot_pvf_execution_time",
"Time spent in executing PVFs",
)
).buckets(vec![
// This is synchronized with `APPROVAL_EXECUTION_TIMEOUT` and
// `BACKING_EXECUTION_TIMEOUT` constants in `node/primitives/src/lib.rs`
0.1,
0.25,
0.5,
1.0,
2.0,
3.0,
4.0,
5.0,
6.0,
]),
)?,
registry,
)?,

0 comments on commit c9f4932

Please sign in to comment.