Skip to main content

Crate monitord

Crate monitord 

Source
Expand description

§monitord Crate

monitord is a library to gather statistics about systemd.

Modules§

boot
boot module
config
dbus_stats
dbus_stats module
json
json module
logging
machines
networkd
networkd module
pid1
pid1 module
system
system module
timer
timers module
unit_constants
Unit Constants Module
units
units module
varlink
varlink_units
units module
verify
verify module

Structs§

MachineStats
Stats collected for a single systemd-nspawn container or VM managed by systemd-machined
MonitordStats
Root struct containing all enabled monitord metrics for the host system and containers

Enums§

MonitordError

Constants§

DEFAULT_DBUS_ADDRESS

Functions§

print_stats
Print statistics in the format set in configuration
stat_collector
Main statictic collection function running what’s required by configuration in parallel Takes an optional locked stats struct to update and to output stats to STDOUT or not. Takes an optional D-Bus connection. Returns Some(connection) if the collection cycle completed without errors (meaning the connection is reusable), None if errors occurred.