请帮帮我!
我有虚拟机。服务器Ubuntu 18.04,并在docker下安装node-exporter prometheus。
在服务器上,我有几个磁盘。但是在度量标准中,我从不同的磁盘看到相同的值。
请帮忙,怎么了?谢谢!
答案 0 :(得分:1)
如果您查看Docker instructions in the node_exporter README,则会发现您缺少流程设置。添加pid: "host"
。您还可以简化批量安装。
node-exporter:
pid: "host"
volumes:
- /:/host:ro,rslave
command:
- '--path.rootfs=/host'