下記、Dstatのヘルプにある項目を調べてみたところ、ディスク使用量に関するオプションが
確認できませんでした。

# dstat -h
Usage: dstat [-afv] [options..] [delay [count]]
Versatile tool for generating system resource statistics

Dstat options:
-c, --cpu enable cpu stats
-C 0,3,total include cpu0, cpu3 and total
-d, --disk enable disk stats
-D total,hda include hda and total
-g, --page enable page stats
-i, --int enable interrupt stats
-I 5,eth2 include int5 and interrupt used by eth2
-l, --load enable load stats
-m, --mem enable memory stats
-n, --net enable network stats
-N eth1,total include eth1 and total
-p, --proc enable process stats
-r, --io enable io stats (I/O requests completed)
-s, --swap enable swap stats
-S swap1,total include swap1 and total
-t, --time enable time/date output
-T, --epoch enable time counter (seconds since epoch)
-y, --sys enable system stats

--aio enable aio stats
--fs, --filesystem enable fs stats
--ipc enable ipc stats
--lock enable lock stats
--raw enable raw stats
--socket enable socket stats
--tcp enable tcp stats
--udp enable udp stats
--unix enable unix stats
--vm enable vm stats

--plugin-name enable plugins by plugin name (see manual)
--list list all available plugins

-a, --all equals -cdngy (default)
-f, --full automatically expand -C, -D, -I, -N and -S lists
-v, --vmstat equals -pmgdsc -D total

--bw, --blackonwhite change colors for white background terminal
--float force float values on screen
--integer force integer values on screen
--nocolor disable colors (implies --noupdate)
--noheaders disable repetitive headers
--noupdate disable intermediate updates
--output file write CSV output to file

delay is the delay in seconds between each update (default: 1)
count is the number of updates to display before exiting (default: unlimited)

こちらをさらに調査してみたところ、–plugin-nameというオプションで可能であることが分かりました。
この–plugin-nameというオプションは、そのまま利用するのではなく、プラグインの名前を指定します。

プラグインは、下記のように確認することができます。

# cd /usr/share/dstat
# ls *.py
dstat.py dstat_mysql5_io.py dstat_top_bio.py
dstat_battery.py dstat_mysql5_keys.py dstat_top_cpu.py
dstat_battery_remain.py dstat_mysql_io.py dstat_top_cputime.py
dstat_cpufreq.py dstat_mysql_keys.py dstat_top_cputime_avg.py
dstat_dbus.py dstat_net_packets.py dstat_top_io.py
dstat_disk_util.py dstat_nfs3.py dstat_top_latency.py
dstat_fan.py dstat_nfs3_ops.py dstat_top_latency_avg.py
dstat_freespace.py dstat_nfsd3.py dstat_top_mem.py
dstat_gpfs.py dstat_nfsd3_ops.py dstat_top_oom.py
dstat_gpfs_ops.py dstat_ntp.py dstat_utmp.py
dstat_helloworld.py dstat_postfix.py dstat_vm_memctl.py
dstat_innodb_buffer.py dstat_power.py dstat_vmk_hba.py
dstat_innodb_io.py dstat_proc_count.py dstat_vmk_int.py
dstat_innodb_ops.py dstat_rpc.py dstat_vmk_nic.py
dstat_lustre.py dstat_rpcd.py dstat_vz_cpu.py
dstat_memcache_hits.py dstat_sendmail.py dstat_vz_io.py
dstat_mysql5_cmds.py dstat_snooze.py dstat_vz_ubc.py
dstat_mysql5_conn.py dstat_thermal.py dstat_wifi.py

上記の中にdstat_freespace.pyというプラグインがあり、これを利用することで、ディスク使用量を確認することが
できます。

このプラグインは下記のように使います。

# dstat --freespace
-----/-----
used free
3053M 2995M
...

上記より、–plugin-nameは–プラグイン名のことで、プラグイン名は、dstat_プラグイン名.pyというような
ルールになります。
※プラグイン名のアンダースコア(_)はオプション指定時、ハイフン(-)になります。

こちらの記事はなかの人(suz-lab)監修のもと掲載しています。
元記事は、こちら