<div dir="ltr">Hi Raghunath,<div><br></div><div>I am not able to understand your use case for compute.instance.* events.</div><div><br></div><div>You are trying to catch the instance start and end events OR you want the samples related with these events?</div><div><br></div><div>Regards,</div><div>Ganpat</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 26, 2016 at 6:00 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"><font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2"> <span>Hi Ganpat/Gord</span><span><span id="m_600734381087796799yui_3_10_3_1_1477476364592_55" style="white-space:nowrap">,<br><br></span></span>C<span>allback for compute.instance.create.end events under ceilometer.compute.<wbr>notifications should be invoked for those notification events on the nova exchange using the <a href="http://notifications.info" target="_blank">notifications.info</a> topic. <br>But this is not happening,we can see events related to them and can receive events over kafka.<br><br>I can see from logs which print my debug print during the loading of notification plugin.<br>"2016-10-26 03:46:32.010 34977 INFO ceilometer.compute.<wbr>notifications.instance [req-1ad3d5c9-5eab-404d-9fbe-<wbr>f1605e93691f - - - - -] Check ComputeInstanceNotificationBas<wbr>e notification:"<br><br>Do we need to change any thing in the configuration file of ceilometer or nova to achive this.<br>It would be great help for me if this is fixed.<span class=""><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></span><span class=""><br><br><font color="#990099">-----Ganpat Agarwal <<a href="mailto:gans.developer@gmail.com" target="_blank">gans.developer@gmail.com</a>> wrote: -----</font></span><div class="m_600734381087796799iNotesHistory" style="padding-left:5px"><div style="padding-right:0px;padding-left:5px;border-left:solid black 2px"><span class="">To: "OpenStack Development Mailing List (not for usage questions)" <<a href="mailto:openstack-dev@lists.openstack.org" target="_blank">openstack-dev@lists.<wbr>openstack.org</a>><br>From: Ganpat Agarwal <<a href="mailto:gans.developer@gmail.com" target="_blank">gans.developer@gmail.com</a>><br></span>Date: 10/25/2016 09:32PM<div><div class="h5"><br>Subject: Re: [openstack-dev] [Ceilometer]: Instance creation and deletion metrics in ceilometer !<br><br><div dir="ltr">Hi Raghunath,<div><br></div><div>You can look at this file for details of meters related with compute.instance.*</div><div><br></div><div>ceilometer/meter/data/meters.<wbr>yaml<br></div><div><br></div><div>Additionally, you can look at this link for compute meters documentation</div><div><br></div><div><a href="http://docs.openstack.org/admin-guide/telemetry-measurements.html" target="_blank">http://docs.openstack.org/<wbr>admin-guide/telemetry-<wbr>measurements.html</a><br></div><div><br></div><div><br></div><div>Also, have a look at "Meters definitions" section on this link</div><div><br></div><div><a href="http://docs.openstack.org/admin-guide/telemetry-data-collection.html#meter-definitions" target="_blank">http://docs.openstack.org/<wbr>admin-guide/telemetry-data-<wbr>collection.html#meter-<wbr>definitions</a><br></div><div><br></div><div>Regards,</div><div>Ganpat</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 25, 2016 at 5:45 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"> <span>Hi Ganpat,<br><br> Are you able to see merers/samples related to compute.instance.* in ceilometer meter-list or ceilometer sample-list.<br>My application which will read info from ceilometer publisher (pipeline.yaml) and I am looking for meters realted to ceilometer.instance.*<span><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></span><br><br><font color="#990099">-----Ganpat Agarwal <<a href="mailto:gans.developer@gmail.com" target="_blank">gans.developer@gmail.com</a>> wrote: -----</font><div class="m_600734381087796799m_-8325090504862173324iNotesHistory" style="padding-left:5px"><div style="padding-right:0px;padding-left:5px;border-left:solid black 2px">To: "OpenStack Development Mailing List (not for usage questions)" <<a href="mailto:openstack-dev@lists.openstack.org" target="_blank">openstack-dev@lists.openstack<wbr>.org</a>><br>From: Ganpat Agarwal <<a href="mailto:gans.developer@gmail.com" target="_blank">gans.developer@gmail.com</a>><br>Date: 10/25/2016 05:05PM<br>Subject: Re: [openstack-dev] [Ceilometer]: Instance creation and deletion metrics in ceilometer !<div><div class="m_600734381087796799h5"><br><br><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="m_600734381087796799m_-8325090504862173324gmail-p1">nova.conf</p><p class="m_600734381087796799m_-8325090504862173324gmail-p1">instance_usage_audit = True</p><p class="m_600734381087796799m_-8325090504862173324gmail-p1">instance_usage_audit_period = hour</p><p class="m_600734381087796799m_-8325090504862173324gmail-p1">notify_on_state_change = vm_and_task_state</p><p class="m_600734381087796799m_-8325090504862173324gmail-p1"></p><p class="m_600734381087796799m_-8325090504862173324gmail-p1">notification_driver = messagingv2</p></div><div><br></div><div>Restart nova compute service</div><div><br></div><div>







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

























