docker部署cAdvisor + Prometheus + Grafana + Alertmanager
1.在Docker中部署cAdvisor如果想监控Docker容器,可以安装cAdvisor#这里因为cAdvisor启动有时候会报错,所以需要输入以下两条指令sudomount-oremount,rw'/sys/fs/cgroup'sudoln-s/sys/fs/cgroup/cpu,cpuacct/sys/fs/cgroup/cpuacct,cpudockerrun-v/:/rootfs:ro