【问题标题】:Prometheus node exporter not reporting mounts that are owned by non-rootPrometheus 节点导出器未报告非 root 拥有的挂载
【发布时间】:2021-03-13 15:19:35
【问题描述】:

运行 ubuntu 20 并安装 prometheus 节点导出器。它正在工作,但它只报告根 FS 挂载。我在 /media 下还有一堆其他挂载,它们归非 root 用户所有。

其中一些未显示在报告的数据中。尤其是 node_filesystem_free_bytes 和 node_filesystem_size_bytes。

但我确实看到了一些,比如这个:

node_disk_read_bytes_total{device="sdh"} 4.5708288e+07

这是安装细节:

root@my-server:/dev# ls -l /media
total 44
drwxr-xr-x  25 gmo  gmo  4096 Nov 13 14:06 raid5
drwxr-xr-x  18 gmo  gmo  4096 Oct  5 08:48 raid5-2
root@my-server:/dev# mount |grep raid
/dev/sdh1 on /media/raid5-2 type ext4 (rw,nosuid,nodev,noexec,relatime,user)
/dev/sdf1 on /media/raid5 type ext4 (rw,nosuid,nodev,relatime,user)

知道为什么它们会被忽略吗?

【问题讨论】:

    标签: prometheus prometheus-node-exporter


    【解决方案1】:

    原来你用 ubuntu apt-get 安装的 prometheus-node-exporter 的版本真的很旧。 0.18 版。现在最新的是 1.0.1。在我安装了最新版本后,它开始拉取已安装的磁盘。

    【讨论】:

    • 谢谢!节省了我很多时间!
    猜你喜欢
    • 1970-01-01
    • 2019-11-19
    • 2021-05-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-08-30
    • 1970-01-01
    相关资源
    最近更新 更多