From 0a31afd00d8556d25ee82f4d6528276a17e8cc50 Mon Sep 17 00:00:00 2001 From: Dom Dwyer Date: Tue, 16 May 2023 17:46:20 +0200 Subject: [PATCH] fix: correct time range buckets Turns out there are 60 seconds in a minute, not 3,600. --- ingester/src/persist/file_metrics.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ingester/src/persist/file_metrics.rs b/ingester/src/persist/file_metrics.rs index d12024b43f..3e4926b4fd 100644 --- a/ingester/src/persist/file_metrics.rs +++ b/ingester/src/persist/file_metrics.rs @@ -7,7 +7,7 @@ use metric::{ use super::completion_observer::{CompletedPersist, PersistCompletionObserver}; -const MINUTES: Duration = Duration::from_secs(60 * 60); +const MINUTES: Duration = Duration::from_secs(60); #[derive(Debug)] pub(crate) struct ParquetFileInstrumentation {