Warm tip: This article is reproduced from serverfault.com, please click

其他-Prometheus节点导出器不报告非root用户拥有的安装

(其他 - Prometheus node exporter not reporting mounts that are owned by non-root)

发布于 2020-12-01 16:57:25

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

其中一些未在报告的数据中显示。尤其是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)

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

Questioner
Oggie
Viewed
0
Oggie 2020-12-04 07:32:41

原来使用ubuntu apt-get安装的prometheus-node-exporter的版本确实很旧。版本.18。现在最新的是1.0.1。安装最新的磁盘后,它开始拉出已安装的磁盘。