May 2018
Intermediate to advanced
256 pages
7h 6m
English
Consuming events from the message queue allows for a push-style integration model in the OpenStack environment. Writing and maintaining a daemon to consume events from the queue and act on them can be onerous for many organizations, though. A much simpler option is to poll the Ceilometer interface for events over the REST API. Given that Nova (as well as other services) is configured to emit notifications over the message bus, the Ceilometer service can store them and make them available for polling. To enable this functionality, set store_events to True in /etc/ceilometer/ceilometer.conf.
The following example shows how to retrieve events from Ceilometer using the Python requests library:
Read now
Unlock full access