Skip to content

Commit 03350f6

Browse files
Update content/guides/go-prometheus-monitoring/compose.md
Co-authored-by: Craig Osterhout <[email protected]>
1 parent 79031a1 commit 03350f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/guides/go-prometheus-monitoring/compose.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ The Docker Compose file consists of three services:
9090
```
9191
In the `prometheus.yml` file, we have defined a job named `myapp` to scrape the metrics from the Golang application. The `targets` field specifies the target to scrape the metrics from. In this case, the target is the Golang application running on port `8000`. The `api` is the service name of the Golang application in the Docker Compose file. The Prometheus server will scrape the metrics from the Golang application every 10 seconds.
9292

93-
3. **Grafana service**: This service runs the Grafana server in a container. It uses the official Grafana image `grafana/grafana:11.3.0`. It exposes the Grafana server on port `3000` and connects to the `go-network` network. We have also mounted the `grafana.yml` file from the `Docker` directory which is present in the root directory of our project. The `grafana.yml` file contains the Grafana configuration to add the Prometheus data source. This is how we connect the Grafana server to the Prometheus server. In environment variables, we have set the Grafana admin user and password, which will be used to log in to the Grafana dashboard.
93+
- **Grafana service**: This service runs the Grafana server in a container. It uses the official Grafana image `grafana/grafana:11.3.0`. It exposes the Grafana server on port `3000` and connects to the `go-network` network. You have also mounted the `grafana.yml` file from the `Docker` directory which is present in the root directory of your project. The `grafana.yml` file contains the Grafana configuration to add the Prometheus data source. This is how you connect the Grafana server to the Prometheus server. In the environment variables, you have set the Grafana admin user and password, which will be used to log in to the Grafana dashboard.
9494

9595
```yaml
9696
apiVersion: 1

0 commit comments

Comments
 (0)