{
"agent": {
"run_as_user": "root"
},
"metrics": {
"disk": {
"measurement": [
"used_percent"
],
"metrics_collection_interval": 60,
"resources": [
"/media/mysql-data","/","/tmp", "/usr", "/media"
]
}
}
}
}
I haven't found any examples of folks including a specific path in the resources section of a amazon-cloudwatch-agent/bin/config.json file to monitor the disk_used_percent. When I specify only one specific path, like /media/mysql-data and put files in it, or if I make /media/mysql-data be a file, no disk_used_percent metrics appear in CloudWatch. The only one that appears is /.
I'm trying to convert our use of the old monitoring scripts to the CloudWatch Agent configuration file, in particular, the options --disk-space-util --disk-path=/media/mysql-data
The documentation for that option says:
--disk-path=PATHSelects the disk on which to report.
PATHcan specify a mount point or any file located on a mount point for the filesystem that needs to be reported. For selecting multiple disks, specify a --disk-path=PATHfor each one of them.
To select a disk for the filesystems mounted on
/and/home, use the following parameters:
--disk-path=/ --disk-path=/home
