Deploy the Amazon Distro for OpenTelemetry (ADOT) Collector for X-Ray - Amazon EKS
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Deploy the Amazon Distro for OpenTelemetry (ADOT) Collector for X-Ray

You can deploy the Amazon Distro for OpenTelemetry (ADOT) Collector to send traces to X-Ray by applying a YAML configuration file. This procedure downloads an example YAML file that you can apply to your cluster. Make sure that you have satisfied the prerequisites and completed the procedure in Install the Amazon Distro for OpenTelemetry (ADOT) Operator.

  1. Download the collector-config-xray.yaml file to your computer. You can also view the file on GitHub.

    curl -O https://raw.githubusercontent.com/aws-observability/aws-otel-community/master/sample-configs/operator/collector-config-xray.yaml
  2. In collector-config-xray.yaml, replace the following with your own values:

    • mode: deployment (for more information, see Deploy the ADOT Collector on GitHub)

    • serviceAccount: adot-collector

    • region: "<YOUR_AWS_REGION>"

  3. Apply the YAML file to your cluster to deploy the ADOT Collector:

    kubectl apply -f collector-config-xray.yaml
  4. (Optional) Verify trace data is being sent to X-Ray by opening the X-Ray console and select Traces from the left menu. Your trace data should be present.