cooperlees / monitord

Script to parse systemd units and components health + offer telemetry
GNU General Public License v2.0
22 stars 8 forks source link

Refactor stat_collector to run all collections in async parallel #86

Closed cooperlees closed 1 month ago

cooperlees commented 1 month ago

Test Plan:

cooper@cooper-fedora-MJ0J8MTZ:~/repos/monitord$ time ./target/release/monitord -c monitord.conf > /dev/null I1001 09:05:16.258015 3289269 src/main.rs:28] monitord: Know how happy your systemd is! šŸ˜Š I1001 09:05:16.258750 3289269 src/lib.rs:76] Starting stat collection run E1001 09:05:16.259904 3289269 src/networkd.rs:308] Unable to get interface links via DBUS - is networkd running?: MethodError( OwnedErrorName( "org.freedesktop.DBus.Error.NameHasNoOwner", ), Some( "Could not activate remote peer 'org.freedesktop.network1': activation request failed: unknown unit", ), Msg { type: Error, sender: UniqueName( "org.freedesktop.DBus", ), reply-serial: 2, body: Signature( "s", ), fds: [], }, ) I1001 09:05:16.269851 3289269 src/lib.rs:142] stat collection run took 11ms

real 0m0.020s user 0m0.005s sys 0m0.026s


- No networkd running on Fedora