aws-otel-collector
by Snowplow
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:
- CPU Utilization: For individual named pods + aggregate over the service
- Memory: For individual named pods + aggregate over the service
- 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
| Key | Type | Default | Description |
|---|---|---|---|
| clusterName | string | "" | Sets cluster name for log groups and kube label for prometheus metric dimensions |
| nameOverride | string | "" | Overrides the name given to the deployment (default: .Release.Name) |
| fullnameOverride | string | "" | Overrides the full-name given to the deployment resources (default: .Release.Name) |
| image.repository | string | "public.ecr.aws/aws-observability/aws-otel-collector" | Image to use for deploying |
| image.tag | string | "v0.33.1" | |
| image.pullPolicy | string | "IfNotPresent" | |
| kube_state_metrics_enabled | bool | false | Whether to collect kube-state-metrics |
| performance_log_retention_in_days | int | 30 | The retention for performance log group |
| prometheus_log_retention_in_days | int | 30 | The retention for prometheus log group |
| resources.limits.cpu | string | "" | |
| resources.limits.memory | string | "200Mi" | |
| resources.requests.cpu | string | "20m" | |
| resources.requests.memory | string | "100Mi" | |
| tolerations | list | [{"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. |
| priorityClassName | string | "" | 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. |
| nodeSelector | object | {} | Node selector for constraining the collector to specific nodes |
| affinity | object | {} | Affinity rules for the collector pods |
| serviceAccount.create | bool | true | Whether to create a service account or not |
| serviceAccount.name | string | "" | The name of the service account to create or use |
| serviceAccount.annotations | object | {} | Optional annotations to be applied to service account |
| tags | object | {} | Tags to apply to log groups |
| excludedPodPatterns | list | [] | List of regexp patterns to exclude pods from Container Insights metrics collection |
| excludedNamespacePatterns | list | [] | List of regexp patterns for namespaces to exclude from metrics collection |
| fullPodNameMetrics | bool | true | Enable 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartaws-otel-collector is pinned at v0.19.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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