prometheus - 如何在 Prometheus 上获取 NFS 可用磁盘空间
问题描述
我试图在普罗米修斯中获取 NFS 服务器的状态和该服务器上的可用磁盘空间。
我的配置是
服务器1:
- 码头安装
- 带有 prometheus/grafana ...等的容器
服务器2:
- nfsd 服务器
我想知道prometheus上nfsd的状态(如果可能,不需要在server2上安装docker)
问候,
阿斯汀
LE:ElasticSearch 也可以用作源(不是强制 Prometheus)
解决方案
您可以使用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
推荐阅读
- redux - Redux - 错误:操作必须是普通对象。使用自定义中间件进行异步操作。还原承诺
- php - 在引导轮播中导入 MYSQL 图像
- plsql - 通过将 Excel 文件作为输入对表格执行 DML
- ios - Swift 中的 Bagplot 实现
- angular - 角度分量上的 2 个形式
- php - 如何通过查询获取我的数据,以便创建具有与 OOP 相关的类的编辑函数?
- c# - 切换选项卡时如何防止嵌套 UserControl 中的工具栏被聚焦?
- javascript - 识别 JS 代码中的函数调用
- c# - 即使进程以 RedirectStandardInput = true 启动,监听 Console.CancelKeyPress 的子进程也会收到它
- javascript - Nightwatch JS:Browser.execute 不执行 javascript