From c1c7cc35c2efa50d75f2374e2f25694231d20837 Mon Sep 17 00:00:00 2001 From: Jeff Biseda Date: Fri, 17 Dec 2021 19:55:57 -0800 Subject: [PATCH 1/2] new net-stats require a new table --- core/src/system_monitor_service.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/system_monitor_service.rs b/core/src/system_monitor_service.rs index 6e5d519bda2400..ac82e0a6730bd0 100644 --- a/core/src/system_monitor_service.rs +++ b/core/src/system_monitor_service.rs @@ -15,7 +15,7 @@ use { }; const MS_PER_S: u64 = 1_000; -const SAMPLE_INTERVAL_UDP_MS: u64 = 60 * MS_PER_S; +const SAMPLE_INTERVAL_UDP_MS: u64 = MS_PER_S; const SAMPLE_INTERVAL_MEM_MS: u64 = MS_PER_S; const SLEEP_INTERVAL: Duration = Duration::from_millis(500); @@ -130,7 +130,7 @@ impl SystemMonitorService { #[cfg(target_os = "linux")] fn report_udp_stats(old_stats: &UdpStats, new_stats: &UdpStats) { datapoint_info!( - "net-stats", + "net-stats-validator", ( "in_datagrams_delta", new_stats.in_datagrams - old_stats.in_datagrams, From 4c212e6bbead31d07a2a2bb63f31b1641ad0a24d Mon Sep 17 00:00:00 2001 From: Jeff Biseda Date: Fri, 17 Dec 2021 20:43:58 -0800 Subject: [PATCH 2/2] 2s sample interval --- core/src/system_monitor_service.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/system_monitor_service.rs b/core/src/system_monitor_service.rs index ac82e0a6730bd0..06ce178218dd98 100644 --- a/core/src/system_monitor_service.rs +++ b/core/src/system_monitor_service.rs @@ -15,7 +15,7 @@ use { }; const MS_PER_S: u64 = 1_000; -const SAMPLE_INTERVAL_UDP_MS: u64 = MS_PER_S; +const SAMPLE_INTERVAL_UDP_MS: u64 = 2 * MS_PER_S; const SAMPLE_INTERVAL_MEM_MS: u64 = MS_PER_S; const SLEEP_INTERVAL: Duration = Duration::from_millis(500);