Skip to content

feat: add an optional CloudWatch exporter for RDS metrics - #107

Merged
jtslear merged 1 commit into
mainfrom
skarbek/cloudwatch-exporter-rds
Nov 24, 2026
Merged

jtslear merged 1 commit into
mainfrom
skarbek/cloudwatch-exporter-rds

Conversation

@jtslear

@jtslear jtslear commented Nov 13, 2026 •

Copy link
Copy Markdown
Collaborator

Adds the prometheus-community yet-another-cloudwatch-exporter chart (0.50.x, YACE v0.68.0) as an optional subchart aliased cloudwatch-exporter. It is off by default, so rendered output is unchanged unless cloudwatch-exporter.enabled=true.

It ships an AWS/RDS discovery job (60s period) for CPU, connections, freeable memory, free storage, read/write latency, disk queue depth, replica lag and burst balance, exposed as aws_rds_<metric>_average. Instances are discovered by type rather than hard-coded, and Prometheus finds the exporter through the same prometheus.io/scrape pod annotation as everything else.

AWS access is left to the cluster. Either annotate the service account for IRSA (cloudwatch-exporter.serviceAccount.annotations) or associate the cloudwatch-exporter service account with an IAM role through EKS Pod Identity. The role needs cloudwatch:GetMetricData, cloudwatch:GetMetricStatistics, cloudwatch:ListMetrics and tag:GetResources, none of which support resource-level scoping. The region defaults to us-east-1 in sts-region and the job's regions; overriding config replaces the whole block.

Checked: the bundled config passes yace verify-config, the chart lints and renders with the exporter on, and it was run against a real RDS instance in an EKS Auto sandbox where the aws_rds_* series appeared with the names above.

This should let https://github.com/coder/dogfood/pull/770 be closed, since the same exporter, job and service account name are available from this chart. A follow-up PR adds jobs for load balancers, NAT gateways and EBS.

🤖 Generated with Claude Code

Comment thread coder-observability/Chart.yaml Resolved
Add the prometheus-community yet-another-cloudwatch-exporter chart as
an optional subchart (`cloudwatch-exporter.enabled`, off by default)
with an AWS/RDS discovery job. It exposes CloudWatch metrics such as
CPU, connections, memory, storage, latency and disk queue depth as
`aws_rds_*` series, scraped through the usual prometheus.io/scrape
pod annotation.

AWS access is left to the cluster: annotate the service account for
IRSA, or associate the `cloudwatch-exporter` service account with an
IAM role through EKS Pod Identity.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@jtslear
jtslear force-pushed the skarbek/cloudwatch-exporter-rds branch from 8c6ecdc to c650f13 Compare November 24, 2026 15:27
@jtslear
jtslear merged commit a466f04 into main Nov 24, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants