0

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

我的配置是

服务器1:

  • 码头安装
  • 带有 prometheus/grafana ...等的容器

服务器2:

  • nfsd 服务器

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

问候,

阿斯汀

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

4

2 回答 2

1

您可以使用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
于 2020-03-09T09:12:45.517 回答
0

如果由于某种原因,您无法安装节点导出器,您可以使用volume_exporter

您可以将其添加为边车

      - name: volume-exporter
      image:  mnadeem/volume_exporter
      imagePullPolicy: "Always"
      args:
        - --volume-dir=prometheus:/prometheus
      ports:
      - name: metrics-volume
        containerPort: 9888
      volumeMounts:
      - mountPath: /prometheus
        name: prometheus-data
        readOnly: true
于 2021-01-07T16:19:20.327 回答