Ask Your Question

Can new Ceilometer plugins be loaded without reinstalling ?

asked 2014-05-18 21:03:39 -0500

FrancoisP gravatar image


The task I am working on is to measure VMs spawning time on an OpenStack system. For this, I would like Ceilometer to capture compute.instance.update events, and be able to read the timestamp associated to a state change for a specific VM.

I have read OpenStack documentation on writing Ceilometer agent plugins, and came up with the following (please take note that I am using Havana):

1) To make Nova generate compute.instance.update events, I modified nova.conf file as follows on each Compute node:

notification_driver = nova.openstack.common.notifier.rpc_notifier
notification_driver = ceilometer.compute.nova_notifier

notify_on_state_change = vm_and_task_state

2) On Controller node, I inserted plugin code in file ceilometer/compute/

Plugin inherits from class NotificationBase, and contains event_types and process_notification(self, message), as mentioned in OpenStack documentation.

I restarted services and launched VMs, but I don't see that the plugin was loaded (with ceilometer-collector with -v option). Do I absolutely have to specify the plugin in setup.cfg and reinstall Ceilometer ? Or is there a way do do this without reinstalling ? I would prefer not reinstalling if this is feasible.

I am aware that I am missing a few pieces of the puzzle, ramping up on Python and OpenStack at the same time. We are trying to promote the use of OpenStack to potential customers of our product, and benchmarking is very important to us.

Thank you !

François P.

edit retag flag offensive close merge delete


Hi François,

I am trying to create a plugin from scratch too but at the moment I come across the same problem. Have you found any solution or have you improved?


Carmelo R. gravatar imageCarmelo R. ( 2014-05-26 03:12:44 -0500 )edit


I have a similar problem here. I created a new plugin for gathering data from within a VM and I want to send the data through ceilometer-compute-agent.I added my pollster in /usr/lib/python2.6/site-packages/ceilometer/compute/pollsters/ but it does not get loaded. How can I enable the pollster?

alexandru.bujor gravatar imagealexandru.bujor ( 2014-05-30 08:25:01 -0500 )edit

2 answers

Sort by » oldest newest most voted

answered 2015-05-12 10:19:57 -0500

binou gravatar image

Hi I do have the same problem. I wold like to write a plugins taht allow ceilometer to collect data from a simple script a created but do not have any idea of how to writte the plugins.The openstack documentation is not enough for can someone help me pleaseN

edit flag offensive delete link more

answered 2014-06-21 05:28:31 -0500

Samta gravatar image


I too had the same issue as my plugins were not getting loaded (ceilometer/compute/pollsters/ I coudnt find any other way than setting up an entry point on setup.cfg file for test_plugin and execute $sudo python install. After that i restarted ceilometer services and could see that plugins were getting loaded.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2014-05-18 21:03:39 -0500

Seen: 312 times

Last updated: May 12 '15