This document describes how to install aws-otel-collector into your existing EKS cluster.
- Set up variables to export metrics of your EKS cluster to the region where the logs should be published to.
export CLUSTER_NAME=<eks-cluster-name>
export AWS_REGION=<aws-region>
- Deploy a standalone aws-otel-collector application. An example config template can be
found here.
- Replace
{{region}}
with the name of the region where the logs are published (e.g.us-west-2
). - Replace
{{cluster_name}}
with the actual eks cluster name.
- Replace
cat otel-container-insights-prometheus.yaml |
sed "s/{{region}}/$AWS_REGION/g" |
sed "s/{{cluster_name}}/$CLUSTER_NAME/g" |
kubectl apply -f -
- View the resources in the
aws-otel-eks
namespace.
kubectl get all -n aws-otel-eks