mirror of
https://github.com/yeasy/docker_practice.git
synced 2026-08-10 16:37:34 +00:00
Update Grafana to v13, add version notes
This commit is contained in:
@@ -51,7 +51,11 @@ rule_files:
|
||||
|
||||
#### 2. 编写 Docker Compose 文件
|
||||
|
||||
创建 `compose.yaml` (或 `docker-compose.yml`)。下面示例使用的是 2026 年 4 月的稳定版本。对于生产环境部署,建议查阅 [Prometheus 官方文档](https://prometheus.io/docs/prometheus/latest/installation/) 确认最新推荐版本:
|
||||
创建 `compose.yaml` (或 `docker-compose.yml`)。下面示例使用的是相对较新的稳定版本。**镜像版本提示**:本示例中 Prometheus、Grafana、node-exporter、cAdvisor 的版本号仅为参考。生产环境部署前,请查阅以下官方资源确认最新推荐版本:
|
||||
- [Prometheus 官方文档](https://prometheus.io/docs/prometheus/latest/installation/)
|
||||
- [Grafana 官方发布](https://grafana.com/grafana/download)
|
||||
- [node-exporter 发布页](https://github.com/prometheus/node_exporter/releases)
|
||||
- [cAdvisor 发布页](https://github.com/google/cadvisor/releases)
|
||||
|
||||
```yaml
|
||||
services:
|
||||
@@ -71,7 +75,7 @@ services:
|
||||
- monitoring
|
||||
|
||||
grafana:
|
||||
image: grafana/grafana:11.3.0
|
||||
image: grafana/grafana:13.0.1
|
||||
ports:
|
||||
- "3000:3000"
|
||||
environment:
|
||||
|
||||
Reference in New Issue
Block a user