[openstack-dev] [Ceilometer] Capturing isolated events

Sachin Manpathak smanpathak at platform9.com
Fri Oct 2 00:12:11 UTC 2015


Can ceilometer-gurus advise?

[For Ceilometer/Juno]
Use case:
catch instance creation error notifications with ceilometer.

I tried the notifications as well as metering route, but haven't quite
figured out how to do this --

- Added a notification class to ceilometer
<http://opengrok.platform9.sys/source/xref/pf9-ceilometer/ceilometer/>/
compute
<http://opengrok.platform9.sys/source/xref/pf9-ceilometer/ceilometer/compute/>
/notifications
<http://opengrok.platform9.sys/source/xref/pf9-ceilometer/ceilometer/compute/notifications/>
/instance.py
<http://opengrok.platform9.sys/source/xref/pf9-ceilometer/ceilometer/compute/notifications/instance.py>
- Noticed that there is a class called "Instance" which already subscribes
to events compute.instance.*, disabled that by removing it from the egg
entry points (setup.cfg)
- Created a pipeline to define a meter for my notifications class.

I noticed that the ceilometer-agent-notification service does not consume
any notifications with above changes. I had to set
store_events=true in ceilometer.conf

Now, ceilometer generates events, but they are generic type.

1. Should I change event_definitions.yaml to store event information in the
format that I want?
2. a way to generate only the event I am interested in, not all by default.


Thanks,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20151001/498bc3d1/attachment.html>


More information about the OpenStack-dev mailing list