Skip to content

Commit 4cbd8b6

Browse files
iblancasamax-cx
authored andcommitted
OBSDOCS-1272/TRACING-4573: add documentation for Prometheus Remote Write Exporter
1 parent 3d4704a commit 4cbd8b6

File tree

5 files changed

+66
-0
lines changed

5 files changed

+66
-0
lines changed

observability/otel/otel-collector/otel-collector-connectors.adoc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,3 +119,8 @@ include::snippets/technology-preview.adoc[]
119119
# ...
120120
----
121121
<1> Defines the flush interval of the generated metrics. Defaults to `15s`.
122+
123+
[role="_additional-resources"]
124+
[id="additional-resources_otel-collector-connectors_{context}"]
125+
== Additional resources
126+
* link:https://opentelemetry.io/docs/specs/otlp/[OpenTelemetry Protocol (OTLP) documentation]

observability/otel/otel-collector/otel-collector-exporters.adoc

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,48 @@ include::snippets/technology-preview.adoc[]
189189
<8> Defines how long metrics are exposed without updates. The default is `5m`.
190190
<9> Adds the metrics types and units suffixes. Must be disabled if the monitor tab in Jaeger console is enabled. The default is `true`.
191191

192+
[id="prometheus-remote-write-exporter_{context}"]
193+
== Prometheus Remote Write Exporter
194+
195+
The Prometheus Remote Write Exporter exports metrics to compatible back ends.
196+
197+
:FeatureName: The Prometheus Remote Write Exporter
198+
include::snippets/technology-preview.adoc[]
199+
200+
.OpenTelemetry Collector custom resource with an enabled Prometheus Remote Write Exporter
201+
[source,yaml]
202+
----
203+
# ...
204+
config: |
205+
exporters:
206+
prometheusremotewrite:
207+
endpoint: "https://my-prometheus:7900/api/v1/push" # <1>
208+
tls: # <2>
209+
ca_file: ca.pem
210+
cert_file: cert.pem
211+
key_file: key.pem
212+
target_info: true # <3>
213+
export_created_metric: true # <4>
214+
max_batch_size_bytes: 3000000 # <5>
215+
service:
216+
pipelines:
217+
metrics:
218+
exporters: [prometheusremotewrite]
219+
# ...
220+
----
221+
<1> Endpoint for sending the metrics.
222+
<2> Server-side TLS configuration. Defines paths to TLS certificates.
223+
<3> When set to `true`, creates a `target_info` metric for each resource metric.
224+
<4> When set to `true`, exports a `_created` metric for the Summary, Histogram, and Monotonic Sum metric points.
225+
<5> Maximum size of the batch of samples that is sent to the remote write endpoint. Exceeding this value results in batch splitting. The default value is `3000000`, which is approximately 2.861 megabytes.
226+
227+
[WARNING]
228+
====
229+
* This exporter drops non-cumulative monotonic, histogram, and summary OTLP metrics.
230+
231+
* You must enable the `--web.enable-remote-write-receiver` feature flag on the remote Prometheus instance. Without it, pushing the metrics to the instance using this exporter fails.
232+
====
233+
192234
[id="kafka-exporter_{context}"]
193235
== Kafka Exporter
194236

@@ -230,3 +272,8 @@ include::snippets/technology-preview.adoc[]
230272
<5> The client-side TLS configuration. Defines paths to the TLS certificates. If omitted, TLS authentication is disabled.
231273
<6> Disables verifying the server's certificate chain and host name. The default is `+false+`.
232274
<7> ServerName indicates the name of the server requested by the client to support virtual hosting.
275+
276+
[role="_additional-resources"]
277+
[id="additional-resources_otel-collector-exporters_{context}"]
278+
== Additional resources
279+
* link:https://opentelemetry.io/docs/specs/otlp/[OpenTelemetry Protocol (OTLP) documentation]

observability/otel/otel-collector/otel-collector-extensions.adoc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -458,3 +458,8 @@ include::snippets/technology-preview.adoc[]
458458
----
459459

460460
<1> Specifies the HTTP endpoint that serves zPages. Use `localhost:` to make it available only locally, or `":"` to make it available on all network interfaces. The default is `localhost:55679`.
461+
462+
[role="_additional-resources"]
463+
[id="additional-resources_otel-collector-extensions_{context}"]
464+
== Additional resources
465+
* link:https://opentelemetry.io/docs/specs/otlp/[OpenTelemetry Protocol (OTLP) documentation]

observability/otel/otel-collector/otel-collector-processors.adoc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -558,3 +558,7 @@ config: |
558558
|Returns errors up the pipeline and drops the payload. Implicit default.
559559

560560
|===
561+
[role="_additional-resources"]
562+
[id="additional-resources_otel-collector-processors_{context}"]
563+
== Additional resources
564+
* link:https://opentelemetry.io/docs/specs/otlp/[OpenTelemetry Protocol (OTLP) documentation]

observability/otel/otel-collector/otel-collector-receivers.adoc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -823,3 +823,8 @@ rules:
823823
----
824824
<1> The service account of the Collector that has the required ClusterRole `otel-collector` RBAC.
825825
<2> The list of namespaces to collect events from. The default value is empty, which means that all namespaces are collected.
826+
827+
[role="_additional-resources"]
828+
[id="additional-resources_otel-collector-receivers_{context}"]
829+
== Additional resources
830+
* link:https://opentelemetry.io/docs/specs/otlp/[OpenTelemetry Protocol (OTLP) documentation]

0 commit comments

Comments
 (0)