#
# 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
usr                = kernel.all.cpu.usrp
usr.label          = us
usr.formula        = 100 * (kernel.all.cpu.vuser + kernel.all.cpu.vnice) / hinv.ncpu
usr.unit           = s
sys                = kernel.all.cpu.sysp
sys.label          = sy
sys.formula        = 100 * (kernel.all.cpu.sys + kernel.all.cpu.intr) / 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
guest              = kernel.all.cpu.guestp
guest.label        = gu
guest.formula      = 100 * (kernel.all.cpu.guest + kernel.all.cpu.guest_nice) / hinv.ncpu
guest.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
usr                = kernel.all.cpu.usrp
usr.label          = us
usr.formula        = 100 * (kernel.all.cpu.vuser + kernel.all.cpu.vnice) / hinv.ncpu
usr.unit           = s
sys                = kernel.all.cpu.sysp
sys.label          = sy
sys.formula        = 100 * (kernel.all.cpu.sys + kernel.all.cpu.intr) / 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
guest              = kernel.all.cpu.guestp
guest.label        = gu
guest.formula      = 100 * (kernel.all.cpu.guest + kernel.all.cpu.guest_nice) / hinv.ncpu
guest.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
usr                = kernel.all.cpu.usrp
usr.label          = us
usr.formula        = 100 * (kernel.all.cpu.vuser + kernel.all.cpu.vnice) / hinv.ncpu
usr.unit           = s
usr.width          = 4
sys                = kernel.all.cpu.sysp
sys.label          = sy
sys.formula        = 100 * (kernel.all.cpu.sys + kernel.all.cpu.intr) / 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
guest              = kernel.all.cpu.guestp
guest.label        = gu
guest.formula      = 100 * (kernel.all.cpu.guest + kernel.all.cpu.guest_nice) / hinv.ncpu
guest.unit         = s
guest.width        = 4
