-
Notifications
You must be signed in to change notification settings - Fork 38
CloudStack
In order to start using CloudStack collector, please follow these steps.
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.
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
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.