6. pmlogger((metrics(logger)(4
• Creates(the(archive(logs(of(performance(metric(values(that(may(
be(played(back(by(other(pcp(tools.
# config file
log mandatory on once { hinv.ncpu hinv.ndisk }
log mandatory on every 10 minutes {
disk.all.write
disk.all.read
network.interface.in.packets [ "et0" ]
network.interface.out.packets [ "et0" ]
nfs.server.reqs [ "lookup" "getattr" "read" "write" ]
}
log advisory on every 30 minutes {
environ.temp
pmcd.pdu_in.total
pmcd.pdu_out.total
}
4
"h$p://www.pcp.io/man/man1/pmlogger.1.html
hbstyle((2015/04/09)(2(Yoshikawa(Ryota((@rrreeeyyy) 6
7. pmie%(metrics%inference%engine)%5
• Automated*filtering*and*reasoning*about*performance.
// Any disk performing more than 40 I/Os per second, sustained over
// at least 30 seconds is probably busy
delta = 30 seconds;
disk_busy =
some_inst (
$disk.dev.total > 40 count/sec
)
-> shell 15 mins "Mail -s 'Heavy sustained disk traffic' sysadm </dev/null";>
// hold off repetition of the action for 15 mins.
5
"h$p://www.pcp.io/pcp-gui.git/man/html/lab.pmie.html
hbstyle((2015/04/09)(2(Yoshikawa(Ryota((@rrreeeyyy) 7