<div dir="ltr"><div>Hello.</div><div><br></div><div style>The task I'm trying to implement is gather provisioning metrics from OpenStack VMs using Ceilometer. Precisely, I need to provide time of execution for the provisioning tasks <i>scheduling, </i><i>spawning, networking </i>via Ceilometer.</div>

<div style><br></div><div style>After reading Ceilometer and Nova documentation I figured out that Nova could already provide the needed events with the following configuration:</div><div style><br></div><div style><font face="courier new, monospace">notification_driver = nova.openstack.common.notifier.rabbit_notifier,ceilometer.compute.nova_notifier<br>

</font></div><div style><div><font face="courier new, monospace">notify_on_state_change = vm_and_task_state </font></div><div><br></div><div style>This should make Nova generate corresponding events with <span style="font-family:'courier new',monospace">compute.instance.update </span><font face="arial, helvetica, sans-serif">event type. So I guess there is no need to implement pollster plugin in this case, but listener plugin still needs to be implemented. From what I understand, it should be implemented in </font><font face="courier new, monospace">ceilometer/compute/notifications.py </font><font face="arial, helvetica, sans-serif">to process events that Nova sends to RabbitMQ. I've tried to do so </font><span style="font-family:arial,helvetica,sans-serif">similarly to already existing plugins in </span><span style="font-family:arial,helvetica,sans-serif"> </span><span style="font-family:'courier new',monospace">notifications.py </span><font face="arial, helvetica, sans-serif">and added it as an entry point in </font><font face="courier new, monospace">setup.cfg </font><font face="arial, helvetica, sans-serif">(</font><font face="courier new, monospace">ceilometer.collector </font><span style="font-family:arial,helvetica,sans-serif">section</span><span style="font-family:arial,helvetica,sans-serif">) but couldn't see any changes after reinstalling and restarting Ceilometer services.</span></div>

<div style><span style="font-family:arial,helvetica,sans-serif"><br></span></div><div style><span style="font-family:arial,helvetica,sans-serif">Could you please help on how the listener plugin is supposed to be created? There are good chances I have some misunderstandings in the concept of Ceilometer plugins.</span></div>

<div style><span style="font-family:arial,helvetica,sans-serif"><br></span></div><div style><span style="font-family:arial,helvetica,sans-serif">Thank you!</span></div></div><div><br></div>-- <br><div>Sincerely, Ruslan Kiianchuk.</div>


</div>