1.pull cAdvisor后做好端口映射,启动
2.查看cAdvisor运行情况:访问设置的ip及端口,我就映射在8080端口:47.98.138.176:8080
3.修改Promethues配置文件,添加:
scrape_configs: # 添加作业,自定义名称 - job_name: 'docker' # 静态添加 static_configs: # 指定监控实例 - targets: ['47.98.138.176:8080']
4.加载新配置文件,重启Prometheus服务端
5.Grafana添加Docker 仪表盘:ID:193