Deploy the Amazon Distro for OpenTelemetry Collector for CloudWatch - 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 Collector for CloudWatch

The Amazon Distro for OpenTelemetry (ADOT) Collector can be deployed to receive OTLP metrics for export to Amazon CloudWatch. This procedure downloads an example YAML file that you can apply to your cluster.

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

    curl -O
  2. In collector-config-cloudwatch.yaml, replace the following with your own values:

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

    • serviceAccount: adot-collector

    • value: <YOUR_EKS_CLUSTER_NAME>

    • region: "<YOUR_AWS_REGION>"

    • name: adot-collector

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

    kubectl apply -f collector-config-cloudwatch.yaml
  4. (Optional) Verify the metrics data is being sent to Amazon CloudWatch by opening the Amazon CloudWatch console and open the Metrics menu on the left. Select All metrics and click the AOCDockerDemo/AOCDockerDemoService box under custom namespaces. You can view any metrics data by selecting any grouping.