sensu-plugins-mongodb-wt 2.2.1 → 2.2.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -318,10 +318,6 @@ module SensuPluginsMongoDB
318
318
  server_metrics['metrics.repl.network.getmores_totalMillis'] = repl['network']['getmores']['totalMillis']
319
319
  server_metrics['metrics.repl.network.ops'] = repl['network']['ops']
320
320
  server_metrics['metrics.repl.network.readersCreated'] = repl['network']['readersCreated']
321
- server_metrics['metrics.repl.preload.docs_num'] = repl['preload']['docs']['num']
322
- server_metrics['metrics.repl.preload.docs_totalMillis'] = repl['preload']['docs']['totalMillis']
323
- server_metrics['metrics.repl.preload.indexes_num'] = repl['preload']['indexes']['num']
324
- server_metrics['metrics.repl.preload.indexes_totalMillis'] = repl['preload']['indexes']['totalMillis']
325
321
 
326
322
  # Metrics (replicaset status)
327
323
  # MongoDB will fail if not running with --replSet, hence the check for nil
@@ -329,14 +325,6 @@ module SensuPluginsMongoDB
329
325
  server_metrics['metrics.replicaset.state'] = replicaset_status['myState']
330
326
  end
331
327
 
332
- # Metrics (storage)
333
- if Gem::Version.new(mongo_version) >= Gem::Version.new('2.6.0')
334
- freelist = server_status['metrics']['storage']['freelist']
335
- server_metrics['metrics.storage.freelist.search_bucketExhauseted'] = freelist['search']['bucketExhausted']
336
- server_metrics['metrics.storage.freelist.search_requests'] = freelist['search']['requests']
337
- server_metrics['metrics.storage.freelist.search_scanned'] = freelist['search']['scanned']
338
- end
339
-
340
328
  # Metrics (ttl)
341
329
  ttl = server_status['metrics']['ttl']
342
330
  server_metrics['metrics.ttl.deletedDocuments'] = ttl['deletedDocuments']
@@ -2,7 +2,7 @@ module SensuPluginsMongoDB
2
2
  module Version
3
3
  MAJOR = 2
4
4
  MINOR = 2
5
- PATCH = 1
5
+ PATCH = 5
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-wt
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.1
4
+ version: 2.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sensu-Plugins and contributors
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-08-02 00:00:00.000000000 Z
11
+ date: 2022-02-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bson
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '4.0'
19
+ version: 4.12.1
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '4.0'
26
+ version: 4.12.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: mongo
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -188,9 +188,9 @@ description: |-
188
188
  email: "<sensu-users@googlegroups.com>"
189
189
  executables:
190
190
  - check-mongodb-metric.rb
191
- - metrics-mongodb.rb
192
191
  - check-mongodb.rb
193
192
  - metrics-mongodb-replication.rb
193
+ - metrics-mongodb.rb
194
194
  extensions: []
195
195
  extra_rdoc_files: []
196
196
  files:
@@ -230,8 +230,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
230
230
  - !ruby/object:Gem::Version
231
231
  version: '0'
232
232
  requirements: []
233
- rubygems_version: 3.1.2
234
- signing_key:
233
+ rubygems_version: 3.3.5
234
+ signing_key:
235
235
  specification_version: 4
236
236
  summary: Sensu plugins for mongodb
237
237
  test_files: []