You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/en/docs/languages/_includes/exporters/prometheus-setup.md
+2-26Lines changed: 2 additions & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,30 +14,6 @@ Prometheus text format on request.
14
14
> can skip this section and setup the [Prometheus](#prometheus-dependencies) or
15
15
> [OTLP](#otlp-dependencies) exporter dependencies for your application.
16
16
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/).
19
18
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