sensu-plugins-mongodb 1.4.0 → 1.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f5a4fa2fe0f52f7a107ccfec6ad768427c47d82f
4
- data.tar.gz: 8524da816b927dd07165b164ce59eb78b7278ef6
3
+ metadata.gz: 0919b06843f450fb639090c26def752b9eedd4b0
4
+ data.tar.gz: a820edf6b49ea5134616671d5e863fcbc7125e51
5
5
  SHA512:
6
- metadata.gz: 7687fb628e6535238a8696e074acdef4b63a82a2d6ec69816244504391ee69450bc0128b37752cff562435111b5240af27a151d35b202e25421afa599634260d
7
- data.tar.gz: ff6611199f3c15b838d2bd1d51e91c455790b7df24e1ad5551c86fcd24b6d187b6a8842f3a3aa2439b48a57825e73d8a6bb02c3cfd6e4b0f7227542434cc42e8
6
+ metadata.gz: e6bee1f9d49f4f5f9d6cf20ae34ec4d80f15fecde97aa32a1e7e624b067cdc413a12ace6dc05ecf4cd7cafdf603c891b7cf4a9fc25476554b5b16a3e61319b28
7
+ data.tar.gz: 7fb9a532d9f048e715d7fac1d1f9c627911eeae1bbefb851fa90bb9a5486fb05fad445f1538a295bd14be5c10bf1e3322d7aa422288383af9adaafc887d33f27
@@ -1,10 +1,17 @@
1
- #Change Log
1
+ # Change Log
2
2
  This project adheres to [Semantic Versioning](http://semver.org/).
3
3
 
4
- This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachangelog.com/)
4
+ This CHANGELOG follows the format located [here](https://github.com/sensu-plugins/community/blob/master/HOW_WE_CHANGELOG.md)
5
5
 
6
6
  ## [Unreleased]
7
7
 
8
+ ## [1.4.1] - 2017-09-23
9
+ ### Fixed
10
+ - Support for database size metrics (@fandrews)
11
+
12
+ ### Changed
13
+ - updated changelog guidelines location (@majormoses)
14
+
8
15
  ## [1.4.0] - 2017-09-05
9
16
  ### Added
10
17
  - Support for returning replicaset state metrics (@naemono)
@@ -107,7 +114,8 @@ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachang
107
114
  ### Added
108
115
  - initial release
109
116
 
110
- [Unreleased]: https://github.com/sensu-plugins/sensu-plugins-mongodb/compare/1.4.0...HEAD
117
+ [Unreleased]: https://github.com/sensu-plugins/sensu-plugins-mongodb/compare/1.4.1...HEAD
118
+ [1.4.1]: https://github.com/sensu-plugins/sensu-plugins-mongodb/compare/1.4.0...1.4.1
111
119
  [1.4.0]: https://github.com/sensu-plugins/sensu-plugins-mongodb/compare/1.3.0...1.4.0
112
120
  [1.3.0]: https://github.com/sensu-plugins/sensu-plugins-mongodb/compare/1.2.1...1.3.0
113
121
  [1.2.1]: https://github.com/sensu-plugins/sensu-plugins-mongodb/compare/1.2.0...1.2.1
@@ -166,7 +166,7 @@ module SensuPluginsMongoDB
166
166
 
167
167
  # Database Sizes
168
168
  @mongo_client.database_names.each do |name|
169
- @mongo_client.use(name)
169
+ @mongo_client = @mongo_client.use(name)
170
170
  db = @mongo_client.database
171
171
  result = db.command(dbstats: 1).documents.first
172
172
  server_metrics["databaseSizes.#{name}.collections"] = result['collections']
@@ -181,7 +181,7 @@ module SensuPluginsMongoDB
181
181
  server_metrics["databaseSizes.#{name}.nsSizeMB"] = result['nsSizeMB']
182
182
  end
183
183
  # Reset back to previous database
184
- @mongo_client.use(@db.name)
184
+ @mongo_client = @mongo_client.use(@db.name)
185
185
 
186
186
  # Journaling (durability)
187
187
  if server_status.key?('dur')
@@ -2,7 +2,7 @@ module SensuPluginsMongoDB
2
2
  module Version
3
3
  MAJOR = 1
4
4
  MINOR = 4
5
- PATCH = 0
5
+ PATCH = 1
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: 1.4.0
4
+ version: 1.4.1
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: 2017-09-06 00:00:00.000000000 Z
11
+ date: 2017-09-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bson