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 +4 -4
- data/CHANGELOG.md +6 -1
- data/bin/metrics-mongodb.rb +6 -0
- data/lib/sensu-plugins-mongodb/version.rb +2 -2
- metadata +5 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 01755a7a37c367579beb7701ffce9bf0eaae38a3e4d6cd0d6513820af4d30904
|
4
|
+
data.tar.gz: 2cfe8db150ad8f3243a1fbe016234f1aa28c40b44656617c146aaf0d14b345dc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '09e789c20f99ce5144c807340fc86c47288ebd4acd0373f7177e7e505944104224a4f2757affaa42bb6f552d027f9583aa43d74162b58939a147dbd6936a1c44'
|
7
|
+
data.tar.gz: 7e86c736cb4c3d7136c665c699862242b7ed5737d524dd740b6c046ebd01f66f97140b8ba52bf7a737062b75d5198de34a9924cb6261652de73e1680c9f70482
|
data/CHANGELOG.md
CHANGED
@@ -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
|
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
|
data/bin/metrics-mongodb.rb
CHANGED
@@ -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
|
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
|
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-
|
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
|
-
|
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
|