1
0
mirror of https://github.com/romanz/electrs.git synced 2024-11-19 09:54:09 +01:00

Increase default metrics' buckets a bit

This commit is contained in:
Roman Zeyde 2021-10-29 10:04:43 +03:00
parent ef0335327d
commit 5e06766fcf

View File

@ -161,13 +161,13 @@ pub use metrics_fake::{Gauge, Histogram, Metrics};
pub(crate) fn default_duration_buckets() -> Vec<f64> {
vec![
1e-6, 2e-6, 5e-6, 1e-5, 2e-5, 5e-5, 1e-4, 2e-4, 5e-4, 1e-3, 2e-3, 5e-3, 1e-2, 2e-2, 5e-2,
1e-1, 2e-1, 5e-1, 1.0, 2.0, 5.0, 10.0,
1e-1, 2e-1, 5e-1, 1.0, 2.0, 5.0, 10.0, 20.0, 50.0, 100.0,
]
}
pub(crate) fn default_size_buckets() -> Vec<f64> {
vec![
1.0, 2.0, 5.0, 1e1, 2e1, 5e1, 1e2, 2e2, 5e2, 1e3, 2e3, 5e3, 1e4, 2e4, 5e4, 1e5, 2e5, 5e5,
1e6,
1e6, 2e6, 5e6, 1e7,
]
}