Size: a a a

2019 October 22

O

Osmium in Moira
ok, so nodata_check_interval is applied when there is no more metrics. Thank you!
источник

AK

Alexey Kirpichnikov in Moira
Just api.example.yml and notifier.example.yml. No changelog yet :-)
источник

IM

Ioannis Mavroukakis in Moira
источник
2019 November 07

SB

Sergey Boishtyan in Moira
Hi, i can't realize how can i set pending interval to trigger via api?
источник

AK

Alexey Kirpichnikov in Moira
Sergey Boishtyan
Hi, i can't realize how can i set pending interval to trigger via api?
Hmm, pending? What is pending interval?
источник

SB

Sergey Boishtyan in Moira
Alexey Kirpichnikov
Hmm, pending? What is pending interval?
источник

AK

Alexey Kirpichnikov in Moira
I’m afraid that is a custom Avito add-on. You should ask @vlkolobaev :-)
источник

SB

Sergey Boishtyan in Moira
Alexey Kirpichnikov
I’m afraid that is a custom Avito add-on. You should ask @vlkolobaev :-)
)) okay
источник

SB

Sergey Boishtyan in Moira
Tnx
источник

ДС

Дмитрий Сергеевич in Moira
Hi guys and thanks for moira!
python-moira-client works as intended and I was able to create couple of triggrs programmatically, no luck with moira-trigger-role though. I wonder if this role is oudated maybe =). There are no PUT requests in moira api logs when I run ansible.(dry_run is set to False)
источник

ES

Emil Sharifullin in Moira
Дмитрий Сергеевич
Hi guys and thanks for moira!
python-moira-client works as intended and I was able to create couple of triggrs programmatically, no luck with moira-trigger-role though. I wonder if this role is oudated maybe =). There are no PUT requests in moira api logs when I run ansible.(dry_run is set to False)
Can you provide a sample role?
источник

ES

Emil Sharifullin in Moira
May it be a text?)
источник

ДС

Дмитрий Сергеевич in Moira
sure, let me pastebin it for you
источник

ДС

Дмитрий Сергеевич in Moira
источник

ДС

Дмитрий Сергеевич in Moira
I think it is broken as there is only one get request in api logs with TriggerId  matching one from ansible vars.
something in the lines of
2019-11-07 18:08:47.757  api  INFO  "GET http:// ***/api/trigger/System.CPULA5/state HTTP/1.1" from 10.32.2.22:33408 by anonymous - 200 31B in 704.328µs
Seems like it should get a proper internal ID first when PUTting this trigger and then GET it by internal ID
источник

T

Timur in Moira
state: absent? :)
источник

ДС

Дмитрий Сергеевич in Moira
Timur
state: absent? :)
Good one, but no. Same goes for present in state
источник

T

Timur in Moira
I mean having only one GET when there is actually no such trigger with this id is ok. Role just checks if we really need to delete something. Could you please show logs for the same playbook but with "state" param set to "present"
источник

ДС

Дмитрий Сергеевич in Moira
👌
источник

ДС

Дмитрий Сергеевич in Moira
Well, it seems it was my bad after all
thanks for your time
источник