Add a collector for NFS client statistics.

This change adds a new collector called "nfs" that parses the contents
of /proc/net/rpc/nfs and turns it into metrics. It can be used to
inspect the number of operations per type, but also to keep an eye on an
extraneous number of retransmissions, which may indicate connectivity
issues.

I've picked the name "nfs", as most operating systems use "nfs" for the
client component and "nfsd" as the server component. If we want to add
stats for the NFS server as well, we'd better call such a collector
"nfsd".
This commit is contained in:
Ed Schouten 2016-11-29 14:32:52 +01:00 committed by Ed Schouten
commit a696830c38
5 changed files with 289 additions and 0 deletions

View file

@ -15,6 +15,7 @@ collectors=$(cat << COLLECTORS
meminfo_numa
netdev
netstat
nfs
sockstat
stat
textfile