# docker-prometheus **Repository Path**: lauare/docker-prometheus ## Basic Information - **Project Name**: docker-prometheus - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-07-02 - **Last Updated**: 2026-01-28 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## 前置条件 1. 确保已安装 Docker 及 Docker Compose([官方安装指南](https://docs.docker.com/engine/install/)) 2. 开放防火墙端口:`9090, 9093, 3000, 9100, 8080` 3. 建议使用 2核CPU/4GB内存 及以上配置的服务器 ```bash # 验证环境 docker --version && docker-compose --version ``` ## 快速部署流程 获取配置仓库 ```bash # 使用国内镜像源加速下载 sudo mkdir -p /opt/monitoring && cd /opt/monitoring git clone https://gitee.com/lauare/docker-prometheus.git --depth 1 cd docker-prometheus # 创建必要目录(确保配置文件挂载) mkdir -p {prometheus,alertmanager,grafana/provisioning} ``` 启动监控服务 ```bash # 后台启动所有容器 docker-compose up -d # 查看实时日志 docker-compose logs -f --tail=50 ``` ## 服务访问地址 | 服务 | 访问地址 | 默认认证 | 监控对象 | | :------------ | :----------------------------- | :----------------- | :----------- | | Prometheus | http://<服务器IP>:9090 | 无 | 指标收集存储 | | Alertmanager | http://<服务器IP>:9093 | 需配置(参见备注) | 告警管理 | | Grafana | http://<服务器IP>:3000 | admin/password | 数据可视化 | | Node Exporter | http://<服务器IP>:9100/metrics | 无 | 主机指标 | | cAdvisor | http://<服务器IP>:8080 | 无 | 容器指标 |