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

[cpu]
label = %I usage
width = 3
precision = 0
printtype = p
colorstep = 34
grouptype = 2
usr = 100 * (rate(kernel.percpu.cpu.user) + rate(kernel.percpu.cpu.nice) + rate(kernel.percpu.cpu.irq.soft) + rate(kernel.percpu.cpu.irq.hard))
sys = 100 * rate(kernel.percpu.cpu.sys)
idl = 100 * rate(kernel.percpu.cpu.idle)
wai = 100 * rate(kernel.percpu.cpu.wait.total)
stl = 100 * rate(kernel.percpu.cpu.steal)

[cpu-adv]
width = 3
label = total cpu usage
precision = 0
printtype = p
colorstep = 34
usr = 100 * (rate(kernel.all.cpu.user) + rate(kernel.all.cpu.nice)) / hinv.ncpu
sys = 100 * rate(kernel.all.cpu.sys) / hinv.ncpu
idl = 100 * rate(kernel.all.cpu.idle) / hinv.ncpu
wai = 100 * rate(kernel.all.cpu.wait.total) / hinv.ncpu
hiq = 100 * rate(kernel.all.cpu.irq.hard) / hinv.ncpu
siq = 100 * rate(kernel.all.cpu.irq.soft) / hinv.ncpu
stl = 100 * rate(kernel.all.cpu.steal) / hinv.ncpu

[cpu-use]
width = 3
label = per cpu usage
printtype = p
precision = 0
colorstep = 34
percpu = 100 - 100 * (rate(kernel.percpu.cpu.idle))
percpu.label = %i
