#
# pcp-dstat(1) configuration file - see pcp-dstat(5)
#

[disk]
label = dsk/%I
printtype = b
precision = 0
grouptype = 2
reads = disk.dev.read_bytes
reads.label = read
writes = disk.dev.write_bytes
writes.label = writ

[disk-avgqu]
label = %I
width = 4
grouptype = 1
printtype = f
colorstep = 10
avgqu = disk.dev.aveq

[disk-avgrq]
label = %I
width = 4
grouptype = 1
printtype = f
colorstep = 10
avgrq = (delta(disk.dev.read_bytes) + delta(disk.dev.write_bytes)) / (delta(disk.dev.read) + delta(disk.dev.write))

[disk-svctm]
label = %I
width = 4
grouptype = 1
printtype = f
colorstep = 1
svctm = (delta(disk.dev.avactive) / 1000 / 2) / (delta(disk.dev.read) + delta(disk.dev.write))

[disk-tps]
label = dsk/%I
width = 5
printtype = d
grouptype = 2
reads = disk.dev.read
reads.label = #read
writes = disk.dev.write
writes.label = #writ

[disk-util]
label = %I
width = 4
grouptype = 1
printtype = f
colorstep = 34
util = 100 * rate(disk.dev.avactive)

[disk-wait]
label = %I
width = 4
grouptype = 1
printtype = f
colorstep = 1
rawait = delta(disk.dev.read_rawactive) / delta(disk.dev.read)
wawait = delta(disk.dev.write_rawactive) / delta(disk.dev.write)

