#
# 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 iostat(1) reports - sysstat-12.5
#
[iostat-v12_5-dktx]
header = yes
unitinfo = no
globals = no
timestamp = yes
precision = 2
delimiter = " "
repeat_header = auto
colxrow = "    Device"
disk.dev.read          = r/s,,,,7
disk.dev.read_bytes    = rkB/s,,KB,,9
disk.dev.read_merge    = rrqm/s,,,,8
rrqm_pc                = %%rrqm,,,,6
rrqm_pc.formula        = 100 * rate(disk.dev.read_merge)  / rate(disk.dev.read)
disk.dev.r_await       = r_await,,,,7
disk.dev.r_avg_rqsz    = rareq-sz,,,,8
disk.dev.write         = w/s,,,,7
disk.dev.write_bytes   = wkB/s,,KB,,9
disk.dev.write_merge   = wrqm/s,,,,8
wrqm_pc                = %%wrqm,,,,6
wrqm_pc.formula        = 100 * rate(disk.dev.write_merge) / rate(disk.dev.write)
disk.dev.w_await       = w_await,,,,7
disk.dev.w_avg_rqsz    = wareq-sz,,,,8
disk.dev.discard       = d/s,,,,7
disk.dev.discard_bytes = dkB/s,,KB,,9
disk.dev.discard_merge = drqm/s,,,,8
dsqm_pc                = %%drqm,,,,6
dsqm_pc.formula        = 100 * rate(disk.dev.discard_merge) / rate(disk.dev.discard)
disk.dev.d_await       = d_await,,,,7
disk.dev.d_avg_rqsz    = dareq-sz,,,,8
disk.dev.flush         = f/s,,,,7
disk.dev.f_await       = f_await,,,,7
disk.dev.avg_qlen      = aqu-sz,,,,7
disk.dev.util          = %%util,,,,6

[iostat-v12_5-dktx-dm]
header = yes
unitinfo = no
globals = no
timestamp = yes
precision = 2
delimiter = " "
repeat_header = auto
colxrow = "    Device"
disk.dm.read          = r/s,,,,7
disk.dm.read_bytes    = rkB/s,,KB,,9
disk.dm.read_merge    = rrqm/s,,,,8
rrqm_pc               = %%rrqm,,,,6
rrqm_pc.formula       = 100 * rate(disk.dm.read_merge)  / rate(disk.dm.read)
disk.dm.r_await       = r_await,,,,7
disk.dm.r_avg_rqsz    = rareq-sz,,,,8
disk.dm.write         = w/s,,,,7
disk.dm.write_bytes   = wkB/s,,KB,,9
disk.dm.write_merge   = wrqm/s,,,,8
wrqm_pc               = %%wrqm,,,,6
wrqm_pc.formula       = 100 * rate(disk.dm.write_merge) / rate(disk.dm.write)
disk.dm.w_await       = w_await,,,,7
disk.dm.w_avg_rqsz    = wareq-sz,,,,8
disk.dm.discard       = d/s,,,,7
disk.dm.discard_bytes = dkB/s,,KB,,9
disk.dm.discard_merge = drqm/s,,,,8
dsqm_pc               = %%drqm,,,,6
dsqm_pc.formula       = 100 * rate(disk.dm.discard_merge) / rate(disk.dm.discard)
disk.dm.d_await       = d_await,,,,7
disk.dm.d_avg_rqsz    = dareq-sz,,,,8
disk.dm.flush         = f/s,,,,7
disk.dm.f_await       = f_await,,,,7
disk.dm.avg_qlen      = aqu-sz,,,,7
disk.dm.util          = %%util,,,,6

[iostat-multipath-wwid]
header = yes
unitinfo = no
globals = no
timestamp = yes
precision = 2
delimiter = " "
repeat_header = auto
colxrow = "             WWID"
disk.wwid.scsi_paths    = SCSI Paths,,,,15
disk.wwid.read          = r/s,,,,7
disk.wwid.read_bytes    = rkB/s,,KB,,9
disk.wwid.read_merge    = rrqm/s,,,,8
disk.wwid.r_await       = r_await,,,,7
disk.wwid.r_avg_rqsz    = rareq-sz,,,,8
disk.wwid.write         = w/s,,,,7
disk.wwid.write_bytes   = wkB/s,,KB,,9
disk.wwid.write_merge   = wrqm/s,,,,8
disk.wwid.w_await       = w_await,,,,7
disk.wwid.w_avg_rqsz    = wareq-sz,,,,8
disk.wwid.avg_qlen      = aqu-sz,,,,7
disk.wwid.util          = %%util,,,,6
