sensu-plugins-elasticsearch 1.5.1 → 1.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -1
- 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: 006634a93bb47a27e9fe55204fef9c6b347c7ce7
|
4
|
+
data.tar.gz: ca2839e73ce925d31cb0b19eaab84f5c77637cb8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8bf7de52696f427738a2385ddbb982025a26bb96a7a8b2a2411dd256478662475bacc4bf7d21ff8bfba5b18afb81aa4d6a6b8a7c51731808c1c1ce18e1b725a4
|
7
|
+
data.tar.gz: 45e61b866a04019d531af3796b923f1826ff5a13316ea9f9300837147924e1dca497ba0a6f62d6cbd856a8f747bfc34546ac1438347762d4d1880518f8f19e28
|
data/CHANGELOG.md
CHANGED
@@ -5,6 +5,9 @@ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachang
|
|
5
5
|
|
6
6
|
## [Unreleased]
|
7
7
|
|
8
|
+
## [1.5.2] - 2017-08-12
|
9
|
+
### Fixed
|
10
|
+
- check-es-query-ratio.rb: Fix when divisor = 0 (@cgarciaarano)
|
8
11
|
## [1.5.1] - 2017-08-03
|
9
12
|
### Fixed
|
10
13
|
- bin/metrics-es-cluster.rb: missing data no longer causes invalid metrics by defaulting to 0 (@TheKevJames)
|
@@ -172,7 +175,8 @@ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachang
|
|
172
175
|
### Added
|
173
176
|
- initial release
|
174
177
|
|
175
|
-
[Unreleased]: https://github.com/sensu-plugins/sensu-plugins-elasticsearch/compare/1.5.
|
178
|
+
[Unreleased]: https://github.com/sensu-plugins/sensu-plugins-elasticsearch/compare/1.5.2...HEAD
|
179
|
+
[1.5.2]: https://github.com/sensu-plugins/sensu-plugins-elasticsearch/compare/1.5.1...1.5.2
|
176
180
|
[1.5.1]: https://github.com/sensu-plugins/sensu-plugins-elasticsearch/compare/1.5.0...1.5.1
|
177
181
|
[1.5.0]: https://github.com/sensu-plugins/sensu-plugins-elasticsearch/compare/1.4.1...1.5.0
|
178
182
|
[1.4.1]: https://github.com/sensu-plugins/sensu-plugins-elasticsearch/compare/1.4.0...1.4.1
|
data/bin/check-es-query-ratio.rb
CHANGED
@@ -253,7 +253,7 @@ class ESQueryRatio < Sensu::Plugin::Check::CLI
|
|
253
253
|
dividend = client.count(build_request_options)
|
254
254
|
config[:query] = divisor_query
|
255
255
|
divisor = client.count(build_request_options)
|
256
|
-
if divisor == 0
|
256
|
+
if divisor['count'] == 0
|
257
257
|
critical 'Divisor is 0, ratio check cannot be performed, raising an alert'
|
258
258
|
else
|
259
259
|
response = {}
|
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.2
|
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-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|