This commit is contained in:
csehviktor
2025-06-29 02:44:39 +02:00
commit c83e5c86e0
11 changed files with 474 additions and 0 deletions

19
agent/src/main.rs Normal file
View File

@@ -0,0 +1,19 @@
use collector::Collector;
use std::thread;
use std::time;
pub mod collector;
const REFRESH_INTERVAL: u64 = 3000;
fn main() {
let mut collector = Collector::new();
loop {
let metrics = collector.collect_all();
println!("Metrics: {:?}", metrics);
thread::sleep(time::Duration::from_millis(REFRESH_INTERVAL));
}
}