1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 12:46:18 +01:00
Files
openshift-docs/modules/otel-receivers-otlp-receiver.adoc

46 lines
1.8 KiB
Plaintext

// Module included in the following assemblies:
//
// * observability/otel/otel-collector/otel-collector-receivers.adoc
:_mod-docs-content-type: REFERENCE
[id="otel-receivers-otlp-receiver_{context}"]
= OTLP Receiver
[role="_abstract"]
The OTLP Receiver ingests traces, metrics, and logs by using the OpenTelemetry Protocol (OTLP).
.OpenTelemetry Collector custom resource with an enabled OTLP Receiver
[source,yaml]
----
# ...
config:
receivers:
otlp:
protocols:
grpc:
endpoint: 0.0.0.0:4317 # <1>
tls: # <2>
ca_file: ca.pem
cert_file: cert.pem
key_file: key.pem
client_ca_file: client.pem # <3>
reload_interval: 1h # <4>
http:
endpoint: 0.0.0.0:4318 # <5>
tls: {} # <6>
service:
pipelines:
traces:
receivers: [otlp]
metrics:
receivers: [otlp]
# ...
----
<1> The OTLP gRPC endpoint. If omitted, the default `+0.0.0.0:4317+` is used.
<2> The server-side TLS configuration. Defines paths to TLS certificates. If omitted, the TLS is disabled.
<3> The path to the TLS certificate at which the server verifies a client certificate. This sets the value of `ClientCAs` and `ClientAuth` to `RequireAndVerifyClientCert` in the `TLSConfig`. For more information, see the link:https://godoc.org/crypto/tls#Config[`Config` of the Golang TLS package].
<4> Specifies the time interval at which the certificate is reloaded. If the value is not set, the certificate is never reloaded. The `reload_interval` field accepts a string containing valid units of time such as `ns`, `us`, `ms`, `s`, `m`, `h`.
<5> The OTLP HTTP endpoint. The default value is `+0.0.0.0:4318+`.
<6> The server-side TLS configuration. For more information, see the `grpc` protocol configuration section.