From 07422cd0a7cfb5ab672f5fbdd859642be142de2f Mon Sep 17 00:00:00 2001 From: Christoffer Martinsson Date: Sun, 23 Nov 2025 15:26:49 +0100 Subject: [PATCH] Add debug logging for filesystem discovery --- Cargo.lock | 6 +++--- agent/Cargo.toml | 2 +- agent/src/collectors/disk.rs | 5 +++++ dashboard/Cargo.toml | 2 +- shared/Cargo.toml | 2 +- 5 files changed, 11 insertions(+), 6 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 76b9d2e..d621a0a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -279,7 +279,7 @@ checksum = "a1d728cc89cf3aee9ff92b05e62b19ee65a02b5702cff7d5a377e32c6ae29d8d" [[package]] name = "cm-dashboard" -version = "0.1.114" +version = "0.1.115" dependencies = [ "anyhow", "chrono", @@ -301,7 +301,7 @@ dependencies = [ [[package]] name = "cm-dashboard-agent" -version = "0.1.114" +version = "0.1.115" dependencies = [ "anyhow", "async-trait", @@ -324,7 +324,7 @@ dependencies = [ [[package]] name = "cm-dashboard-shared" -version = "0.1.114" +version = "0.1.115" dependencies = [ "chrono", "serde", diff --git a/agent/Cargo.toml b/agent/Cargo.toml index 0f9d899..196e6b0 100644 --- a/agent/Cargo.toml +++ b/agent/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cm-dashboard-agent" -version = "0.1.114" +version = "0.1.115" edition = "2021" [dependencies] diff --git a/agent/src/collectors/disk.rs b/agent/src/collectors/disk.rs index 17b3b2c..eaed276 100644 --- a/agent/src/collectors/disk.rs +++ b/agent/src/collectors/disk.rs @@ -665,6 +665,11 @@ impl DiskCollector { }); // Individual filesystem metrics + debug!("Drive {} has {} filesystems", drive_name, drive.filesystems.len()); + for filesystem in &drive.filesystems { + debug!("Filesystem {}: {} bytes used / {} bytes total", + filesystem.mount_point, filesystem.used_bytes, filesystem.total_bytes); + } for filesystem in &drive.filesystems { let fs_name = if filesystem.mount_point == "/" { "root".to_string() diff --git a/dashboard/Cargo.toml b/dashboard/Cargo.toml index fc4ab38..8938d84 100644 --- a/dashboard/Cargo.toml +++ b/dashboard/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cm-dashboard" -version = "0.1.114" +version = "0.1.115" edition = "2021" [dependencies] diff --git a/shared/Cargo.toml b/shared/Cargo.toml index 4154abe..81e3f5a 100644 --- a/shared/Cargo.toml +++ b/shared/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cm-dashboard-shared" -version = "0.1.114" +version = "0.1.115" edition = "2021" [dependencies]