* new net-stats require a new table (#21996)
(cherry picked from commit 3fe942ab30
)
# Conflicts:
# core/src/system_monitor_service.rs
* merge
Co-authored-by: Jeff Biseda <jbiseda@gmail.com>
This commit is contained in:
@ -11,7 +11,7 @@ use std::{
|
|||||||
#[cfg(target_os = "linux")]
|
#[cfg(target_os = "linux")]
|
||||||
use std::{fs::File, io::BufReader, path::Path};
|
use std::{fs::File, io::BufReader, path::Path};
|
||||||
|
|
||||||
const SAMPLE_INTERVAL: Duration = Duration::from_secs(60);
|
const SAMPLE_INTERVAL: Duration = Duration::from_secs(2);
|
||||||
const SLEEP_INTERVAL: Duration = Duration::from_millis(500);
|
const SLEEP_INTERVAL: Duration = Duration::from_millis(500);
|
||||||
|
|
||||||
#[cfg(target_os = "linux")]
|
#[cfg(target_os = "linux")]
|
||||||
@ -125,7 +125,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