diff --git a/CHANGELOG.md b/CHANGELOG.md index c818b41..8b0b89e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ This CHANGELOG follows the format located [here](https://github.com/sensu-plugin ## [Unreleased] +### Breaking Change +- bumped requirement of `sensu-plugin` [to 2.0](https://github.com/sensu-plugins/sensu-plugin/blob/master/CHANGELOG.md#v200---2017-03-29) (@majormoses) + +### Fixed +- check-mongodb-metric.rb: make `--metric` required since it is (@majormoses) + ## [1.4.1] - 2017-09-23 ### Fixed - Support for database size metrics (@fandrews) diff --git a/bin/check-mongodb-metric.rb b/bin/check-mongodb-metric.rb index 3977dca..592ac59 100755 --- a/bin/check-mongodb-metric.rb +++ b/bin/check-mongodb-metric.rb @@ -95,7 +95,8 @@ class CheckMongodbMetric < Sensu::Plugin::Check::CLI option :metric, description: 'Name of the metric to check', long: '--metric METRIC', - short: '-m METRIC' + short: '-m METRIC', + required: true option :warn, description: 'Warn if values are above this threshold', diff --git a/sensu-plugins-mongodb.gemspec b/sensu-plugins-mongodb.gemspec index 1215165..c677420 100644 --- a/sensu-plugins-mongodb.gemspec +++ b/sensu-plugins-mongodb.gemspec @@ -34,7 +34,7 @@ Gem::Specification.new do |s| s.add_runtime_dependency 'bson', '~> 4.0' s.add_runtime_dependency 'mongo', '2.4.1' - s.add_runtime_dependency 'sensu-plugin', '~> 1.2' + s.add_runtime_dependency 'sensu-plugin', '~> 2.0' s.add_development_dependency 'bundler', '~> 1.7' s.add_development_dependency 'codeclimate-test-reporter', '~> 0.4'