@@ -38,6 +38,11 @@ pub struct SearchMetrics {
38
38
pub searcher_local_kv_store_size_bytes : IntGauge ,
39
39
}
40
40
41
+ /// From 0.008s to 131.072s
42
+ fn duration_buckets ( ) -> Vec < f64 > {
43
+ exponential_buckets ( 0.008 , 2.0 , 15 ) . unwrap ( )
44
+ }
45
+
41
46
impl Default for SearchMetrics {
42
47
fn default ( ) -> Self {
43
48
let targeted_splits_buckets: Vec < f64 > = [
@@ -85,7 +90,7 @@ impl Default for SearchMetrics {
85
90
"search" ,
86
91
& [ ( "kind" , "server" ) ] ,
87
92
[ "status" ] ,
88
- exponential_buckets ( 0.001 , 2.0 , 15 ) . unwrap ( ) ,
93
+ duration_buckets ( ) ,
89
94
) ,
90
95
root_search_targeted_splits : new_histogram_vec (
91
96
"root_search_targeted_splits" ,
@@ -108,7 +113,7 @@ impl Default for SearchMetrics {
108
113
"search" ,
109
114
& [ ( "kind" , "server" ) ] ,
110
115
[ "status" ] ,
111
- exponential_buckets ( 0.001 , 2.0 , 15 ) . unwrap ( ) ,
116
+ duration_buckets ( ) ,
112
117
) ,
113
118
leaf_search_targeted_splits : new_histogram_vec (
114
119
"leaf_search_targeted_splits" ,
@@ -129,7 +134,7 @@ impl Default for SearchMetrics {
129
134
"Number of seconds required to run a leaf search over a single split. The timer \
130
135
starts after the semaphore is obtained.",
131
136
"search" ,
132
- exponential_buckets ( 0.001 , 2.0 , 15 ) . unwrap ( ) ,
137
+ duration_buckets ( ) ,
133
138
) ,
134
139
leaf_search_single_split_tasks_ongoing : leaf_search_single_split_tasks
135
140
. with_label_values ( [ "ongoing" ] ) ,
0 commit comments