[openstack-dev] [ceilometer]Looking for endpoint where event passed after first time

gordon chung gord at live.ca
Thu Apr 20 12:48:31 UTC 2017



On 20/04/17 01:46 AM, Hui Xiang wrote:
> And yes I have known that ceilometer notification agent will listen for
> the notification topics, but my question is which file/class will do it.
> When I am debugging the code, at the first time when the event send out
> to ceilometer exchange notification topic, EventsNotificationEndpoint
>  in event/endpoint.py will handle it, however, when I send the same
> event again, with log/pdb enabled, the event is not processed in
> EventsNotificationEndpoint any more, and I can't find where it is done.
> It looks so weird or maybe that is by design for some reason? The
> behavior is same with/without definition in event_definition.yaml

this listener[1] is loading EventsNotificationEndpoint. if you look at 
EventsNotificationEndpoint, you can see it picks up stuff on .info and 
.error topics and normalises them to Event obj.

i'm assuming you're using oslo.messaging to push to queue as well. i 
don't think the system works if you are pushing your own format to queue.


>
> So I wonder how is different for the workflow by sending same events twice.

there is no difference. only difference is a different agent might be 
handling it (if you have multiple notification agents)

[1] 
https://github.com/openstack/ceilometer/blob/stable/mitaka/ceilometer/notification.py#L242-L245

-- 
gord


More information about the OpenStack-dev mailing list