[openstack-dev] [Ceilometer]: Instance creation and deletion metrics in ceilometer !

Ganpat Agarwal gans.developer at gmail.com
Thu Oct 27 06:27:55 UTC 2016


Hi Raghunath,

I am not able to understand your use case for compute.instance.* events.

You are trying to catch the instance start and end events OR you want the
samples related with these events?

Regards,
Ganpat

On Wed, Oct 26, 2016 at 6:00 PM, Raghunath D <raghunath.d at tcs.com> wrote:

> Hi Ganpat/Gord,
>
> Callback for compute.instance.create.end events under ceilometer.compute.notifications
> should be invoked for those notification events on the nova exchange using
> the notifications.info topic.
> But this is not happening,we can see events related to them and can
> receive events over kafka.
>
> I can see from logs which print my debug print during the loading of
> notification plugin.
> "2016-10-26 03:46:32.010 34977 INFO ceilometer.compute.notifications.instance
> [req-1ad3d5c9-5eab-404d-9fbe-f1605e93691f - - - - -] Check
> ComputeInstanceNotificationBase notification:"
>
> Do we need to change any thing in the configuration file of ceilometer or
> nova to achive this.
> It would be great help for me if this is fixed.
>
> With Best Regards
> Raghunath Dudyala
> Tata Consultancy Services Limited
> Mailto: raghunath.d at tcs.com
> Website: http://www.tcs.com
> ____________________________________________
> Experience certainty. IT Services
> Business Solutions
> Consulting
> ____________________________________________
>
>
> -----Ganpat Agarwal <gans.developer at gmail.com> wrote: -----
> To: "OpenStack Development Mailing List (not for usage questions)" <
> openstack-dev at lists.openstack.org>
> From: Ganpat Agarwal <gans.developer at gmail.com>
> Date: 10/25/2016 09:32PM
>
> Subject: Re: [openstack-dev] [Ceilometer]: Instance creation and deletion
> metrics in ceilometer !
>
> Hi Raghunath,
>
> You can look at this file for details of meters related with
> compute.instance.*
>
> ceilometer/meter/data/meters.yaml
>
> Additionally, you can look at this link for compute meters documentation
>
> http://docs.openstack.org/admin-guide/telemetry-measurements.html
>
>
> Also, have a look at "Meters definitions" section on this link
>
> http://docs.openstack.org/admin-guide/telemetry-data-
> collection.html#meter-definitions
>
> Regards,
> Ganpat
>
>
> On Tue, Oct 25, 2016 at 5:45 PM, Raghunath D <raghunath.d at tcs.com> wrote:
>
>> Hi Ganpat,
>>
>>  Are you able to see merers/samples related to compute.instance.* in
>> ceilometer meter-list or ceilometer sample-list.
>> My application which will read info from ceilometer publisher
>> (pipeline.yaml) and I am looking for meters realted to ceilometer.instance.*
>>
>> With Best Regards
>> Raghunath Dudyala
>> Tata Consultancy Services Limited
>> Mailto: raghunath.d at tcs.com
>> Website: http://www.tcs.com
>> ____________________________________________
>> Experience certainty. IT Services
>> Business Solutions
>> Consulting
>> ____________________________________________
>>
>>
>> -----Ganpat Agarwal <gans.developer at gmail.com> wrote: -----
>> To: "OpenStack Development Mailing List (not for usage questions)" <
>> openstack-dev at lists.openstack.org>
>> From: Ganpat Agarwal <gans.developer at gmail.com>
>> Date: 10/25/2016 05:05PM
>> Subject: Re: [openstack-dev] [Ceilometer]: Instance creation and deletion
>> metrics in ceilometer !
>>
>>
>> Hi,
>>
>> I am able to get event notifications on kafka by applying these
>> configurations:
>>
>> nova.conf
>>
>> instance_usage_audit = True
>>
>> instance_usage_audit_period = hour
>>
>> notify_on_state_change = vm_and_task_state
>>
>> notification_driver = messagingv2
>>
>> Restart nova compute service
>>
>> ceilometer.conf
>>
>> [event]
>>
>> drop_unmatched_notifications = False
>>
>> definitions_cfg_file = /etc/ceilometer/event_definitions.yaml
>>
>>
>> event_pipeline.yaml
>>
>> ---
>>
>> sources:
>>
>>     - name: event_source
>>
>>       events:
>>
>>          - compute.instance.*
>>
>>       sinks:
>>
>>           - event_sink
>>
>> sinks:
>>
>>     - name: event_sink
>>
>>       transformers:
>>
>>       triggers:
>>
>>       publishers:
>>
>>           #- notifier://
>>
>>           #- file:///home/stack/test?max_bytes=10000000&backup_count=5
>>
>>           - kafka://kafka-broker:9092?topic=ceilometer
>>
>>
>> service ceilometer-api restart
>>
>> service ceilometer-agent-notification restart
>>
>>
>> Wait for couple of minutes and you should be getting the events on your
>> kafka consumer and in ceilometer notifications logs as well
>>
>> tail -f /var/log/ceilometer/ceilometer-agent-notification.log
>>
>>
>> Let me know if it helps.
>>
>>
>> Regards,
>>
>> Ganpat
>>
>>
>>
>> On Tue, Oct 25, 2016 at 3:02 PM, Raghunath D <raghunath.d at tcs.com> wrote:
>>
>>> Hi ,
>>>
>>> Can some one please suggest how to instance notifications in ceilometer.
>>>
>>> With Best Regards
>>> Raghunath Dudyala
>>> Tata Consultancy Services Limited
>>> Mailto: raghunath.d at tcs.com
>>> Website: http://www.tcs.com
>>> ____________________________________________
>>> Experience certainty. IT Services
>>> Business Solutions
>>> Consulting
>>> ____________________________________________
>>>
>>>
>>> -----Raghunath D/HYD/TCS wrote: -----
>>> To: openstack-dev at lists.openstack.org
>>> From: Raghunath D/HYD/TCS
>>> Date: 10/18/2016 08:01PM
>>> Subject: [openstack-dev] [Ceilometer]: Instance creation and deletion
>>> metrics in ceilometer !
>>>
>>>
>>> Hi ,
>>>
>>> How can instance created and deleted information/sample can be retrieved
>>> from ceilometer.
>>> What entries should be there in pipeline.yaml  to get instance deleted
>>> information.
>>>
>>> I tried to have meters- "instance" in pipeline.yam but it always gives
>>> active instance details,
>>> and no details of deleted instances.
>>>
>>> With Best Regards
>>> Raghunath Dudyala
>>> Tata Consultancy Services Limited
>>> Mailto: raghunath.d at tcs.com
>>> Website: http://www.tcs.com
>>> ____________________________________________
>>> Experience certainty. IT Services
>>> Business Solutions
>>> Consulting
>>> ____________________________________________
>>>
>>> =====-----=====-----=====
>>> Notice: The information contained in this e-mail
>>> message and/or attachments to it may contain
>>> confidential or privileged information. If you are
>>> not the intended recipient, any dissemination, use,
>>> review, distribution, printing or copying of the
>>> information contained in this e-mail message
>>> and/or attachments to it are strictly prohibited. If
>>> you have received this communication in error,
>>> please notify us by reply e-mail or telephone and
>>> immediately and permanently delete the message
>>> and any attachments. Thank you
>>>
>>>
>>> ____________________________________________________________
>>> ______________
>>> OpenStack Development Mailing List (not for usage questions)
>>> Unsubscribe: OpenStack-dev-request at lists.op
>>> enstack.org?subject:unsubscribe
>>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>>>
>>>
>> ____________________________________________________________
>> ______________
>> OpenStack Development Mailing List (not for usage questions)
>> Unsubscribe: OpenStack-dev-request at lists.openstack.org?subject:unsubscrib
>> e
>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>>
>> ____________________________________________________________
>> ______________
>> OpenStack Development Mailing List (not for usage questions)
>> Unsubscribe: OpenStack-dev-request at lists.openstack.org?subject:unsubscrib
>> e
>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>>
>>
> __________________________________________________________________________
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
> __________________________________________________________________________
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20161027/b6aa0a47/attachment.html>


More information about the OpenStack-dev mailing list