Recurrences

Hi all.

I’m using sensu for 3 months but still I have doubts about recurrences.

I’d like to be informed just once by hour even if the service goes down many times.

I’ve created filter for handler (opsgenie) but I don’t know how can I stop all the alerts when the service is fixed and goes down again. There’s a feature on opsgenie to send an alert to do this, but is better to do on sensu if possible.

{

“filters”: {

“recurrences”: {

“attributes”: {

“occurrences”: “eval: value == 2 || value % 60 == 0”

}

}

}

}

Thanks

Hi there, Bruno.

I wrote up a little gist that might help (which will probably become a blog post in a few weeks): Preempt sensu-plugin `occurrences` and `refresh` functionality with a simple / lightweight filter · GitHub

#monitoringlove

···

On Friday, April 29, 2016 at 6:48:34 AM UTC-7, Bruno Criado wrote:

Hi all.

I’m using sensu for 3 months but still I have doubts about recurrences.

I’d like to be informed just once by hour even if the service goes down many times.

I’ve created filter for handler (opsgenie) but I don’t know how can I stop all the alerts when the service is fixed and goes down again. There’s a feature on opsgenie to send an alert to do this, but is better to do on sensu if possible.

{

“filters”: {

“recurrences”: {

“attributes”: {

“occurrences”: “eval: value == 2 || value % 60 == 0”

}

}

}

}

Thanks