cAdvisor+Prometheus+Grafana监控docker
1、安装grefana、prometheus服务
2、https://hub.docker.com/r/google/cadvisor/tags?page=1&ordering=last_updated
下在cadvisor镜像(用来监控docker容器的镜像)
docker pull google/cadvisor:latest
docker run \
--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=8090:8080 \
--detach=
true
\
--name=cadvisor \
google/cadvisor:latest
安装后修改prometheus,ml文件,grafana配置prometheus数据源,导入模板193
参考链接:https://www.cnblogs.com/Dev0ps/p/10546276.html