Skip to content

Commit 77837ac

Browse files
committed
Add redirect to Prometheus docs
1 parent 4239688 commit 77837ac

File tree

1 file changed

+2
-26
lines changed

1 file changed

+2
-26
lines changed

content/en/docs/languages/_includes/exporters/prometheus-setup.md

Lines changed: 2 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -14,30 +14,6 @@ Prometheus text format on request.
1414
> can skip this section and setup the [Prometheus](#prometheus-dependencies) or
1515
> [OTLP](#otlp-dependencies) exporter dependencies for your application.
1616
17-
You can run [Prometheus](https://prometheus.io) in a docker container,
18-
accessible on port `9090` by following these instructions:
17+
To run a Prometheus server backend and begin scraping metrics, see the [Prometheus getting started guide](https://prometheus.io/docs/prometheus/latest/getting_started/).
1918

20-
Create a file called `prometheus.yml` with the following content:
21-
22-
```yaml
23-
scrape_configs:
24-
- job_name: dice-service
25-
scrape_interval: 5s
26-
static_configs:
27-
- targets: [host.docker.internal:9464]
28-
```
29-
30-
Run Prometheus in a docker container with the UI accessible on port `9090`:
31-
32-
```shell
33-
docker run --rm -v ${PWD}/prometheus.yml:/prometheus/prometheus.yml -p 9090:9090 prom/prometheus --web.enable-otlp-receiver
34-
```
35-
36-
> [!NOTE]
37-
>
38-
> When using Prometheus' OTLP Receiver, make sure that you set the OTLP endpoint
39-
> for metrics in your application to `http://localhost:9090/api/v1/otlp`.
40-
>
41-
> Not all docker environments support `host.docker.internal`. In some cases you
42-
> may need to replace `host.docker.internal` with `localhost` or the IP address
43-
> of your machine.
19+
To enable the OTLP Receiver, see the [Prometheus guide for enabling the OTLP Receiver](https://prometheus.io/docs/guides/opentelemetry/#enable-the-otlp-receiver)

0 commit comments

Comments
 (0)