cloudwatch-agent-prometheus
by Das Meta
A Helm chart to deploy CloudWatch agent with Prometheus metrics collection on Amazon EKS
About this chart
CloudWatch Agent Prometheus
Helm chart to deploy the CloudWatch agent for Prometheus metrics in Kubernetes.
Install
helm repo add dasmeta https://dasmeta.github.io/helm
helm upgrade --install my-cw-agent dasmeta/cloudwatch-agent-prometheus -f values.yaml
Public values: values.yaml. Examples: examples/cloudwatch-agent-prometheus/. From repo root: helm template test charts/cloudwatch-agent-prometheus -f examples/cloudwatch-agent-prometheus/minimal.yaml. Replace clusterName and region with your cluster/region (no literal secrets in examples).
Key values
| Key | Description | Default / Example |
|---|---|---|
clusterName | EKS/cluster name for CloudWatch | required; replace with your value |
region | AWS region | e.g. us-east-1 |
image.repository | CloudWatch agent image | amazon/cloudwatch-agent |
image.tag | Image tag | see values.yaml |
resources | CPU/memory limits and requests | example in values.yaml |
serviceAccount.create | Create service account | true |
Deploy cloudwatch-agent-prometheus with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has cloudwatch-agent-prometheus 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 chartcloudwatch-agent-prometheus is pinned at v0.2.2 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