prometheusnfsexporter

How to get NFS Free Disk Space on Prometheus


I'm trying to get in prometheus the status of an NFS server and the free disk space on that server.

The configuration that I have is

Server1:

Server2:

I'd like to know the status of nfsd on prometheus (if possible, without the need of installing docker on server2)

Regards,

Astin

LE: ElasticSearch can be used as a source also (not mandatory Prometheus)


Solution

  • You can use node_exporter. It exports nfs and nfsd metrics:

    nfs Exposes NFS client statistics from /proc/net/rpc/nfs. This is the same information as nfsstat -c.   Linux
    nfsd Exposes NFS kernel server statistics from /proc/net/rpc/nfsd. This is the same information as nfsstat -s.  Linux