cloudwatch-agent-prometheus

by Das Meta

Helm chartv0.2.2App 0.0.1

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

KeyDescriptionDefault / Example
clusterNameEKS/cluster name for CloudWatchrequired; replace with your value
regionAWS regione.g. us-east-1
image.repositoryCloudWatch agent imageamazon/cloudwatch-agent
image.tagImage tagsee values.yaml
resourcesCPU/memory limits and requestsexample in values.yaml
serviceAccount.createCreate service accounttrue

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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartcloudwatch-agent-prometheus is pinned at v0.2.2 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