Re: [openstack-dev] [telemetry] Triggering alarms on Swift notifications

2017-02-16 Thread Denis Makogon
Sorry for confusing. I just wanted to try to setup telemetry and try it
with Picasso(Serverless functions).

And your suggestion worked well. So i think it is worth opening issue
against Aodh and Ceilometer for implementing given option configuration
just Panko devstack plugin does.

Kind regards,
Denis Makogon

чт, 16 февр. 2017 г. в 15:54, Mehdi Abaakouk :

> On Thu, Feb 16, 2017 at 03:33:43PM +0200, Denis Makogon wrote:
> >Hello Mehdi. Thanks for response. See comments inline.
> >
> >2017-02-16 15:25 GMT+02:00 Mehdi Abaakouk :
> >
> >> Hi,
> >>
> >> On Thu, Feb 16, 2017 at 03:04:52PM +0200, Denis Makogon wrote:
> >>
> >>> Greetings.
> >>>
> >>> Could someone provide any guidelines for checking why alarm or
> ok-action
> >>> webhooks are not being executed. Is it possible to investigate an
> issue by
> >>> analyzing ceilometer and/or aodh logs?
> >>>
> >>> So, my devstack setup based on master branch with local.conf (see
> >>> https://gist.github.com/denismakogon/4d88bdbea4bf428e55e88d25d52735f6)
> >>>
> >>> Once devstack installed i'm checking if notifications are being emitted
> >>> while uploading files to Swift and i'm able to see events in Ceilometer
> >>> (see https://gist.github.com/denismakogon/c6ad75899dcc50ce2a9b9f6
> >>> a4e0612f7).
> >>>
> >>> After that i'm trying to setup Aodh event alarm (see
> >>> https://gist.github.com/denismakogon/f6449e71ba9bb04cdd0065b52918b5af)
> >>>
> >>> And that's where i'm stuck, while working with Swift i see
> notifications
> >>> are coming from ceilometermiddleware to Panko and available in
> Ceilometer
> >>> via event-list but no alarm being triggered in Aodh.
> >>>
> >>> So, could someone explain me what am i doing wrong or am i missing
> >>> something?
> >>>
> >>
> >> I think devstack plugins currently doesn't setup the Ceilometer stuffs
> to
> >> be able to use events in Aodh.
> >>
> >>
> >So, if i would drop off both Aodh and Panko from this setup it may appear
> >that issue will be solved somehow?
>
> I don't get it, I have thought your goal was to create alarm triggered on
> event. And for this you need Aodh and Ceilometer (not Panko).
>
> You have to do
> https://docs.openstack.org/developer/aodh/event-alarm.html#configuration
> manually to get events emitted by Ceilometer received by Aodh.
>
> >> Note that Aodh doesn't query Panko, but listen for event on alarm.all
> >> topic by
> >> default. I'm guessing the Ceilometer conf/pipeline have to be tweaked to
> >> send
> >> events to Aodh somehow.
> >>
> >
> >Yes, i know that, in this setup Ceilometer depends on Panko as event
> >source, is that right?
>
> No, Panko is for storage of event in a database (It's a API and a
> Ceilometer dispatcher plugin). Events are still built from notification
> by Ceilometer (agent-notification).
>
> Rephrase from Ceilometer point of view. Ceilometer send events to Aodh AND
> Panko.
>
> Regards,
>
> --
> Mehdi Abaakouk
> mail: sil...@sileht.net
> irc: sileht
>
> __
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: openstack-dev-requ...@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-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] [telemetry] Triggering alarms on Swift notifications

2017-02-16 Thread Mehdi Abaakouk

On Thu, Feb 16, 2017 at 03:33:43PM +0200, Denis Makogon wrote:

Hello Mehdi. Thanks for response. See comments inline.

2017-02-16 15:25 GMT+02:00 Mehdi Abaakouk :


Hi,

On Thu, Feb 16, 2017 at 03:04:52PM +0200, Denis Makogon wrote:


Greetings.

Could someone provide any guidelines for checking why alarm or ok-action
webhooks are not being executed. Is it possible to investigate an issue by
analyzing ceilometer and/or aodh logs?

So, my devstack setup based on master branch with local.conf (see
https://gist.github.com/denismakogon/4d88bdbea4bf428e55e88d25d52735f6)

Once devstack installed i'm checking if notifications are being emitted
while uploading files to Swift and i'm able to see events in Ceilometer
(see https://gist.github.com/denismakogon/c6ad75899dcc50ce2a9b9f6
a4e0612f7).

After that i'm trying to setup Aodh event alarm (see
https://gist.github.com/denismakogon/f6449e71ba9bb04cdd0065b52918b5af)

And that's where i'm stuck, while working with Swift i see notifications
are coming from ceilometermiddleware to Panko and available in Ceilometer
via event-list but no alarm being triggered in Aodh.

So, could someone explain me what am i doing wrong or am i missing
something?



I think devstack plugins currently doesn't setup the Ceilometer stuffs to
be able to use events in Aodh.



So, if i would drop off both Aodh and Panko from this setup it may appear
that issue will be solved somehow?


I don't get it, I have thought your goal was to create alarm triggered on
event. And for this you need Aodh and Ceilometer (not Panko).

You have to do 
https://docs.openstack.org/developer/aodh/event-alarm.html#configuration
manually to get events emitted by Ceilometer received by Aodh.


Note that Aodh doesn't query Panko, but listen for event on alarm.all
topic by
default. I'm guessing the Ceilometer conf/pipeline have to be tweaked to
send
events to Aodh somehow.



Yes, i know that, in this setup Ceilometer depends on Panko as event
source, is that right?


No, Panko is for storage of event in a database (It's a API and a
Ceilometer dispatcher plugin). Events are still built from notification
by Ceilometer (agent-notification).

Rephrase from Ceilometer point of view. Ceilometer send events to Aodh AND 
Panko.

Regards,

--
Mehdi Abaakouk
mail: sil...@sileht.net
irc: sileht

__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] [telemetry] Triggering alarms on Swift notifications

