(cherry picked from commit 3fe942ab30
)
Co-authored-by: Jeff Biseda <jbiseda@gmail.com>
This commit is contained in:
@ -15,7 +15,7 @@ use {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const MS_PER_S: u64 = 1_000;
|
const MS_PER_S: u64 = 1_000;
|
||||||
const SAMPLE_INTERVAL_UDP_MS: u64 = 60 * MS_PER_S;
|
const SAMPLE_INTERVAL_UDP_MS: u64 = 2 * MS_PER_S;
|
||||||
const SAMPLE_INTERVAL_MEM_MS: u64 = MS_PER_S;
|
const SAMPLE_INTERVAL_MEM_MS: u64 = MS_PER_S;
|
||||||
const SLEEP_INTERVAL: Duration = Duration::from_millis(500);
|
const SLEEP_INTERVAL: Duration = Duration::from_millis(500);
|
||||||
|
|
||||||
@ -130,7 +130,7 @@ impl SystemMonitorService {
|
|||||||
#[cfg(target_os = "linux")]
|
#[cfg(target_os = "linux")]
|
||||||
fn report_udp_stats(old_stats: &UdpStats, new_stats: &UdpStats) {
|
fn report_udp_stats(old_stats: &UdpStats, new_stats: &UdpStats) {
|
||||||
datapoint_info!(
|
datapoint_info!(
|
||||||
"net-stats",
|
"net-stats-validator",
|
||||||
(
|
(
|
||||||
"in_datagrams_delta",
|
"in_datagrams_delta",
|
||||||
new_stats.in_datagrams - old_stats.in_datagrams,
|
new_stats.in_datagrams - old_stats.in_datagrams,
|
||||||
|
Reference in New Issue
Block a user