Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: mem_used_percent metric for compute nodes #6348

Open
Waqiah opened this issue Jul 11, 2024 · 1 comment
Open

Feature Request: mem_used_percent metric for compute nodes #6348

Waqiah opened this issue Jul 11, 2024 · 1 comment

Comments

@Waqiah
Copy link

Waqiah commented Jul 11, 2024

Currently the mem_used_percent metric is available for the head node only on the dashboard as explained here:
https://docs.aws.amazon.com/parallelcluster/latest/ug/cloudwatch-alarms-v3.html

Looking to collect the mem_used_percent metric (using boto3 library) from AWS parallel cluster compute nodes. Is there a workaround to achieve this in the meantime, would configuring a CloudWatch Agent to collect the metric from the compute nodes work?

@joehellmersNOAA
Copy link

I do this in the OnNodeConfigured custom action script for the compute nodes

  1. Install/Update the CloudWatch agent yum install amazon-cloudwatch-agent -y
  2. Configure a file to collect metrics for the memory (and other things) putting it in /root/cwagent_mem_config.json for example
  3. Update the CloudWatch for this configuration: amazon-cloudwatch-agent-ctl -a fetch-config -m ec2 -c file:/root/cwagent_mem_config.json -s

In the configuration file I change the namespace to be associated with the stack name I'm using for the cluster since I often will have multiple clusters in the same AWS account.
"metrics": { "namespace": "STACK_NAME-compute",

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

No branches or pull requests

2 participants