happybeing / vdash

A Dashboard for Autonomi Nodes that runs in the terminal
GNU Affero General Public License v3.0
19 stars 9 forks source link

Feature: gather and show system load from logfile #5

Open happybeing opened 2 years ago

happybeing commented 2 years ago

Use the following node log TRACE output to gather metrics for:

System:

Node:

Provide horizontal bar display of:

Show node prefix in LHS panel

 TRACE 2022-01-27T13:02:57.320967Z [sn/src/node/logging/mod.rs:L71]:
     ➤ log {system=System { global CPU usage: 100.0, load average: LoadAvg { one: 119.24, five: 178.42, fifteen: 148.32 }, total memory: 67022352, free memory: 7430066, total swap: 2147479, free swap: 2128408, nb CPUs: 8, nb network interfaces: 4, nb processes: 447, nb disks: 2, nb components: 8 } print_resources_usage=false}
     ➤ Node resource usage: Process { memory: 71520, virtual_memory: 2712522752, cpu_usage: 8.668731, disk_usage: DiskUsage { total_written_bytes: 860160, written_bytes: 45056, total_read_bytes: 0, read_bytes: 0 } } prefix="000000.."
happybeing commented 2 years ago

I've published v0.7.3 which add system and node resource display, but leaving this open as I think it might be improved with feedback, such as changing the text colours depending on CPU load.