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:
|
||||
|
||||
@@ -17,7 +17,7 @@ ELK (Elasticsearch,Logstash,Kibana) 是目前业界最流行的开源日志
|
||||
|
||||
#### 1. 编写 Compose 文件
|
||||
|
||||
1. 编写 `compose.yaml` (或 `docker-compose.yml`) 配置如下(示例基于 Elasticsearch 9.x,请查阅 [Elastic 官方文档](https://www.elastic.co/docs/) 确认最新版本与配置兼容性):
|
||||
1. 编写 `compose.yaml` (或 `docker-compose.yml`) 配置如下。**版本提示**:本示例使用 Elasticsearch 9.x、Kibana 9.x、Fluentd 等组件的特定版本号,仅作为参考。生产环境部署前,请查阅 [Elastic 官方文档](https://www.elastic.co/docs/) 和 [Fluentd 官方文档](https://docs.fluentd.org/) 确认最新版本与配置兼容性。
|
||||
|
||||
```yaml
|
||||
services:
|
||||
|
||||
@@ -163,6 +163,9 @@ scrape_configs:
|
||||
|
||||
**完整监控栈部署:**
|
||||
|
||||
> [!TIP]
|
||||
> 以下示例中的镜像标签(如 `prom/prometheus:v3.11.0`、`prom/node-exporter:v1.11.1`、`ghcr.io/google/cadvisor:v0.56.2`、`grafana/grafana:13.0.1`)仅为参考。在生产环境部署前,请访问各项目的官方发布页或文档获取最新版本号。
|
||||
|
||||
```yaml
|
||||
services:
|
||||
prometheus:
|
||||
@@ -211,7 +214,7 @@ services:
|
||||
- monitoring
|
||||
|
||||
grafana:
|
||||
image: grafana/grafana:11.3.0
|
||||
image: grafana/grafana:13.0.1
|
||||
container_name: grafana
|
||||
ports:
|
||||
- "3000:3000"
|
||||
|
||||
Reference in New Issue
Block a user