From 49411e915a5e9f1b2eeea0c1c45f8de64eadc441 Mon Sep 17 00:00:00 2001 From: "Brian L. Troutwine" Date: Mon, 28 Oct 2024 09:29:24 -0700 Subject: [PATCH] add more telemetry Signed-off-by: Brian L. Troutwine --- lading/src/generator/file_gen/logrotate_fs/model.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lading/src/generator/file_gen/logrotate_fs/model.rs b/lading/src/generator/file_gen/logrotate_fs/model.rs index ea2cef907..b91c77bd8 100644 --- a/lading/src/generator/file_gen/logrotate_fs/model.rs +++ b/lading/src/generator/file_gen/logrotate_fs/model.rs @@ -144,6 +144,7 @@ impl File { self.status_tick = now; } + counter!("bytes_read").increment(request); self.bytes_read = self.bytes_read.saturating_add(request); } @@ -162,6 +163,7 @@ impl File { let diff = now.saturating_sub(self.modified_tick); let bytes_accum = diff.saturating_mul(self.bytes_per_tick); + counter!("bytes_written").increment(bytes_accum); self.bytes_written = self.bytes_written.saturating_add(bytes_accum); self.modified_tick = now; self.status_tick = now;