OpenStack Ceilometer: Monthly Report Usage Script

In a customer project dealing with RHEL OSP 6 I was asked to create a script to generate a CSV file on a monthly basis to collect statistics for each instance running in a project regardless if the status of an instance is active, shut off or deleted. The Python script uses Python Ceilometerclient and Python Keystoneclient.

In a first draft the customer wanted to get statistics for the following meters:

By default you wont`t get statistics for these meters. To get appropriate statistics you need to configure /etc/nova/nova.conf on all your Nova compute nodes as mentioned in this article. Furthermore you need the following packages on your controller nodes if you want to start the Python script there:

The Python script can be found on GitHub: follow me.