2017-02-16 Thread Denis Makogon
Hello Mehdi. Thanks for response. See comments inline.

2017-02-16 15:25 GMT+02:00 Mehdi Abaakouk :

> Hi,
>
> On Thu, Feb 16, 2017 at 03:04:52PM +0200, Denis Makogon wrote:
>
>> Greetings.
>>
>> Could someone provide any guidelines for checking why alarm or ok-action
>> webhooks are not being executed. Is it possible to investigate an issue by
>> analyzing ceilometer and/or aodh logs?
>>
>> So, my devstack setup based on master branch with local.conf (see
>> https://gist.github.com/denismakogon/4d88bdbea4bf428e55e88d25d52735f6)
>>
>> Once devstack installed i'm checking if notifications are being emitted
>> while uploading files to Swift and i'm able to see events in Ceilometer
>> (see https://gist.github.com/denismakogon/c6ad75899dcc50ce2a9b9f6
>> a4e0612f7).
>>
>> After that i'm trying to setup Aodh event alarm (see
>> https://gist.github.com/denismakogon/f6449e71ba9bb04cdd0065b52918b5af)
>>
>> And that's where i'm stuck, while working with Swift i see notifications
>> are coming from ceilometermiddleware to Panko and available in Ceilometer
>> via event-list but no alarm being triggered in Aodh.
>>
>> So, could someone explain me what am i doing wrong or am i missing
>> something?
>>
>
> I think devstack plugins currently doesn't setup the Ceilometer stuffs to
> be able to use events in Aodh.
>
>
So, if i would drop off both Aodh and Panko from this setup it may appear
that issue will be solved somehow?


> Note that Aodh doesn't query Panko, but listen for event on alarm.all
> topic by
> default. I'm guessing the Ceilometer conf/pipeline have to be tweaked to
> send
> events to Aodh somehow.
>

Yes, i know that, in this setup Ceilometer depends on Panko as event
source, is that right?


>
> Maybe this [1] have to be done manually.
>
> [1] https://docs.openstack.org/developer/aodh/event-alarm.html#
> configuration


Ok, will try.


>
>
> Regards,
>
> --
> Mehdi Abaakouk
> mail: sil...@sileht.net
> irc: sileht
>
> __
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: openstack-dev-requ...@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-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] [telemetry] Triggering alarms on Swift notifications

2017-02-16 Thread Mehdi Abaakouk

Hi,

On Thu, Feb 16, 2017 at 03:04:52PM +0200, Denis Makogon wrote:

Greetings.

Could someone provide any guidelines for checking why alarm or ok-action
webhooks are not being executed. Is it possible to investigate an issue by
analyzing ceilometer and/or aodh logs?

So, my devstack setup based on master branch with local.conf (see
https://gist.github.com/denismakogon/4d88bdbea4bf428e55e88d25d52735f6)

Once devstack installed i'm checking if notifications are being emitted
while uploading files to Swift and i'm able to see events in Ceilometer
(see https://gist.github.com/denismakogon/c6ad75899dcc50ce2a9b9f6a4e0612f7).

After that i'm trying to setup Aodh event alarm (see
https://gist.github.com/denismakogon/f6449e71ba9bb04cdd0065b52918b5af)

And that's where i'm stuck, while working with Swift i see notifications
are coming from ceilometermiddleware to Panko and available in Ceilometer
via event-list but no alarm being triggered in Aodh.

So, could someone explain me what am i doing wrong or am i missing
something?


I think devstack plugins currently doesn't setup the Ceilometer stuffs to
be able to use events in Aodh.

Note that Aodh doesn't query Panko, but listen for event on alarm.all topic by
default. I'm guessing the Ceilometer conf/pipeline have to be tweaked to send
events to Aodh somehow.

Maybe this [1] have to be done manually.

[1] https://docs.openstack.org/developer/aodh/event-alarm.html#configuration

Regards,

--
Mehdi Abaakouk
mail: sil...@sileht.net
irc: sileht

__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


[openstack-dev] [telemetry] Triggering alarms on Swift notifications

2017-02-16 Thread Denis Makogon
Greetings.

Could someone provide any guidelines for checking why alarm or ok-action
webhooks are not being executed. Is it possible to investigate an issue by
analyzing ceilometer and/or aodh logs?

So, my devstack setup based on master branch with local.conf (see
https://gist.github.com/denismakogon/4d88bdbea4bf428e55e88d25d52735f6)

Once devstack installed i'm checking if notifications are being emitted
while uploading files to Swift and i'm able to see events in Ceilometer
(see https://gist.github.com/denismakogon/c6ad75899dcc50ce2a9b9f6a4e0612f7).

After that i'm trying to setup Aodh event alarm (see
https://gist.github.com/denismakogon/f6449e71ba9bb04cdd0065b52918b5af)

And that's where i'm stuck, while working with Swift i see notifications
are coming from ceilometermiddleware to Panko and available in Ceilometer
via event-list but no alarm being triggered in Aodh.

So, could someone explain me what am i doing wrong or am i missing
something?

Kind regards,
Denis Makogon
__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev