pub struct MonitordStats {
pub networkd: NetworkdState,
pub pid1: Option<Pid1Stats>,
pub system_state: SystemdSystemState,
pub units: SystemdUnitStats,
pub version: SystemdVersion,
pub dbus_stats: Option<DBusStats>,
pub machines: HashMap<String, MachineStats>,
pub boot_blame: Option<BootBlameStats>,
pub verify_stats: Option<VerifyStats>,
pub stat_collection_run_time_ms: f64,
pub collector_timings: Vec<CollectorTiming>,
}Expand description
Root struct containing all enabled monitord metrics for the host system and containers
Fields§
§networkd: NetworkdStatesystemd-networkd interface states and managed interface count
pid1: Option<Pid1Stats>PID 1 (systemd) process stats from procfs: CPU, memory, FDs, tasks
system_state: SystemdSystemStateOverall systemd manager state (e.g. running, degraded, initializing)
units: SystemdUnitStatsAggregated systemd unit counts by type/state and per-service/timer detailed metrics
version: SystemdVersionInstalled systemd version (major.minor.revision.os)
dbus_stats: Option<DBusStats>D-Bus daemon/broker statistics (connections, bus names, match rules, per-peer accounting)
machines: HashMap<String, MachineStats>Per-container stats keyed by machine name, collected via systemd-machined
boot_blame: Option<BootBlameStats>Boot blame statistics: slowest units at boot with activation times in seconds
verify_stats: Option<VerifyStats>Unit verification error statistics
stat_collection_run_time_ms: f64End-to-end duration of the last stat collection run in milliseconds.
collector_timings: Vec<CollectorTiming>Per-collector timings from the last run, sorted slowest first. Empty
before the first run completes. Callers compute parallelism ratio
(sum of elapsed_ms / stat_collection_run_time_ms) and identify the
gating collector (first entry) directly from this vector.
Trait Implementations§
Source§impl Debug for MonitordStats
impl Debug for MonitordStats
Source§impl Default for MonitordStats
impl Default for MonitordStats
Source§fn default() -> MonitordStats
fn default() -> MonitordStats
Source§impl<'de> Deserialize<'de> for MonitordStats
impl<'de> Deserialize<'de> for MonitordStats
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for MonitordStats
impl PartialEq for MonitordStats
Source§fn eq(&self, other: &MonitordStats) -> bool
fn eq(&self, other: &MonitordStats) -> bool
self and other values to be equal, and is used by ==.