From 853f807e2c3232be6ccda22304bc8bd5f7b929ea Mon Sep 17 00:00:00 2001 From: Nils Andreas Svee Date: Mon, 13 Apr 2026 12:07:03 +0700 Subject: [PATCH] feat: add metrics module for monitoring Initialize the Metrics structure to receive and process ping statistics as part of the monitoring subsystem. --- src/main.rs | 1 + src/metrics.rs | 6 ++++++ 2 files changed, 7 insertions(+) create mode 100644 src/metrics.rs diff --git a/src/main.rs b/src/main.rs index fa5b2df..d0ab137 100644 --- a/src/main.rs +++ b/src/main.rs @@ -3,6 +3,7 @@ extern crate core; mod baseliner; mod config; mod log; +mod metrics; mod netlink; mod pinger; mod pinger_icmp; diff --git a/src/metrics.rs b/src/metrics.rs new file mode 100644 index 0000000..41cb9ff --- /dev/null +++ b/src/metrics.rs @@ -0,0 +1,6 @@ +pub struct Metrics { + pub config: Config, + pub stats_receiver: Receiver, +} + +impl Metrics {}