prometheus-linux-nfsdv4-exporter - prometheus exporter for NFSv4 server.
prometheus-linux-nfsdv4-exporter It is a prometheus-exporter that reports basic metrics of NFSv4 clients from the server side. Since Linux Kernel 5.3, NFSv4 mount points have information reported inside the /proc/fs/nfsd/clients/, it is possible to retrieve some limited information of clients that are using NFSv4.
Prometheus metrics:
- nfsiobytesread Total of bytes read
- nfsiobyteswrite Total of bytes write
- nfsnetworkconnections Total amount of network connections
- nfsnetworknetcount Total amount of packets
- nfsnetworktcpcount Total amount of TCP packets
- nfsnetworkudpcount Total amount of UDP packets
- nfsreplycache_hits Number of cache hits
- nfsreplycache_misses Number of cache misses
- nfsreplycache_nocache Number of nocache
- nfsv4opdelegperclient Number of deleg operations per NFSv4 client
- nfsv4oplayoutperclient Number of layout operations per NFSv4 client
- nfsv4oplockperclient Number of lock operations per NFSv4 client
- nfsv4opopenperclient Number of open operations per NFSv4 client
- numberofnfsv4_clients Number of NFSv4 clients
Build the project:
- Release:
cargo build --release
Debian package:
- First install:
cargo install cargo-deb
- Generate the debian package:
cargo deb -v
Contributing:
License:
The project is made available under the BSD 2-Clause license. See the LICENSE
file for more information.