sensu-plugins-mongodb 1.4.0 → 1.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +11 -3
- data/lib/sensu-plugins-mongodb/metics.rb +2 -2
- data/lib/sensu-plugins-mongodb/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0919b06843f450fb639090c26def752b9eedd4b0
|
4
|
+
data.tar.gz: a820edf6b49ea5134616671d5e863fcbc7125e51
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e6bee1f9d49f4f5f9d6cf20ae34ec4d80f15fecde97aa32a1e7e624b067cdc413a12ace6dc05ecf4cd7cafdf603c891b7cf4a9fc25476554b5b16a3e61319b28
|
7
|
+
data.tar.gz: 7fb9a532d9f048e715d7fac1d1f9c627911eeae1bbefb851fa90bb9a5486fb05fad445f1538a295bd14be5c10bf1e3322d7aa422288383af9adaafc887d33f27
|
data/CHANGELOG.md
CHANGED
@@ -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
|
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.
|
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')
|
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.
|
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-
|
11
|
+
date: 2017-09-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bson
|