I'm trying to use the command aws cloudwatch get-metrics to obtain "DiskSpaceUtilization" but the result is empty..
"Datapoints": [],
"Label": "DiskSpaceUtilization"
I noticed that if I use
aws cloudwatch list-metrics --namespace mymetric
the metric has more than one dimensions!
"Namespace": "mymetric",
"Dimensions": [
{
"Name": "MountPath",
"Value": "/"
},
{
"Name": "InstanceId",
"Value": "i-aaaaaaa"
},
{
"Name": "Filesystem",
"Value": "/dev/xvda1"
}
],
"MetricName": "DiskSpaceUtilization"
Someone knows how can I retrieve this metric? How many dimensions I have to put in the command?
Thanks!