sensu-plugins / sensu-plugin

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

Add support for globally disabling deprecated filters #167

Closed cwjohnston closed 7 years ago

cwjohnston commented 7 years ago

Description

Adds support for globally disabling deprecated filters by specifying

{ 
  "sensu_plugin": {
     "disable_deprecated_filtering": true
  }
}

Motivation and Context

Closes #166

Relates to #136

How Has This Been Tested?

Added unit test, tested pre-release build in local lab environment.

Types of changes

Checklist:

Known Caveats

cwjohnston commented 7 years ago

What I don't like about this implementation is that it is somewhat the inverse of the per-check enable_deprecated_filtering attribute, which defaults to true.

portertech commented 7 years ago

@cwjohnston just the dirty nature of slow deprecation/migration work? :+1: