标签:node run var 配置 ati iso test vol publish
监控docker容器相关资源
部署cadvirsor插件
[root@node1 ~]docker pull google/cadvisor:latest
[root@node1 ~]docker run -d \
--volume=/:/rootfs:ro \
--volume=/var/run:/var/run:ro \
--volume=/sys:/sys:ro \
--volume=/var/lib/docker/:/var/lib/docker:ro \
--volume=/dev/disk/:/dev/disk:ro \
--publish=8080:8080 \
--detach=true \
--name=cadvisor \
google/cadvisor:latest
[root@node1 ~]# docker ps | grep cad*
65395bbcb98e google/cadvisor:latest "/usr/bin/cadvisor -…" 9 days ago Up 28 seconds 0.0.0.0:8081->8080/tcp cadvisor
在prometheus.yml中进行配置
在promenteus.yml文件当中添加
- job_name: ‘docker_node‘
static_configs:
- targets: [‘192.168.0.61:8080‘]
标签:node run var 配置 ati iso test vol publish
原文地址:https://www.cnblogs.com/heping0312/p/14647137.html