Sending Telemetry Data to the OpenTelemetry Collector without Sidecar Injection
Instead of injecting a sidecar, you can deploy the OpenTelemetry Collector as a standalone deployment. Applications send telemetry data to the Collector service endpoint over the network. This approach allows a centralized Collector instance to receive data from multiple applications.
Prerequisites
- Alauda build of OpenTelemetry v2 Operator is installed.
- Alauda Build of Jaeger v2 is installed and deployed.
- An active ACP CLI (
kubectl) session by a cluster administrator with thecluster-adminrole. - Enable Automatic RBAC creation by following the instructions in Procedure.
Procedure
-
Deploy the OpenTelemetry Collector instance with the
deploymentmode by running the following command:- The namespace determines where the Collector resources are created.
- The exporter endpoint must point to the Jaeger collector service. Replace
<jaeger-instance-name>-collector:4317with the actual service name of your Jaeger deployment.
-
Set the environment variables in the container with your instrumented application to send telemetry data to the Collector:
Environment Variables
The following table describes the environment variables used to configure the OpenTelemetry SDK in your application: