sensu-plugins-mongodb 2.0.2 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a60db1ff5ce73c954697b2b2955b6e9ccebaabd7ddc82921e568632a36366c1c
4
- data.tar.gz: fbd8062d8fc4e18338715e535f17b77f1cac13c9138459651ebc5f99991fb9b3
3
+ metadata.gz: 01755a7a37c367579beb7701ffce9bf0eaae38a3e4d6cd0d6513820af4d30904
4
+ data.tar.gz: 2cfe8db150ad8f3243a1fbe016234f1aa28c40b44656617c146aaf0d14b345dc
5
5
  SHA512:
6
- metadata.gz: 66bd32e1421bc0a876c92ca230d2f7a49a24cc486ea720a3e38e4eaca4c3999faede853b0e4ed6d260e96ee145355b3aa8acd4c5693b2f57559c821433d3d4d9
7
- data.tar.gz: 1c55e99fba54b56a9bdf6f618ec89e0590321d42923244b8759a52d019a289905b96f2914cfd61a12f7311e114d62bedf3d9acdd2257eed3a086cf91ed279683
6
+ metadata.gz: '09e789c20f99ce5144c807340fc86c47288ebd4acd0373f7177e7e505944104224a4f2757affaa42bb6f552d027f9583aa43d74162b58939a147dbd6936a1c44'
7
+ data.tar.gz: 7e86c736cb4c3d7136c665c699862242b7ed5737d524dd740b6c046ebd01f66f97140b8ba52bf7a737062b75d5198de34a9924cb6261652de73e1680c9f70482
@@ -5,6 +5,10 @@ This CHANGELOG follows the format located [here](https://github.com/sensu-plugin
5
5
 
6
6
  ## [Unreleased]
7
7
 
8
+ ## [2.1.0] - 2018-12-27
9
+ ### Added
10
+ - `bin/metrics-mongodb.rb`: added `--exclude-db-sizes` option that removes database sizes which can be quite large from the payload sent to message broker (rabbitmq) which often need special tuning for (@mdzidic)
11
+
8
12
  ## [2.0.2] - 2018-03-17
9
13
  ### Fixed
10
14
  - renamed library file `metics` to `metrics` and updated all refrences in code to it (@majormoses)
@@ -129,7 +133,8 @@ This CHANGELOG follows the format located [here](https://github.com/sensu-plugin
129
133
  ### Added
130
134
  - initial release
131
135
 
132
- [Unreleased]: https://github.com/sensu-plugins/sensu-plugins-mongodb/compare/2.0.2...HEAD
136
+ [Unreleased]: https://github.com/sensu-plugins/sensu-plugins-mongodb/compare/2.1.0...HEAD
137
+ [2.1.0]: https://github.com/sensu-plugins/sensu-plugins-mongodb/compare/2.0.2...2.1.0
133
138
  [2.0.2]: https://github.com/sensu-plugins/sensu-plugins-mongodb/compare/2.0.1...2.0.2
134
139
  [2.0.1]: https://github.com/sensu-plugins/sensu-plugins-mongodb/compare/2.0.0...2.0.1
135
140
  [2.0.0]: https://github.com/sensu-plugins/sensu-plugins-mongodb/compare/1.4.1...2.0.0
@@ -99,6 +99,11 @@ class MongoDB < Sensu::Plugin::Metric::CLI::Graphite
99
99
  long: '--require-master',
100
100
  default: false
101
101
 
102
+ option :exclude_db_sizes,
103
+ description: 'Exclude database sizes',
104
+ long: '--exclude-db-sizes',
105
+ default: false
106
+
102
107
  def run
103
108
  Mongo::Logger.logger.level = Logger::FATAL
104
109
  @debug = config[:debug]
@@ -114,6 +119,7 @@ class MongoDB < Sensu::Plugin::Metric::CLI::Graphite
114
119
  collector.connect_mongo_db('admin')
115
120
  exit(1) if config[:require_master] && !collector.master?
116
121
  metrics = collector.server_metrics
122
+ metrics = metrics.reject { |k, _v| k[/databaseSizes/] } if config[:exclude_db_sizes]
117
123
 
118
124
  # Print them in graphite format.
119
125
  timestamp = Time.now.to_i
@@ -1,8 +1,8 @@
1
1
  module SensuPluginsMongoDB
2
2
  module Version
3
3
  MAJOR = 2
4
- MINOR = 0
5
- PATCH = 2
4
+ MINOR = 1
5
+ PATCH = 0
6
6
 
7
7
  VER_STRING = [MAJOR, MINOR, PATCH].compact.join('.')
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sensu-plugins-mongodb
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sensu-Plugins and contributors
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-03-17 00:00:00.000000000 Z
11
+ date: 2018-12-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bson
@@ -188,9 +188,9 @@ description: |-
188
188
  email: "<sensu-users@googlegroups.com>"
189
189
  executables:
190
190
  - check-mongodb-metric.rb
191
- - check-mongodb.rb
192
- - metrics-mongodb-replication.rb
193
191
  - metrics-mongodb.rb
192
+ - metrics-mongodb-replication.rb
193
+ - check-mongodb.rb
194
194
  extensions: []
195
195
  extra_rdoc_files: []
196
196
  files:
@@ -230,8 +230,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
230
230
  - !ruby/object:Gem::Version
231
231
  version: '0'
232
232
  requirements: []
233
- rubyforge_project:
234
- rubygems_version: 2.7.6
233
+ rubygems_version: 3.0.1
235
234
  signing_key:
236
235
  specification_version: 4
237
236
  summary: Sensu plugins for mongodb