Forum Discussion

Luis_L's avatar
8 years ago

LogicMonitor API

Hi,

Just want to ask, how can we get the information on the volumes like volume size, volume available space and used space on the LogicMonitor API? I actually fetch the data source of many of our EC2 instances and EBS volume but it doesn't return the information/data regarding the volume size and space. the only data that I can get are the data from the AWS cloudwatch which monitor the performance of the disk. btw were using SNPM on our EC2 instance

Thanks,

 

Luis

  • 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

  • Sarah_Terry's avatar
    Sarah_Terry
    Icon for Product Manager rankProduct Manager

    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