</p><p class="m_600734381087796799m_-8325090504862173324gmail-p1">          - kafka://kafka-broker:9092?topi<wbr>c=ceilometer</p><p class="m_600734381087796799m_-8325090504862173324gmail-p1"><br></p><p class="m_600734381087796799m_-8325090504862173324gmail-p1">service ceilometer-api restart</p><p class="m_600734381087796799m_-8325090504862173324gmail-p1">








</p><p class="m_600734381087796799m_-8325090504862173324gmail-p1">service ceilometer-agent-notification restart</p><p class="m_600734381087796799m_-8325090504862173324gmail-p1"><br></p><p class="m_600734381087796799m_-8325090504862173324gmail-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="m_600734381087796799m_-8325090504862173324gmail-p1">







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







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







</p><p class="m_600734381087796799m_-8325090504862173324gmail-p1">tail -f /var/log/ceilometer/ceilometer<wbr>-agent-notification.log</p><p class="m_600734381087796799m_-8325090504862173324gmail-p1"><br></p><p class="m_600734381087796799m_-8325090504862173324gmail-p1">Let me know if it helps.</p><p class="m_600734381087796799m_-8325090504862173324gmail-p1"><br></p><p class="m_600734381087796799m_-8325090504862173324gmail-p1">Regards,</p><p class="m_600734381087796799m_-8325090504862173324gmail-p1">Ganpat</p><p class="m_600734381087796799m_-8325090504862173324gmail-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><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_600734381087796799m_-8325090504862173324m_-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="m_600734381087796799m_-8325090504862173324h5"><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="m_600734381087796799m_-8325090504862173324HOEnZb"><div class="m_600734381087796799m_-8325090504862173324h5"><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.op<wbr>enstack.org?subject:unsubscrib<wbr>e</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi<wbr>-bin/mailman/listinfo/openstac<wbr>k-dev</a><br>
<br></blockquote></div><br></div>
<div><font face="Courier New,Courier,monospace" size="2">______________________________<wbr>______________________________<wbr>______________<br>OpenStack Development Mailing List (not for usage questions)<br>Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" target="_blank">OpenStack-dev-request@lists.op<wbr>enstack.org?subject:unsubscrib<wbr>e</a><br><a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi<wbr>-bin/mailman/listinfo/openstac<wbr>k-dev</a><br></font></div></div></div></div></div></font><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.op<wbr>enstack.org?subject:unsubscrib<wbr>e</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi<wbr>-bin/mailman/listinfo/openstac<wbr>k-dev</a><br>
<br></blockquote></div><br></div>
<div><font face="Courier New,Courier,monospace" size="2">______________________________<wbr>______________________________<wbr>______________<br>OpenStack Development Mailing List (not for usage questions)<br>Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" 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" target="_blank">http://lists.openstack.org/<wbr>cgi-bin/mailman/listinfo/<wbr>openstack-dev</a><br></font></div></div></div></div></div></font>
</font><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>