sensu-plugins / sensu-plugin

A framework for writing Sensu plugins & handlers with Ruby.
http://sensuapp.org
MIT License
126 stars 117 forks source link

need a way to disable refresh #186

Closed joshzitting closed 6 years ago

joshzitting commented 6 years ago

We would like a way to disable refresh on our alarms all together... Is there already a way to do this? Thanks

cwjohnston commented 6 years ago

Hi @joshzitting, occurrence filtering, the logic which makes use of occurrences and refresh attributes, has moved into the occurrences filter extension and version 2.0 of this library disables occurrence filtering in plugins themselves. You can read more about this (here on our blog)[https://blog.sensuapp.org/deprecating-event-filtering-in-sensu-plugin-b60c7c500be3].

All that said, actually using these changes requires that the handler plugins you're relying on be upgraded to depend on sensu-plugin ~> 2.0 so that filtering inside the handler itself is disabled by default. Then it becomes optional to apply the occurrences filter to individual handlers as you see fit.

I hope this information is helpful to you. If you have any additional questions or concerns, please join our Community Slack team where we and others in the Sensu community are better able to help you with plugin versioning and configuration changes.