sensu-plugins-elasticsearch 1.5.2 → 1.5.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/bin/check-es-query-ratio.rb +1 -1
- data/lib/sensu-plugins-elasticsearch/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: 4c7ade9ede1e2715cb933aea04162f5f9bbe281d
|
4
|
+
data.tar.gz: d44a555d474eb50d94a0c50befff77aff242f5e9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9b33664bd870d93535587c5389a6c4f03edd73cfdeaeb8f22d81c4a70b67bfccb476892abac957c18aa4f038f881c3159ebc39a1d0d2155b33a07904da2b1d05
|
7
|
+
data.tar.gz: 9ccb0dc7dfdb2703da8d6cc71c984bf17c4d3922e0b72e836113c302a1b4aa886401a30bc564ef0a58839911b578e98c8ed60a3edfb1e887a18c5a5d6ef1d480
|
data/CHANGELOG.md
CHANGED
@@ -5,6 +5,11 @@ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachang
|
|
5
5
|
|
6
6
|
## [Unreleased]
|
7
7
|
|
8
|
+
|
9
|
+
## [1.5.3] - 2017-08-17
|
10
|
+
### Fixed
|
11
|
+
- bin/check-es-query-ratio.rb: ratio is performed by a float division, instead of integer division (@cgarciaarano)
|
12
|
+
|
8
13
|
## [1.5.2] - 2017-08-12
|
9
14
|
### Fixed
|
10
15
|
- check-es-query-ratio.rb: Fix when divisor = 0 (@cgarciaarano)
|
@@ -175,7 +180,9 @@ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachang
|
|
175
180
|
### Added
|
176
181
|
- initial release
|
177
182
|
|
183
|
+
|
178
184
|
[Unreleased]: https://github.com/sensu-plugins/sensu-plugins-elasticsearch/compare/1.5.2...HEAD
|
185
|
+
[1.5.3]: https://github.com/sensu-plugins/sensu-plugins-elasticsearch/compare/1.5.2...1.5.3
|
179
186
|
[1.5.2]: https://github.com/sensu-plugins/sensu-plugins-elasticsearch/compare/1.5.1...1.5.2
|
180
187
|
[1.5.1]: https://github.com/sensu-plugins/sensu-plugins-elasticsearch/compare/1.5.0...1.5.1
|
181
188
|
[1.5.0]: https://github.com/sensu-plugins/sensu-plugins-elasticsearch/compare/1.4.1...1.5.0
|
data/bin/check-es-query-ratio.rb
CHANGED
@@ -257,7 +257,7 @@ class ESQueryRatio < Sensu::Plugin::Check::CLI
|
|
257
257
|
critical 'Divisor is 0, ratio check cannot be performed, raising an alert'
|
258
258
|
else
|
259
259
|
response = {}
|
260
|
-
response['count'] = (dividend['count'] / divisor['count'])
|
260
|
+
response['count'] = (dividend['count'].to_f / divisor['count'])
|
261
261
|
end
|
262
262
|
if config[:invert]
|
263
263
|
if response['count'] < config[:crit]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sensu-plugins-elasticsearch
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.3
|
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-08-
|
11
|
+
date: 2017-08-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|