I wish to set a limit of alerts from sensu. For instance, after 5 alerts from host X about disk capacity, I would like to stop receive alerts about the same issue.
Is it possible?
Thanks
You can do that with sensu filters. Something like:
{
"filters": {
"firstfive": {
"attributes": {
"occurrences": "eval: value <= 5"
}
}
}
}
You need to add such filter to the handler you have created for the email.