Reduce CloudWatch costs for EC2 private workers
Hi, we run private workers in AWS (using a fork of your ec2-workerpool module). I'm noticing a pretty sizable (relatively speaking) cost when it comes to CloudWatch metrics. Specifically, the MetricMonitorUsage usage type.
The majority of that cost is coming from custom metrics; the only ones we have are in the DefaultWorkerPool namespace. I traced it back to metrics being pushed by your worker pool AMI: https://github.com/spacelift-io/spacelift-worker-image/blob/7f085d534c355229d8145ffc17a76e7e8804be4d/aws/configs/amazon-cloudwatch-agent.json
Is there any way to turn off those metrics without building our own AMIs? I don't want to disable the CloudWatch agent entirely, just the custom metrics in that config file.
- Workaround
- Not that I've figured out.
Log in to comment and vote
Comments4
Sapphire Pinwheel
Apr 21
This would be great to have as a feature to turn off and allow a more cost saving to be had on the EC2 workers. We looked into this as well during our install but the only toggle for this is “CloudWatch on/off” and we need CloudWatch for logging but don’t need the custom metrics which cost us more money.
Black Breeze
Oct 16, 2025
Would this perhaps be what you’re looking for?