We use OpenStack-Ansible to set up our OpenStack cluster and Ceph’s Rados Gateway (radosgw) as object store backend. Unfortunately, the telemetry (and in consequence accounting) for radosgw will not work out of the box. You need to change different parts of your OpenStack and Ceph setup to get it up and running. This blog post will explain what to change and where to change it.
Ceilometer needs additional pip packages to talk to Ceph Rados Gateway. To install it, edit the default ceilometer_pip_packages in your user_variables.yml file:
You also have to configure Ceilometer to actually query radosgw. When your ceilometer isn’t configured to poll everything, add these pollsters to your polling.yml file:
Be aware, these names changed with the Queens release. Add them also to your pipeline:
Declare Ceph Rados Gateway as object-store in your ceilometer.conf file:
This can be done with OpenStack-Ansible’s user_variables.yml file:
The required credentials are created with these commands:
To get your credentials, execute:
That was all for the Ceilometer part, but you also need to change some configs for radosgw. The required changes are described in the documentation of Ceilometer.
These are the additions to your ceph.conf file on your radosgw servers:
After some polling, you should see radosgw metrics coming in:
I hope this helped set up your ceilometer accounting for radosgw.
More articles in this subject area
Discover exciting further topics and let the codecentric world inspire you.
Blog authors
Christian Zunker
Do you still have questions? Just send me a message.
Daniel Marks
Do you still have questions? Just send me a message.
Do you still have questions? Just send me a message.