elastic-ci-stack-for-aws icon indicating copy to clipboard operation
elastic-ci-stack-for-aws copied to clipboard

Custom metric for agent's free memory

Open jeznag opened this issue 5 years ago • 4 comments

Would be useful to expose free memory as per https://github.com/buildkite/agent/issues/133

The concern there seemed to be that the buildkite agent should be platform independent. The Elastic CI stack is not platform independent and therefore would be great to provide free RAM metrics via cloudwatch.

I'm currently trying to understand whether my build jobs are CPU constrained or memory constrained and therefore access to RAM stats would be useful.

jeznag avatar May 27 '19 07:05 jeznag

Would something like https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/mon-scripts.html on the instances help?

lox avatar Jul 22 '19 21:07 lox

That would be ideal.

jeznag avatar Jul 24 '19 11:07 jeznag

If you felt inclined to submit a PR, we'd be very receptive!

lox avatar Jul 27 '19 23:07 lox

While looking into something else I found the CloudWatch Agent can be configured to report metrics including memory. In the meantime this configuration could be added using the BootstrapScriptUrl and the agent reloaded/restarted to pick up the change.

keithduncan avatar Oct 25 '21 00:10 keithduncan