<div dir="ltr">Hi,<div><br></div><div>I am able to get event notifications on kafka by applying these configurations:</div><div><br></div><div><p class="gmail-p1">nova.conf</p><p class="gmail-p1">instance_usage_audit = True</p><p class="gmail-p1">instance_usage_audit_period = hour</p><p class="gmail-p1">notify_on_state_change = vm_and_task_state</p><p class="gmail-p1"></p><p class="gmail-p1">notification_driver = messagingv2</p></div><div><br></div><div>Restart nova compute service</div><div><br></div><div>







<p class="gmail-p1">ceilometer.conf</p>
<p class="gmail-p1">[event]</p>
<p class="gmail-p1">drop_unmatched_notifications = False</p>
<p class="gmail-p1">definitions_cfg_file = /etc/ceilometer/event_definitions.yaml</p><p class="gmail-p1"><br></p><p class="gmail-p1">event_pipeline.yaml</p><p class="gmail-p1">---</p><p class="gmail-p1">sources:</p><p class="gmail-p1">    - name: event_source</p><p class="gmail-p1">      events:</p><p class="gmail-p1">         - compute.instance.*</p><p class="gmail-p1">      sinks:</p><p class="gmail-p1">          - event_sink</p><p class="gmail-p1">sinks:</p><p class="gmail-p1">    - name: event_sink</p><p class="gmail-p1">      transformers:</p><p class="gmail-p1">      triggers:</p><p class="gmail-p1">      publishers:</p><p class="gmail-p1">          #- notifier://</p><p class="gmail-p1">          #- file:///home/stack/test?max_bytes=10000000&backup_count=5</p><p class="gmail-p1">

























</p><p class="gmail-p1">          - kafka://kafka-broker:9092?topic=ceilometer</p><p class="gmail-p1"><br></p><p class="gmail-p1">service ceilometer-api restart</p><p class="gmail-p1">








</p><p class="gmail-p1">service ceilometer-agent-notification restart</p><p class="gmail-p1"><br></p><p class="gmail-p1">Wait for couple of minutes and you should be getting the events on your kafka consumer and in ceilometer notifications logs as well</p><p class="gmail-p1">







</p><p class="gmail-p1">







</p><p class="gmail-p1">







</p><p class="gmail-p1">tail -f /var/log/ceilometer/ceilometer-agent-notification.log</p><p class="gmail-p1"><br></p><p class="gmail-p1">Let me know if it helps.</p><p class="gmail-p1"><br></p><p class="gmail-p1">Regards,</p><p class="gmail-p1">Ganpat</p><p class="gmail-p1"><br></p></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 25, 2016 at 3:02 PM, Raghunath D <span dir="ltr"><<a href="mailto:raghunath.d@tcs.com" target="_blank">raghunath.d@tcs.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2">Hi ,<br> <br>Can some one please suggest how to instance notifications in ceilometer.<span class=""><br><br><span><font size="2">With Best Regards<br>
</font><font size="2">Raghunath Dudyala<br>
</font><font size="2">Tata Consultancy Services Limited<br>
</font><font size="2">Mailto: <a href="mailto:raghunath.d@tcs.com" target="_blank">raghunath.d@tcs.com</a><br>
</font><font size="2">Website: <a href="http://www.tcs.com" target="_blank">http://www.tcs.com</a><br>
</font><font size="2">______________________________<wbr>______________<br>
</font><font size="2">Experience certainty.       IT Services<br>
</font><font size="2">                    Business Solutions<br>
</font><font size="2">                    Consulting<br>
</font><font size="2">______________________________<wbr>______________<br>
</font></span><br><br></span><font color="#990099">-----Raghunath D/HYD/TCS wrote: -----</font><div class="m_-844115505904137251iNotesHistory" style="padding-left:5px"><div style="padding-right:0px;padding-left:5px;border-left:solid black 2px">To: <a href="mailto:openstack-dev@lists.openstack.org" target="_blank">openstack-dev@lists.openstack.<wbr>org</a><br>From: Raghunath D/HYD/TCS<br>Date: 10/18/2016 08:01PM<br>Subject: [openstack-dev] [Ceilometer]: Instance creation and deletion metrics in ceilometer !<div><div class="h5"><br><br><font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2"> <span>Hi ,<br><br>How can instance created and deleted information/sample can be retrieved from ceilometer.<br>What entries should be there in pipeline.yaml  to get instance deleted information.<br><br>I tried to have meters- "instance" in pipeline.yam but it always gives active instance details,<br>and no details of deleted instances.<br><br><font size="2">With Best Regards<br>
</font><font size="2">Raghunath Dudyala<br>
</font><font size="2">Tata Consultancy Services Limited<br>
</font><font size="2">Mailto: <a href="mailto:raghunath.d@tcs.com" target="_blank">raghunath.d@tcs.com</a><br>
</font><font size="2">Website: <a href="http://www.tcs.com" target="_blank">http://www.tcs.com</a><br>
</font><font size="2">______________________________<wbr>______________<br>
</font><font size="2">Experience certainty.       IT Services<br>
</font><font size="2">                    Business Solutions<br>
</font><font size="2">                    Consulting<br>
</font><font size="2">______________________________<wbr>______________<br>
</font></span></font>
</div></div></div></div></font><div class="HOEnZb"><div class="h5"><p>=====-----=====-----=====<br>
Notice: The information contained in this e-mail<br>
message and/or attachments to it may contain <br>
confidential or privileged information. If you are <br>
not the intended recipient, any dissemination, use, <br>
review, distribution, printing or copying of the <br>
information contained in this e-mail message <br>
and/or attachments to it are strictly prohibited. If <br>
you have received this communication in error, <br>
please notify us by reply e-mail or telephone and <br>
immediately and permanently delete the message <br>
and any attachments. Thank you</p>

<p></p></div></div><br>______________________________<wbr>______________________________<wbr>______________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.<wbr>openstack.org?subject:<wbr>unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/<wbr>cgi-bin/mailman/listinfo/<wbr>openstack-dev</a><br>
<br></blockquote></div><br></div>