refactor(system_monitor): move metrics collection and alerting to dedicated modules
* node_notifier doesn't need sysinfo anymore. * implement AlertFormatter in node_notifier and its own file. * implement SystemMonitor, ResourceThreshold, ThresholdViolation, and Severity in system_monitor. * implement parametrized tests for SystemMonitor.
This commit is contained in:
7
system_monitor/Cargo.toml
Normal file
7
system_monitor/Cargo.toml
Normal file
@@ -0,0 +1,7 @@
|
||||
[package]
|
||||
name = "system_monitor"
|
||||
version = "0.1.0"
|
||||
edition = "2024"
|
||||
|
||||
[dependencies]
|
||||
sysinfo = "0.35.2"
|
||||
Reference in New Issue
Block a user