Closed tehmoon closed 3 years ago
Actually, it worked when I used root
instead of cwagent
! Not so sure what's up with that, if I have more time, will investigate.
Closing this issue as it's gone stale. Please reopen if you still are having an issue.
Hi!
I'm using this project in order to monitor all of our AWS servers the same way.
We have some EKS self-managed nodes deployed and I was interested in grabbing the disk size of any EBS volumes that would be mounted on a node. It appears that cloudwatch agent does not see the volumes and thus does not export it to cloudwatch metrics. This is deploying on https://aws.amazon.com/marketplace/pp/B07M68CJS5?ref_=srh_res_product_title which is hardened amazon-linux-2 instance.
I tried to read through the code but could not understand where the logic that grabs the mount points. I ended up reading gopsutil which I suspect it is what is used here but nothing that could indicate that specific volumes are filtered.
This is an example of my configuration specific to metrics:
And it works great, I do see the % used in cloudwatch every minute. But I do not see the other mount points. Specifically:
I'm grabbing
/proc/self/mountinfo
as an example here because that's what I read in thegopsutil
project.Those mount points are done from the aws ebs daemonsets on kubernetes and are not part of the
/etc/fstab
file because they come and go.I know that I can grab the same metrics using other tools, but I chose this tool to be deployed everywhere as it works out of the box for cloudwatch.
Thank you!