Skip to content

Commit b2998f6

Browse files
Backgrounding docker otel for prometheus to run
DOC-11764
1 parent 3787461 commit b2998f6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

modules/howtos/pages/observability-metrics.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ scrape_configs:
183183
Now run `opentelemetry-collector` and Prometheus:
184184
```
185185
docker network create shared
186-
docker run --rm --name otel -v "${PWD}/otel.yaml:/etc/otel-local-config.yaml" -p 4317:4317 -p 10000:10000 --network shared otel/opentelemetry-collector --config /etc/otel-local-config.yaml
186+
docker run --rm --name otel -v "${PWD}/otel.yaml:/etc/otel-local-config.yaml" -p 4317:4317 -p 10000:10000 --network shared otel/opentelemetry-collector --config /etc/otel-local-config.yaml &
187187
docker run --rm --name prometheus -p 9090:9090 --mount type=bind,source="${PWD}/prometheus.yaml,destination=/etc/prometheus/prometheus.yml" --network shared prom/prometheus
188188
```
189189

0 commit comments

Comments
 (0)