Docker搭建prometheus(普罗米修斯)的方法步骤
version: '2'
networks:
monitor:
driver: bridge
services:
prometheus:
image: prom/prometheus
container_name: prometheus
hostname: prometheus
restart: always
volumes:
- http://www.jb51.net/server/prometheus.yml:/etc/prometheus/prometheus.yml
# - http://www.jb51.net/server/node_down.yml:/usr/local/etc/node_down.yml:rw
ports:
- "9090:9090"
networks:
- monitor
alertmanager:
image: prom/alertmanager
container_name: alertmanager
hostname: alertmanager
restart: always
# volumes:
# - http://www.jb51.net/server/alertmanager.yml:/usr/local/etc/alertmanager.yml
ports:
- "9093:9093"
networks:
- monitor
grafana:
image: grafana/grafana
container_name: grafana
hostname: grafana
restart: always
ports:
- "3000:3000"
networks:
- monitor
node-exporter:
image: quay.io/prometheus/node-exporter
container_name: node-exporter
hostname: node-exporter
restart: always
ports:
- "9100:9100"
networks:
- monitor
cadvisor:
image: google/cadvisor:latest
container_name: cadvisor
hostname: cadvisor
restart: always
volumes:
- /:/rootfs:ro
- /var/run:/var/run:rw
- /sys:/sys:ro
- /var/lib/docker/:/var/lib/docker:ro
ports:
- "8899:8080"
networks:
- monitor
相关文章
- 如何免费安装注册Stardock Deskscapes?梦幻桌面安装教程
- 微软系统应用窗口美化程序 Stardock WindowBlinds 11.02 (x64) 多语言特别版
- Dockerfile中CMD和ENTRYPOINT命令详解
- Docker搭建PHP运行环境完整步骤(图文教程)
- uDock for Mac(Dock插件/系统扩展软件) v4.2 免费安装版
- docker.service启动报错的一次排查详解
- docker 中搭建php环境经验分享
- 使用Docker的NFS-Ganesha镜像搭建nfs服务器的详细过程
- 利用Dockerfile制作个人的镜像文件详细讲解
- docker容器状态出现Exit(1)的问题及解决