Skip to content

Latest commit

 

History

History
34 lines (24 loc) · 988 Bytes

container-insight-install-aoc.md

File metadata and controls

34 lines (24 loc) · 988 Bytes

Overview

This document describes how to install aws-otel-collector into your existing EKS cluster.

Prerequisites

Install aws-otel-collector

  1. 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>
  1. 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.
cat otel-container-insights-prometheus.yaml |
sed "s/{{region}}/$AWS_REGION/g" | 
sed "s/{{cluster_name}}/$CLUSTER_NAME/g" |
kubectl apply -f - 
  1. View the resources in the aws-otel-eks namespace.
kubectl get all -n aws-otel-eks