LogicMonitor API
- 8 years ago
Hi Luis -
EBS volume size is provided as a LogicMonitor property if you've added your EBS volumes as cloud devices (by adding your AWS account into LM). So to get size, you'll need to query the EBS device properties: https://www.logicmonitor.com/support/rest-api-developers-guide/devices/get-device-properties/
EBS volume space metrics aren't reported by CloudWatch, and typically can only be retrieved as OS level metrics for the EC2 instance the EBS volume is attached to. If you've installed a Collector in your AWS environment and have added EC2 instances as regular LogicMonitor devices, the Disk Usage DataSource will automatically apply and enable you to see volume usage (assuming SNMP is running and the snmp.community property is set for the EC2 device in LM). You can also see size metrics & percent usage with the Disk Usage DataSource. You can get all of these usage metrics via the data resource: https://www.logicmonitor.com/support/rest-api-developers-guide/data/get-data/
Thanks,
Sarah