Recurrences


#1

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


#2

Hi there, Bruno.

I wrote up a little gist that might help (which will probably become a blog post in a few weeks): https://gist.github.com/calebhailey/8a30a00c6aadfebf7f767444f0a3df49

#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