Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suppress alerts when recovering to OK state #670

Closed
vinhtr opened this issue Jun 23, 2016 · 4 comments
Closed

Suppress alerts when recovering to OK state #670

vinhtr opened this issue Jun 23, 2016 · 4 comments

Comments

@vinhtr
Copy link

vinhtr commented Jun 23, 2016

I'm currently running v0.12. Is it possible to prevent an alert from firing when it recovers to an OK state?

@nathanielc
Copy link
Contributor

@vinhtr It is not possible in v0.12

In later versions you can chain alert nodes and filter out the OK alerts.

...
|alert()
    .crit(lambda: ...)
    .fieldLevel('level')
|where(lambda: "level" != 'OK')
|alert()
   .crit(lambda: "level" == "CRITICAL")
   .email() // or whatever handler you are using.

@nathanielc
Copy link
Contributor

Fixed in #796

@mike-albano
Copy link

This is implemented as ".NoRecoveries()"

@cyoyo-geek
Copy link

Is it possible to prevent the alarm from being triggered when it returns to the normal state? What does it mean? @mike-albano

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants