You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
I do this in the OnNodeConfigured custom action script for the compute nodes
Install/Update the CloudWatch agent yum install amazon-cloudwatch-agent -y
Configure a file to collect metrics for the memory (and other things) putting it in /root/cwagent_mem_config.json for example
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",
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?
The text was updated successfully, but these errors were encountered: