From 9b1f405012869f5c9f80d71952ea0c4497486374 Mon Sep 17 00:00:00 2001 From: Max Inden Date: Wed, 8 Sep 2021 18:44:03 +0200 Subject: [PATCH] misc/metrics/src/kad: Set query_duration lowest bucket to 0.1 sec (#2219) Probability for a Kademlia query to return in less than 100 milliseconds is low, thus increasing the lower bucket to improve accuracy within the higher ranges. --- misc/metrics/src/kad.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/metrics/src/kad.rs b/misc/metrics/src/kad.rs index 0103db857c7..6b5f5cf2db4 100644 --- a/misc/metrics/src/kad.rs +++ b/misc/metrics/src/kad.rs @@ -115,7 +115,7 @@ impl Metrics { ); let query_result_duration = - Family::new_with_constructor(|| Histogram::new(exponential_buckets(0.001, 2.0, 12))); + Family::new_with_constructor(|| Histogram::new(exponential_buckets(0.1, 2.0, 10))); sub_registry.register_with_unit( "query_result_duration", "Duration of a Kademlia query.",