首页 > 解决方案 > 如何在 Prometheus 上获取 NFS 可用磁盘空间

问题描述

我试图在普罗米修斯中获取 NFS 服务器的状态和该服务器上的可用磁盘空间。

我的配置是

服务器1:

服务器2:

我想知道prometheus上nfsd的状态(如果可能,不需要在server2上安装docker)

问候,

阿斯汀

LE:ElasticSearch 也可以用作源(不是强制 Prometheus)

标签: prometheusnfsexporter

解决方案


您可以使用node_exporter。它导出 nfs 和 nfsd 指标:

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

推荐阅读