【问题标题】:Identical values from different mountpoints来自不同挂载点的相同值
【发布时间】:2020-09-29 12:17:42
【问题描述】:

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

【问题讨论】:

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


    【解决方案1】:

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

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-01-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-12-18
      • 2016-08-27
      相关资源
      最近更新 更多