aws-otel-collector

by Snowplow

Helm chartv0.19.0App v0.51.0Verified publisher

A Helm chart to deploy aws-otel-collector project

About this chart

aws-otel-collector

A helm chart for AWS-open-telemetry-collector.

The deployment is based largely on this Kubernetes Manifest but with some specific changes to reduce the cost foot-print of the exported metrics from EKS. Focusing in on reporting only:

  1. CPU Utilization: For individual named pods + aggregate over the service
  2. Memory: For individual named pods + aggregate over the service
  3. Number of pods for a particular service

Further reading on this system:

  • https://aws.amazon.com/blogs/containers/cost-savings-by-customizing-metrics-sent-by-container-insights-in-amazon-eks/
  • https://aws-otel.github.io/docs/getting-started/container-insights/eks-infra#configure-metrics-sent-by-cloudwatch-embedded-metric-format-exporter

Installing the Chart

Add the repository to Helm:

helm repo add snowplow-devops https://snowplow-devops.github.io/helm-charts

Install or upgrading the chart with default configuration:

helm upgrade --install aws-otel-collector --namespace kube-system snowplow-devops/aws-otel-collector

Uninstalling the Chart

To uninstall/delete the aws-otel-collector release:

helm delete aws-otel-collector --namespace kube-system

Configuration

KeyTypeDefaultDescription
clusterNamestring""Sets cluster name for log groups and kube label for prometheus metric dimensions
nameOverridestring""Overrides the name given to the deployment (default: .Release.Name)
fullnameOverridestring""Overrides the full-name given to the deployment resources (default: .Release.Name)
image.repositorystring"public.ecr.aws/aws-observability/aws-otel-collector"Image to use for deploying
image.tagstring"v0.33.1"
image.pullPolicystring"IfNotPresent"
kube_state_metrics_enabledboolfalseWhether to collect kube-state-metrics
performance_log_retention_in_daysint30The retention for performance log group
prometheus_log_retention_in_daysint30The retention for prometheus log group
resources.limits.cpustring""
resources.limits.memorystring"200Mi"
resources.requests.cpustring"20m"
resources.requests.memorystring"100Mi"
tolerationslist[{"operator":"Exists"}]Tolerations for the collector pods. Defaults to tolerating all taints so the collector is scheduled onto every node in the cluster, including tainted nodes (e.g. Karpenter-provisioned nodes). Set to [] to disable and use default scheduling.
priorityClassNamestring""PriorityClass for the collector pods. A DaemonSet pod cannot move to another node, so on a full node it must be able to preempt Deployment pods to start. Empty uses the cluster's globalDefault PriorityClass.
nodeSelectorobject{}Node selector for constraining the collector to specific nodes
affinityobject{}Affinity rules for the collector pods
serviceAccount.createbooltrueWhether to create a service account or not
serviceAccount.namestring""The name of the service account to create or use
serviceAccount.annotationsobject{}Optional annotations to be applied to service account
tagsobject{}Tags to apply to log groups
excludedPodPatternslist[]List of regexp patterns to exclude pods from Container Insights metrics collection
excludedNamespacePatternslist[]List of regexp patterns for namespaces to exclude from metrics collection
fullPodNameMetricsbooltrueEnable FullPodName dimension metrics for pod CPU and memory utilization

Deploy aws-otel-collector with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has aws-otel-collector on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartaws-otel-collector is pinned at v0.19.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply