美文网首页
prometheus 监控主机

prometheus 监控主机

作者: shangyaqi | 来源:发表于2019-05-29 17:37 被阅读0次

运行 node_exporter ,可以用容器运行:
docker run -d
--net="host"
--pid="host"
-v "/:/host:ro,rslave"
quay.io/prometheus/node-exporter
--path.rootfs /host

二进制安装:
wget https://github.com/prometheus/node_exporter/releases/download/v/node_exporter-.-amd64.tar.gz
tar xvfz node_exporter-
.-amd64.tar.gz
cd node_exporter-
.*-amd64
./node_exporter

监控指标页面 (http://localhost:9100/metrics)
prometheus 添加配置:

scrape_configs:

  • job_name: 'node'
    static_configs:
    • targets: ['localhost:9100']

相关文章

网友评论

      本文标题:prometheus 监控主机

      本文链接:https://www.haomeiwen.com/subject/qjxutctx.html