Hi,
I have been working on filling the gap with current PCP NFS coverage by
designing a NFS Server pmda for review/inclusion. It has the same
coverage for NFS Server a collectl and nfs-stat taking NFS server
metrics from the data provided by /proc/net/rpc/nfsd interface.
Changes committed to git://github.com/pauljevans/pcp.git dev
qa/657 | 61 +++
qa/657.out | 840
+++++++++++++++++++++++++++++++++
qa/GNUmakefile | 3 +-
qa/group | 1 +
qa/nfsserver/GNUmakefile | 14 +
qa/nfsserver/GNUmakefile.install | 1 +
qa/nfsserver/nfsserver-root-3.17.8.tgz | Bin 0 -> 411 bytes
src/pmdas/GNUmakefile | 3 +-
src/pmdas/nfsserver/.gitignore | 4 +
src/pmdas/nfsserver/GNUmakefile | 62 +++
src/pmdas/nfsserver/Install | 30 ++
src/pmdas/nfsserver/README | 58 +++
src/pmdas/nfsserver/Remove | 24 +
src/pmdas/nfsserver/help | 383 +++++++++++++++
src/pmdas/nfsserver/nfsd.c | 185 ++++++++
src/pmdas/nfsserver/nfsd.h | 145 ++++++
src/pmdas/nfsserver/pmda.c | 670 ++++++++++++++++++++++++++
src/pmdas/nfsserver/pmdanfsserver.1 | 66 +++
src/pmdas/nfsserver/pmdanfsserver.h | 30 ++
src/pmdas/nfsserver/pmns | 171 +++++++
src/pmdas/nfsserver/root | 13 +
src/pmns/stdpmid.pcp | 1 +
22 files changed, 2763 insertions(+), 2 deletions(-)
commit 127b4e781d8a0d8cd6ca635ac866aebc76dd96b8
Author: Paul Evans <pevans@xxxxxxxxxx>
Date: Mon Feb 2 16:08:45 2015 +0000
pmdanfsserver: Initial PMDA Code
Initial version of a PMDA for reporting NFS Server stats given from the
proc/net interface. DSO and Daemon running available, have reserved the
next free domain number 136.
Exporting statistics from the /proc/net/rpc/nfsd file. Using the values
given there are stats for the replycache, filehandle, io, net rpc along
with Server v2, v3 and v4. For the metric names am using the same
naming
scheme as collectl and have equal coverage in most cases and exceeding
coverage with regards to v4 server stats.
QA is provided with qa/657 which runs the pmda in DSO mode with a fake
root, (again borrowed with work from xfs and used in the cifs pmda) to
provide testing data.
Code is checked with Coverity and has no reported issues or build
warnings.
All of the patches have been tested and have had covscan run on them. As
always please let me know if there are any issues and feedback is
welcome :).
Cheers,
Paul
|