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. Make sure that you have satisfied the prerequisites and completed the procedure in Install the Amazon Distro for OpenTelemetry (ADOT) Operator.
-
Download the
collector-config-cloudwatch.yaml
file to your computer. You can also view the fileon GitHub. curl -O https://raw.githubusercontent.com/aws-observability/aws-otel-community/master/sample-configs/operator/collector-config-cloudwatch.yaml
-
In
collector-config-cloudwatch.yaml
, replace the following with your own values:-
mode:
(for more information, see Deploy the ADOT Collectordeployment
on GitHub) -
serviceAccount:
adot-collector
-
value:
<YOUR_EKS_CLUSTER_NAME>
-
region: "
"<YOUR_AWS_REGION>
-
name:
adot-collector
-
-
Apply the YAML file to your cluster to deploy the ADOT Collector:
kubectl apply -f collector-config-cloudwatch.yaml
-
(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.