processes: Show real disk IO in addition to process IO (Linux only)
authorPavel Rochnyack <pavel2000@ngs.ru>
Wed, 29 Mar 2017 15:31:43 +0000 (21:31 +0600)
committerPavel Rochnyack <pavel2000@ngs.ru>
Wed, 5 Jul 2017 12:25:04 +0000 (19:25 +0700)
commiteca29403e22aabf8e693badb311999697fa17f41
tree6317aa782d482dabd89f9fc97ec2fd2c4443efa4
parent6c97677d92ee28bf35dfe7b2c30b348fe8d2848b
processes: Show real disk IO in addition to process IO (Linux only)

Before this patch, Collectd reports /proc/PID/io fields 'io_rchar/io_wchar' as
'ps_disk_octets' type and 'io_syscr/io_syscw' as 'ps_disk_ops' type.
The names of these types do not match values they represent.

New, correct mapping implemented:

 io_rchar/io_wchar      -> io_octets   (was ps_disk_octets, not used anymore)
 io_syscr/io_syscw      -> io_ops      (was ps_disk_ops, not used anymore)
 read_bytes/write_bytes -> disk_octets (new data collected)

 Closes: #1990
src/processes.c
src/types.db