Skip to content

CloudStack

skovzhaw edited this page Jul 1, 2016 · 20 revisions

Installation

In order to start using CloudStack collector, please follow these steps.

Configuration

For CloudStack collector to function properly you will need to edit config/cloudstack.conf file and specify your CloudStack credentials, as well as RabbitMQ and Hibernate connection settings, both of which can be accessed remotely. You can also specify on which port server should be listening or what date will be used for the first import.

Even though the config/cloudstack.conf file is commented, it is still important to pay attention to:

  • CloudStackURL=https://url
  • CloudStackAPIKey=apikey
  • CloudStackSecretKey=secretkey

You can also specify what is the first day of import by providing YYYY-MM-DD date:

  • CloudStackFirstImport=2016-06-29

By default the server port is 4573, but you can change it easily:

  • ServerHTTPPort=4573

If you are running RabbitMQ and Hibernate (PostgreSQL) on the same machine as CloudStack collector, then you can left other configuration parameter untouched, as they already point to the localhost.

Bindings

Before starting CloudStack usage collection it is paramount to bind its exchanges to the RCB Cyclops queues. In order to do so simply run the following script and provide server's location and port RabbitMQ admin is listening on:

  • bash install/setup_bindings.sh localhost 15672

Logging

To have the logging system enabled you need to run the following:

  • bash install/setup_logging.sh

Then all CloudStack collector logs will be stored in /var/log/cyclops/cloudstack/ directory.

Deployment

API guide

Clone this wiki locally