Excerpt |
---|
Abiquo supports collectd with an integration in the multi-cloud platform to enable you to easily work with custom VM monitoring and metrics in public cloud providers, including Amazon, Azure, and Google Cloud, as well as VMware vCenter. In the Abiquo multi-cloud platform you can create alerts and automation based on your custom metrics. After you configure collectd and the Abiquo collectd plugin, the plugin will automatically push the values from collectd to the Abiquo API using the Abiquo API endpoints for collectd. |
...
In Abiquo, create an OAuth application in Abiquo for collectd. See Add an application for OAuth
Assign the privilege to “Allow user to push own metrics”
Install collectd on your VM
Install the Abiquo collectd plugin (from source or using the Abiquo Chef cookbook).
Configure the Abiquo API path to push the metrics to the VM in Abiquo. Check the correct format of the API path in the API documentation
Configure your metrics in collectd
...
Edit your VM and go to Monitoring
Select Fetch metrics data.
Optionally select the monitoring level on providers that support it, e.g. AWS
Select the metrics to display from the custom metrics and the built-in metrics of the cloud provider or hypervisor
Save your changes to the VM. Optionally define a scaling group to increase the number of VMs running your application automatic scaling actions. See Define a scaling group
If your VM is not running, deploy to launch the VM. Wait several minutes for the server to return metrics
On the VM icon near the top right corner, click the metrics symbol. Or in the Virtual appliance, go to Monitoring → Virtual machines
Configure the metrics to display the required statistic, frequency, dimensions, and so on.
Create alarms to set metric thresholds and alerts on groups of alarms, to notify or respond to changing application conditions with automation using action plans. See Cloud VM automation guide
...
Automate the install of collectd using Chef
...
In Abiquo, the administrator creates an OAuth application in Abiquo for collectd. See Add an application for OAuth
Assign the privilege to “Allow user to push own metrics”
On the Chef server, the administrator creates a role with the following:
The monitoring recipes to install the Abiquo collectd plugin
The OAuth tokens for the application configured
In Abiquo, users edit the VM and go to Chef, then select the appropriate collectd role.
...
Collectd website: http://collectd.org/
Abiquo-collectd plugin: https://github.com/abiquo/collectd-abiquo
Abiquo Chef cookbook for the collectd plugin: https://github.com/abiquo/collectd-abiquo-cookbook
Abiquo API documentation of VM resource: VirtualMachinesResource
Push collected data to a VM: https://wiki.abiquo.com/api/latest/VirtualMachinesResource.html#push-collectd-values-on-a-virtual-machine
Example collectd metrics push: POST_cld_vdcs_X_vapps_X_vms_X_collectd_CT_app_j
API how to for working with metrics: How to enable VM monitoring and metrics via API
...