#
# pmrep(1) configuration file - see pmrep.conf(5)
#


# Compact metric specifications are of form (see pmrep(1)):
#pcp.metric.name = label,instances,unit/scale,type,width,precision,limit


#
# Mimic assorted vmstat(8) reports
#
[vmstat]
header = yes
unitinfo = no
globals = no
timestamp = no
precision = 0
delimiter = " "
repeat_header = auto
kernel.all.running = r,,,,3
kernel.all.blocked = b,,,,3
swap.used          = swpd,,KB,,7
mem.util.free      = free,,KB,,8
mem.util.bufmem    = buff,,KB,,7
allcache           = mem.util.allcache
allcache.label     = cache
allcache.formula   = mem.util.cached + mem.util.slab
allcache.unit      = KB
allcache.width     = 7
swap.pagesin       = si,,,,5
swap.pagesout      = so,,,,5
mem.vmstat.pgpgin  = bi,,,,6
mem.vmstat.pgpgout = bo,,,,6
kernel.all.intr    = in,,,,5
kernel.all.pswitch = cs,,,,6
alluser            = kernel.all.cpu.alluserp
alluser.label      = us
alluser.formula    = 100 * (kernel.all.cpu.user + kernel.all.cpu.nice) / hinv.ncpu
alluser.unit       = s
sys                = kernel.all.cpu.sysp
sys.label          = sy
sys.formula        = 100 * kernel.all.cpu.sys / hinv.ncpu
sys.unit           = s
idle               = kernel.all.cpu.idlep
idle.label         = id
idle.formula       = 100 * kernel.all.cpu.idle / hinv.ncpu
idle.unit          = s
wtotal             = kernel.all.cpu.wait.totalp
wtotal.label       = wa
wtotal.formula     = 100 * kernel.all.cpu.wait.total / hinv.ncpu
wtotal.unit        = s
steal              = kernel.all.cpu.stealp
steal.label        = st
steal.formula      = 100 * kernel.all.cpu.steal / hinv.ncpu
steal.unit         = s

[vmstat-a]
header = yes
unitinfo = no
globals = no
timestamp = no
precision = 0
delimiter = " "
repeat_header = auto
kernel.all.running = r,,,,3
kernel.all.blocked = b,,,,3
swap.used          = swpd,,KB,,7
mem.util.free      = free,,KB,,8
mem.util.inactive  = inact,,KB,,7
mem.util.active    = active,,KB,,7
swap.pagesin       = si,,,,5
swap.pagesout      = so,,,,5
mem.vmstat.pgpgin  = bi,,,,6
mem.vmstat.pgpgout = bo,,,,6
kernel.all.intr    = in,,,,5
kernel.all.pswitch = cs,,,,6
alluser            = kernel.all.cpu.alluserp
alluser.label      = us
alluser.formula    = 100 * (kernel.all.cpu.user + kernel.all.cpu.nice) / hinv.ncpu
alluser.unit       = s
sys                = kernel.all.cpu.sysp
sys.label          = sy
sys.formula        = 100 * kernel.all.cpu.sys / hinv.ncpu
sys.unit           = s
idle               = kernel.all.cpu.idlep
idle.label         = id
idle.formula       = 100 * kernel.all.cpu.idle / hinv.ncpu
idle.unit          = s
wtotal             = kernel.all.cpu.wait.totalp
wtotal.label       =  wa
wtotal.formula     = 100 * kernel.all.cpu.wait.total / hinv.ncpu
wtotal.unit        = s
steal              = kernel.all.cpu.stealp
steal.label        = st
steal.formula      = 100 * kernel.all.cpu.steal / hinv.ncpu
steal.unit         = s

[vmstat-d]
header = yes
unitinfo = yes
globals = no
timestamp = no
width = 8
type = raw
precision = 0
delimiter = " "
colxrow = "   DEV"
repeat_header = auto
disk.dev.read            = rtotal,,,,10
disk.dev.read_merge      = rmerged,,,,
disk.dev.blkread         = rsectors,,,,12
disk.dev.read_rawactive  = rms,,,,8
disk.dev.write           = wtotal,,,,10
disk.dev.write_merge     = wmerged,,,,
disk.dev.blkwrite        = wsectors,,,,12
disk.dev.write_rawactive = wms,,,,8
disk.dev.avg_qlen        = cur,,,,6
sec                      = disk.dev.secactive
sec.label                = sec
sec.formula              = instant(disk.dev.avactive)
sec.width                = 6
sec.unit                 = s

[vmstat-w]
header = yes
unitinfo = no
globals = no
timestamp = no
precision = 0
delimiter = " "
repeat_header = auto
kernel.all.running = r,,,,3
kernel.all.blocked = b,,,,3
swap.used          = swpd,,KB,,13
mem.util.free      = free,,KB,,13
mem.util.bufmem    = buff,,KB,,13
allcache           = mem.util.allcache
allcache.label     = cache
allcache.formula   = mem.util.cached + mem.util.slab
allcache.unit      = KB
allcache.width     = 13
swap.pagesin       = si,,,,5
swap.pagesout      = so,,,,5
mem.vmstat.pgpgin  = bi,,,,6
mem.vmstat.pgpgout = bo,,,,6
kernel.all.intr    = in,,,,5
kernel.all.pswitch = cs,,,,6
alluser            = kernel.all.cpu.alluserp
alluser.label      = us
alluser.formula    = 100 * (kernel.all.cpu.user + kernel.all.cpu.nice) / hinv.ncpu
alluser.unit       = s
alluser.width      = 4
sys                = kernel.all.cpu.sysp
sys.label          = sy
sys.formula        = 100 * kernel.all.cpu.sys / hinv.ncpu
sys.unit           = s
sys.width          = 4
idle               = kernel.all.cpu.idlep
idle.label         = id
idle.formula       = 100 * kernel.all.cpu.idle / hinv.ncpu
idle.unit          = s
idle.width         = 4
wtotal             = kernel.all.cpu.wait.totalp
wtotal.label       = wa
wtotal.formula     = 100 * kernel.all.cpu.wait.total / hinv.ncpu
wtotal.unit        = s
wtotal.width       = 4
steal              = kernel.all.cpu.stealp
steal.label        = st
steal.formula      = 100 * kernel.all.cpu.steal / hinv.ncpu
steal.unit         = s
steal.width        = 4
