h1. Fluent::Plugin::CloudStack Fluentd input plugin to get usages and events from CloudStack API. * usages ** instance_usage ** memory_usage ** root_volume_usage ** data_volume_usage ** usages_per_service_offering ** usages_per_disk_offering * event h2. Installation Add this line to your application's Gemfile:
gem 'fluent-plugin-cloudstack'Or install it yourself as:
$ gem install fluent-plugin-cloudstackOr use td-agent : (on Ubuntu12.04)
$ sudo /usr/lib/fluent/ruby/bin/fluent-gem install fluent-plugin-cloudstackh2. Configuration
h2. Data Example
20130507T041336+0000 cloudstack.event {"id":"xxxxxxx-4e64-4fa5-8045-5ecffb7e2417", "username":"clnxxxxxxxxx", "type":"USER.LOGIN", "level":"INFO", "description":"user has logged in from IP Address xxx.xxx.xxx.xxx", "account":"clnxxxxxxx", "domainid":"xxxxxxxx-dcc3-486b-90e8-02c514c93d1f", "domain":"cln10000004", "created":"2013-05-07T13:13:36+0900", "state":"Completed", "parentid":"0"} 20131027T202108+0000 cloudstack.usages.vm_usage 1 20131027T202108+0000 cloudstack.usages.memory_usage 512 20131027T202108+0000 cloudstack.usages.cpu_usage 1 20131027T202108+0000 cloudstack.usages.root_volume_usage 16106127360 20131027T202108+0000 cloudstack.usages.data_volume_usage 42949672960 20131027T202108+0000 cloudstack.usages.usages_per_service_offering.t1.micro 1 20131027T202108+0000 cloudstack.usages.usages_per_disk_offering.Datadisk_40GB 1