来自不同安装点的相同值

时间:2020-06-10 06:54:39

标签: docker-compose prometheus prometheus-node-exporter

请帮帮我! 我有虚拟机。服务器Ubuntu 18.04,并在docker下安装node-exporter prometheus。 在服务器上,我有几个磁盘。但是在度量标准中,我从不同的磁盘看到相同的值。 请帮忙,怎么了?谢谢! df info

metrics info

docker-compose file

1 个答案:

答案 0 :(得分:1)

如果您查看Docker instructions in the node_exporter README,则会发现您缺少流程设置。添加pid: "host"。您还可以简化批量安装。

node-exporter:
  pid: "host"
  volumes:
  - /:/host:ro,rslave
  command:
  - '--path.rootfs=/host'
相关问题