<font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2">Hi,<br><br><br><font face="Courier New,Courier,monospace" size="2">what meters are you looking for specifically? as Ganpat mentioned, we <br>only derive a few meters from Nova notifications[1]. i don't understand <br>your comment about being able to see events on kafka. by 'events' do you <br>mean Ceilometer Events[2]?<br><br>[1] <br><a href="https://github.com/openstack/ceilometer/blob/master/ceilometer/meter/data/meters.yaml#L83-L127">https://github.com/openstack/ceilometer/blob/master/ceilometer/meter/data/meters.yaml#L83-L127</a><br>[2] <a href="http://docs.openstack.org/developer/ceilometer/events.html">http://docs.openstack.org/developer/ceilometer/events.html</a><br></font><br>Yes,here I am referring  to <font face="Courier New,Courier,monospace" size="2">Events[2].</font><br><br>My requirement is to get sample/counter with "instance" name ,with event_type <b>compute.instance.*<br><br></b>For example:<br><br>{u'counter_name': u'instance', u'user_id': u'0eddb9bb412b4b2783fbdb04c7786fbd', u'message_signature': u'a575aee7540c8aac5d481fbeb6c96e8a967814c7f7d712b3b3da0a4ebccabb1d', u'timestamp': u'2016-11-01 07:34:42.994144', u'resource_id': u'1784a230-5038-46e9-9a2e-f96dabc1ea26', u'message_id': u'a7bac522-a005-11e6-abbb-52540074f46a', u'source': u'openstack', u'counter_unit': u'instance', u'counter_volume': 1, u'project_id': u'33dbef1a1442476b9c5935287df86f2c', u'resource_metadata': {u'state_description': u'', <b>u'event_type': u'compute.instance.delete.end',</b> u'availability_zone': u'nova', u'terminated_at': u'2016-11-01T07:34:42.167439', u'ephemeral_gb': 0, u'instance_type_id': 5, u'deleted_at': u'2016-11-01T07:34:42.000000', u'reservation_id': u'r-bhq970mr', u'memory_mb': 2048, u'display_name': u'mysite_exampleservice-1', u'hostname': u'mysite-exampleservice-1', u'state': u'deleted', u'progress': u'', u'launched_at': u'2016-10-31T21:54:53.000000', u'node': u'chilly-police.cord.lab', u'ramdisk_id': u'', u'access_ip_v6': None, u'disk_gb': 20, u'access_ip_v4': None, u'kernel_id': u'', u'host': u'compute.chilly-police', u'user_id': u'0eddb9bb412b4b2783fbdb04c7786fbd', u'image_ref_url': u'http://10.1.0.18:9292/images/8f2185b2-1669-46df-8a01-88b3abd88aa5', u'cell_name': u'', u'root_gb': 20, u'tenant_id': u'33dbef1a1442476b9c5935287df86f2c', u'created_at': u'2016-10-31 21:54:32+00:00', u'instance_id': u'1784a230-5038-46e9-9a2e-f96dabc1ea26', u'instance_type': u'm1.small', u'vcpus': 1, u'image_meta': {u'min_disk': u'20', u'container_format': u'bare', u'min_ram': u'0', u'disk_format': u'raw', u'base_image_ref': u'8f2185b2-1669-46df-8a01-88b3abd88aa5'}, u'architecture': None, u'os_type': None, u'instance_flavor_id': u'2'}, u'counter_type': u'gauge'}'<br><br>Now I am able to do this by  creating event_definitions.yaml ,event_pipeline.yaml as mentioned bt Ganpat and updating conf files:<br><br>1,ceilometer.conf:<br>   notification_topics = notifications<br>   [notification]<br>   store_events = True<br>   [event]<br>   drop_unmatched_notifications = False<br>   definitions_cfg_file = /etc/ceilometer/event_definitions.yaml<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: raghunath.d@tcs.com<br> </font><font size="2">Website: <a href="http://www.tcs.com">http://www.tcs.com</a><br> </font><font size="2">____________________________________________<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">____________________________________________<br> </font></span><br><br><font color="#990099">-----gordon chung <gord@live.ca> wrote: -----</font><div class="iNotesHistory" style="padding-left:5px;"><div style="padding-right:0px;padding-left:5px;border-left:solid black 2px;">To: "openstack-dev@lists.openstack.org" <openstack-dev@lists.openstack.org><br>From: gordon chung <gord@live.ca><br>Date: 10/31/2016 09:54PM<br>Subject: Re: [openstack-dev] [Ceilometer]: Instance creation and deletion metrics in ceilometer !<br><br><div><font face="Courier New,Courier,monospace" size="2">what meters are you looking for specifically? as Ganpat mentioned, we <br>only derive a few meters from Nova notifications[1]. i don't understand <br>your comment about being able to see events on kafka. by 'events' do you <br>mean Ceilometer Events[2]?<br><br>[1] <br><a href="https://github.com/openstack/ceilometer/blob/master/ceilometer/meter/data/meters.yaml#L83-L127">https://github.com/openstack/ceilometer/blob/master/ceilometer/meter/data/meters.yaml#L83-L127</a><br>[2] <a href="http://docs.openstack.org/developer/ceilometer/events.html">http://docs.openstack.org/developer/ceilometer/events.html</a><br><br><br><br>On 31/10/16 04:27 AM, Raghunath D wrote:<br>> Hi Ganpat,<br>><br>> I want the samples related with these events.<br>><br>> With Best Regards<br>> Raghunath Dudyala<br>> Tata Consultancy Services Limited<br>> Mailto: raghunath.d@tcs.com<br>> Website: <a href="http://www.tcs.com">http://www.tcs.com</a><br>> ____________________________________________<br>> Experience certainty. IT Services<br>> Business Solutions<br>> Consulting<br>> ____________________________________________<br>><br>><br>> -----Ganpat Agarwal <gans.developer@gmail.com> wrote: -----<br>> To: "OpenStack Development Mailing List (not for usage questions)"<br>> <openstack-dev@lists.openstack.org><br>> From: Ganpat Agarwal <gans.developer@gmail.com><br>> Date: 10/27/2016 12:02PM<br>> Subject: Re: [openstack-dev] [Ceilometer]: Instance creation and<br>> deletion metrics in ceilometer !<br>><br>> Hi Raghunath,<br>><br>> I am not able to understand your use case for compute.instance.* events.<br>><br>> You are trying to catch the instance start and end events OR you want<br>> the samples related with these events?<br>><br>> Regards,<br>> Ganpat<br>><br>> On Wed, Oct 26, 2016 at 6:00 PM, Raghunath D <raghunath.d@tcs.com<br>> <<a href="mailto:raghunath.d@tcs.com">mailto:raghunath.d@tcs.com</a>>> wrote:<br>><br>>     Hi Ganpat/Gord,<br>><br>>     Callback for compute.instance.create.end events under<br>>     ceilometer.compute.notifications should be invoked for those<br>>     notification events on the nova exchange using the<br>>     notifications.info <<a href="http://notifications.info">http://notifications.info</a>> topic.<br>>     But this is not happening,we can see events related to them and can<br>>     receive events over kafka.<br>><br>>     I can see from logs which print my debug print during the loading of<br>>     notification plugin.<br>>     "2016-10-26 03:46:32.010 34977 INFO<br>>     ceilometer.compute.notifications.instance<br>>     [req-1ad3d5c9-5eab-404d-9fbe-f1605e93691f - - - - -] Check<br>>     ComputeInstanceNotificationBase notification:"<br>><br>>     Do we need to change any thing in the configuration file of<br>>     ceilometer or nova to achive this.<br>>     It would be great help for me if this is fixed.<br>><br>>     With Best Regards<br>>     Raghunath Dudyala<br>>     Tata Consultancy Services Limited<br>>     Mailto: raghunath.d@tcs.com <<a href="mailto:raghunath.d@tcs.com">mailto:raghunath.d@tcs.com</a>><br>>     Website: <a href="http://www.tcs.com">http://www.tcs.com</a><br>>     ____________________________________________<br>>     Experience certainty. IT Services<br>>     Business Solutions<br>>     Consulting<br>>     ____________________________________________<br>><br>><br>>     -----Ganpat Agarwal <gans.developer@gmail.com<br>>     <<a href="mailto:gans.developer@gmail.com">mailto:gans.developer@gmail.com</a>>> wrote: -----<br>>     To: "OpenStack Development Mailing List (not for usage questions)"<br>>     <openstack-dev@lists.openstack.org<br>>     <<a href="mailto:openstack-dev@lists.openstack.org">mailto:openstack-dev@lists.openstack.org</a>>><br>>     From: Ganpat Agarwal <gans.developer@gmail.com<br>>     <<a href="mailto:gans.developer@gmail.com">mailto:gans.developer@gmail.com</a>>><br>>     Date: 10/25/2016 09:32PM<br>><br>>     Subject: Re: [openstack-dev] [Ceilometer]: Instance creation and<br>>     deletion metrics in ceilometer !<br>><br>>     Hi Raghunath,<br>><br>>     You can look at this file for details of meters related with<br>>     compute.instance.*<br>><br>>     ceilometer/meter/data/meters.yaml<br>><br>>     Additionally, you can look at this link for compute meters documentation<br>><br>>     <a href="http://docs.openstack.org/admin-guide/telemetry-measurements.html">http://docs.openstack.org/admin-guide/telemetry-measurements.html</a><br>>     <<a href="http://docs.openstack.org/admin-guide/telemetry-measurements.html">http://docs.openstack.org/admin-guide/telemetry-measurements.html</a>><br>><br>><br>>     Also, have a look at "Meters definitions" section on this link<br>><br>>     <a href="http://docs.openstack.org/admin-guide/telemetry-data-collection.html#meter-definitions">http://docs.openstack.org/admin-guide/telemetry-data-collection.html#meter-definitions</a><br>>     <<a href="http://docs.openstack.org/admin-guide/telemetry-data-collection.html#meter-definitions">http://docs.openstack.org/admin-guide/telemetry-data-collection.html#meter-definitions</a>><br>><br>>     Regards,<br>>     Ganpat<br>><br>><br>>     On Tue, Oct 25, 2016 at 5:45 PM, Raghunath D <raghunath.d@tcs.com<br>>     <<a href="mailto:raghunath.d@tcs.com">mailto:raghunath.d@tcs.com</a>>> wrote:<br>><br>>         Hi Ganpat,<br>><br>>          Are you able to see merers/samples related to<br>>         compute.instance.* in ceilometer meter-list or ceilometer<br>>         sample-list.<br>>         My application which will read info from ceilometer publisher<br>>         (pipeline.yaml) and I am looking for meters realted to<br>>         ceilometer.instance.*<br>><br>>         With Best Regards<br>>         Raghunath Dudyala<br>>         Tata Consultancy Services Limited<br>>         Mailto: raghunath.d@tcs.com <<a href="mailto:raghunath.d@tcs.com">mailto:raghunath.d@tcs.com</a>><br>>         Website: <a href="http://www.tcs.com">http://www.tcs.com</a><br>>         ____________________________________________<br>>         Experience certainty. IT Services<br>>         Business Solutions<br>>         Consulting<br>>         ____________________________________________<br>><br>><br>>         -----Ganpat Agarwal <gans.developer@gmail.com<br>>         <<a href="mailto:gans.developer@gmail.com">mailto:gans.developer@gmail.com</a>>> wrote: -----<br>>         To: "OpenStack Development Mailing List (not for usage<br>>         questions)" <openstack-dev@lists.openstack.org<br>>         <<a href="mailto:openstack-dev@lists.openstack.org">mailto:openstack-dev@lists.openstack.org</a>>><br>>         From: Ganpat Agarwal <gans.developer@gmail.com<br>>         <<a href="mailto:gans.developer@gmail.com">mailto:gans.developer@gmail.com</a>>><br>>         Date: 10/25/2016 05:05PM<br>>         Subject: Re: [openstack-dev] [Ceilometer]: Instance creation and<br>>         deletion metrics in ceilometer !<br>><br>><br>>         Hi,<br>><br>>         I am able to get event notifications on kafka by applying these<br>>         configurations:<br>><br>>         nova.conf<br>><br>>         instance_usage_audit = True<br>><br>>         instance_usage_audit_period = hour<br>><br>>         notify_on_state_change = vm_and_task_state<br>><br>>         notification_driver = messagingv2<br>><br>><br>>         Restart nova compute service<br>><br>>         ceilometer.conf<br>><br>>         [event]<br>><br>>         drop_unmatched_notifications = False<br>><br>>         definitions_cfg_file = /etc/ceilometer/event_definitions.yaml<br>><br>><br>>         event_pipeline.yaml<br>><br>>         ---<br>><br>>         sources:<br>><br>>             - name: event_source<br>><br>>               events:<br>><br>>                  - compute.instance.*<br>><br>>               sinks:<br>><br>>                   - event_sink<br>><br>>         sinks:<br>><br>>             - name: event_sink<br>><br>>               transformers:<br>><br>>               triggers:<br>><br>>               publishers:<br>><br>>                   #- notifier://<br>><br>>                   #-<br>>         <a href="file:///home/stack/test?max_bytes=10000000&backup_count=5">file:///home/stack/test?max_bytes=10000000&backup_count=5</a><br>><br>>                   - kafka://kafka-broker:9092?topic=ceilometer<br>><br>><br>>         service ceilometer-api restart<br>><br>>         service ceilometer-agent-notification restart<br>><br>><br>>         Wait for couple of minutes and you should be getting the events<br>>         on your kafka consumer and in ceilometer notifications logs as well<br>><br>>         tail -f /var/log/ceilometer/ceilometer-agent-notification.log<br>><br>><br>>         Let me know if it helps.<br>><br>><br>>         Regards,<br>><br>>         Ganpat<br>><br>><br>><br>>         On Tue, Oct 25, 2016 at 3:02 PM, Raghunath D<br>>         <raghunath.d@tcs.com <<a href="mailto:raghunath.d@tcs.com">mailto:raghunath.d@tcs.com</a>>> wrote:<br>><br>>             Hi ,<br>><br>>             Can some one please suggest how to instance notifications in<br>>             ceilometer.<br>><br>>             With Best Regards<br>>             Raghunath Dudyala<br>>             Tata Consultancy Services Limited<br>>             Mailto: raghunath.d@tcs.com <<a href="mailto:raghunath.d@tcs.com">mailto:raghunath.d@tcs.com</a>><br>>             Website: <a href="http://www.tcs.com">http://www.tcs.com</a><br>>             ____________________________________________<br>>             Experience certainty. IT Services<br>>             Business Solutions<br>>             Consulting<br>>             ____________________________________________<br>><br>><br>>             -----Raghunath D/HYD/TCS wrote: -----<br>>             To: openstack-dev@lists.openstack.org<br>>             <<a href="mailto:openstack-dev@lists.openstack.org">mailto:openstack-dev@lists.openstack.org</a>><br>>             From: Raghunath D/HYD/TCS<br>>             Date: 10/18/2016 08:01PM<br>>             Subject: [openstack-dev] [Ceilometer]: Instance creation and<br>>             deletion metrics in ceilometer !<br>><br>><br>>             Hi ,<br>><br>>             How can instance created and deleted information/sample can<br>>             be retrieved from ceilometer.<br>>             What entries should be there in pipeline.yaml  to get<br>>             instance deleted information.<br>><br>>             I tried to have meters- "instance" in pipeline.yam but it<br>>             always gives active instance details,<br>>             and no details of deleted instances.<br>><br>>             With Best Regards<br>>             Raghunath Dudyala<br>>             Tata Consultancy Services Limited<br>>             Mailto: raghunath.d@tcs.com <<a href="mailto:raghunath.d@tcs.com">mailto:raghunath.d@tcs.com</a>><br>>             Website: <a href="http://www.tcs.com">http://www.tcs.com</a><br>>             ____________________________________________<br>>             Experience certainty. IT Services<br>>             Business Solutions<br>>             Consulting<br>>             ____________________________________________<br>><br>>             =====-----=====-----=====<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<br>><br>><br>>             __________________________________________________________________________<br>>             OpenStack Development Mailing List (not for usage questions)<br>>             Unsubscribe:<br>>             OpenStack-dev-request@lists.openstack.org?subject:unsubscribe <<a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe">http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a>><br>>             <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>>             <<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a>><br>><br>><br>>         __________________________________________________________________________<br>>         OpenStack Development Mailing List (not for usage questions)<br>>         Unsubscribe:<br>>         OpenStack-dev-request@lists.openstack.org?subject:unsubscribe<br>>         <<a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe">http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a>><br>>         <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a> <<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a>><br>><br>>         __________________________________________________________________________<br>>         OpenStack Development Mailing List (not for usage questions)<br>>         Unsubscribe:<br>>         OpenStack-dev-request@lists.openstack.org?subject:unsubscribe<br>>         <<a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe">http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a>><br>>         <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a> <<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a>><br>><br>><br>>     __________________________________________________________________________<br>>     OpenStack Development Mailing List (not for usage questions)<br>>     Unsubscribe:<br>>     OpenStack-dev-request@lists.openstack.org?subject:unsubscribe<br>>     <<a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe">http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a>><br>>     <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>>     <<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a>><br>><br>>     __________________________________________________________________________<br>>     OpenStack Development Mailing List (not for usage questions)<br>>     Unsubscribe:<br>>     OpenStack-dev-request@lists.openstack.org?subject:unsubscribe<br>>     <<a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe">http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a>><br>>     <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>>     <<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a>><br>><br>><br>> __________________________________________________________________________<br>> OpenStack Development Mailing List (not for usage questions)<br>> Unsubscribe: OpenStack-dev-request@lists.openstack.org?subject:unsubscribe<br>> <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>><br>><br>> __________________________________________________________________________<br>> OpenStack Development Mailing List (not for usage questions)<br>> Unsubscribe: OpenStack-dev-request@lists.openstack.org?subject:unsubscribe<br>> <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>><br><br>-- <br>gord<br><br>__________________________________________________________________________<br>OpenStack Development Mailing List (not for usage questions)<br>Unsubscribe: OpenStack-dev-request@lists.openstack.org?subject:unsubscribe<br><a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br></font></div></div></div></font>