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
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,15 +7,15 @@ and use the [OTLP exporter](#otlp) (best practice),
7
7
and [push Prometheus to the metrics endpoint directly](#push-metrics-directly) (for development or testing purposes),
8
8
- or you can use the Prometheus exporter, a `MetricReader` that starts an HTTP server that collects metrics and serialize to Prometheus text format on request.
9
9
10
-
### Backend Setup {#prometheus-setup}
10
+
### Backend setup {#prometheus-setup}
11
11
12
-
-For [OTLP Exporter](#otlp-dependencies) or [Prometheus exporter](#prometheus-dependencies):
12
+
For [OTLP Exporter](#otlp-dependencies) or [Prometheus exporter](#prometheus-dependencies):
13
13
14
14
To run a Prometheus server backend and begin scraping metrics, see the [Prometheus getting started guide](https://prometheus.io/docs/prometheus/latest/getting_started/). To enable the OTLP Receiver, see the [Prometheus guide for enabling the OTLP Receiver](https://prometheus.io/docs/guides/opentelemetry/#enable-the-otlp-receiver).
15
15
16
-
-For pushing to a metrics endpoint directly:
16
+
For pushing to a metrics endpoint directly:
17
17
18
-
Follow this [guide for prometheus.yml configuration in this Prometheus guide](https://prometheus.io/docs/guides/opentelemetry/#configuring-prometheus).
18
+
Follow the [example prometheus.yml configuration in this Prometheus guide](https://prometheus.io/docs/guides/opentelemetry/#configuring-prometheus).
19
19
20
20
Once you have Prometheus set up, you can set up the OTLP Exporter, Prometheus exporter, or push to a metrics endpoint directly.
The above assumes that the `uuidgen` command is available on your system. Make sure that `service.instance.id` is unique for each instance, and that a new `service.instance.id` is generated whenever a resource attribute changes. The [recommended way](https://github.com/open-telemetry/semantic-conventions/tree/main/docs/resource) is to generate a new UUID on each startup of an instance.
62
62
63
63
#### Step 2: Configuring Telemetry
64
-
Update your OpenTelemetry Configuration to use the same `exporter` and `reader` from the [OTLP](#otlp-dependencies) setup. If the environment variables are set up and loaded correctly, the OpenTelemetry SDK will read them automatically.
64
+
Update your OpenTelemetry Configuration to use the same `exporter` and `reader` from the [OTLP](#otlp-dependencies) setup. If the environment variables are set up and loaded correctly, the OpenTelemetry SDK reads them automatically.
0 commit comments