Deploy the Amazon Distro for OpenTelemetry Collector for Amazon Managed Service for Prometheus in deployment mode - 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 Amazon Managed Service for Prometheus in deployment mode

The following procedure uses an example YAML file with deployment as the mode value. This is the default mode and deploys the ADOT Collector similarly to a standalone application. This configuration receives OTLP metrics from the sample application and Amazon Managed Service for Prometheus metrics scraped from Pods on the cluster. You can change the mode to Daemonset, StatefulSet, and Sidecar depending on your deployment strategy. For a Daemonset deployment, see Advanced Collector Configuration for Amazon Managed Prometheus in the ADOT documentation or click here to download the DaemonSet example.

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-amp.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-amp.yaml
  2. In collector-config-amp.yaml, replace the following with your own values:

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

    • serviceAccount: adot-collector

    • endpoint: "<YOUR_REMOTE_WRITE_ENDPOINT>"

    • 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-amp.yaml