Skip to content

Commit

Permalink
log: disk utilization
Browse files Browse the repository at this point in the history
  • Loading branch information
Devdutt Shenoi committed Dec 5, 2023
1 parent d6390f7 commit fc39c5f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions uplink/src/base/serializer/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -593,12 +593,13 @@ fn check_metrics(metrics: &mut SerializerMetrics, storage_handler: &StorageHandl
metrics.set_disk_files(disk_utilized);

info!(
"{:>17}: batches = {:<3} errors = {} lost = {} disk_files = {:<3} write_memory = {} read_memory = {}",
"{:>17}: batches = {:<3} errors = {} lost = {} disk_files = {:<3} disk_utilized = {} write_memory = {} read_memory = {}",
metrics.mode,
metrics.batches,
metrics.errors,
metrics.lost_segments,
metrics.disk_files,
convert(metrics.disk_utilized as f64),
convert(metrics.write_memory as f64),
convert(metrics.read_memory as f64),
);
Expand Down Expand Up @@ -661,12 +662,13 @@ fn check_and_flush_metrics(
while let Some(metrics) = pending.get(0) {
// Always send pending metrics. They represent state changes
info!(
"{:>17}: batches = {:<3} errors = {} lost = {} disk_files = {:<3} write_memory = {} read_memory = {}",
"{:>17}: batches = {:<3} errors = {} lost = {} disk_files = {:<3} disk_utilized = {} write_memory = {} read_memory = {}",
metrics.mode,
metrics.batches,
metrics.errors,
metrics.lost_segments,
metrics.disk_files,
convert(metrics.disk_utilized as f64),
convert(metrics.write_memory as f64),
convert(metrics.read_memory as f64),
);
Expand Down

0 comments on commit fc39c5f

Please sign in to comment.