Dump system stats (time, load, memory) to stdout as a csv.
statsdump 0.3
dumps system stats
USAGE:
statsdump [SUBCOMMAND]
FLAGS:
-h, --help Prints help information
-V, --version Prints version information
SUBCOMMANDS:
help Prints this message or the help of the given subcommand(s)
mount Collect mounted fs information
proc Collect process information (pid, fd, cmd etc)
sys Collect system information (CPU, Memory)
statsdump sys --id $(hostname) --interval-secs 1
statsdump sys --id $(hostname) --interval-secs 1 > stats.csv
statsdump proc --interval-secs 1
statsdump mount --interval-secs 1
Ctrl-C
to stop
id,time_ms,mem_total,mem_free,mem_buffers,mem_cached,load_avg_1,load_avg_5,load_avg_15
ganesha,1562673069611,8268804096,611717120,236593152,2151419904,0.65,1.05,0.84
ganesha,1562673070612,8268804096,614203392,236601344,2152075264,0.65,1.05,0.84
ganesha,1562673071612,8268804096,614273024,236601344,2151960576,0.65,1.05,0.84
ganesha,1562673072613,8268804096,602386432,236634112,2146725888,0.6,1.04,0.83
ganesha,1562673073613,8268804096,601354240,236666880,2146148352,0.6,1.04,0.83
ganesha,1562673074613,8268804096,599031808,236716032,2146627584,0.6,1.04,0.83
ganesha,1562673075614,8268804096,599031808,236740608,2146447360,0.6,1.04,0.83
time_ms,pid,owner,open_fd_count,num_threads,starttime,utime,stime,cmdline
1562834946950,1,0,-1,1,20,1605,13005,/sbin/init splash
...
time_ms,source,dest,fstype,options,dump,pass,used,available,total,use_pc
1562840599223,sysfs,/sys,sysfs,rw;nosuid;nodev;noexec;relatime,0,0,0,0,0,0
1562840599223,proc,/proc,proc,rw;nosuid;nodev;noexec;relatime,0,0,0,0,0,0
1562840599223,udev,/dev,devtmpfs,rw;nosuid;relatime;size=4013116k;nr_inodes=1003279;mode=755,0,0
1562840599223,/dev/sda10,/home,ext4,rw;relatime,0,0,52739216,222433612,289972288,19
...
MIT