Configuring the Target Profiling Server
For security purposes, you are advised to use the security mode and TLS authentication.
Before Starting the Trace Forwarding Process, you need to set the target profiling server through environment variables.
The following four protocols are supported:
- HTTP
export OTEL_EXPORTER_OTLP_PROTOCOL="http/protobuf" export OTEL_EXPORTER_OTLP_ENDPOINT=http://xxx:xxx/v1/traces # Configure the IP address and port number for data forwarding, for example, http://localhost:4318/v1/traces.
- HTTP + TLS
export OTEL_EXPORTER_OTLP_PROTOCOL="http/protobuf" export OTEL_EXPORTER_OTLP_ENDPOINT=https://xxx:xxx/v1/traces # Configure the IP address and port number for data forwarding, for example, https://localhost:4318/v1/traces. export OTEL_EXPORTER_OTLP_CERTIFICATE=/home/certificates/ca/ca.crt # Set the absolute path of the certificate. The directory owner, file owner, and current user match. The directory permission is 700 and the file permission is 600.
- gRPC
export OTEL_EXPORTER_OTLP_PROTOCOL="grpc" export OTEL_EXPORTER_OTLP_ENDPOINT=http://xxx:xxx # Configure the IP address and port number for data forwarding, for example, http://localhost:4317.
- gRPC + TLS
export OTEL_EXPORTER_OTLP_PROTOCOL="grpc" export OTEL_EXPORTER_OTLP_ENDPOINT=https://xxx:xxx # Configure the IP address and port number for data forwarding, for example, https://localhost:4317. export OTEL_EXPORTER_OTLP_CERTIFICATE=/home/certificates/ca/ca.crt # Set the absolute path of the certificate. The directory owner, file owner, and current user match. The directory permission is 700 and the file permission is 600.
- Currently, only one-way authentication is supported. Two-way authentication settings do not work and will disable the feature. The following parameters are unavailable:
- OTEL_EXPORTER_OTLP_TRACES_CLIENT_KEY
- OTEL_EXPORTER_OTLP_CLIENT_KEY
- OTEL_EXPORTER_OTLP_TRACES_CLIENT_CERTIFICATE
- OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE
- The tool depends on the third-party OpenTelemetry library. This document describes only the mandatory parameters used by the tool. For more APIs, see the official OpenTelemetry documentation.
Parent topic: Data Profiling