sensu-plugins-elasticsearch 1.8.0 → 1.8.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 +4 -4
- data/CHANGELOG.md +6 -1
- data/bin/metrics-es-cluster.rb +2 -2
- data/lib/sensu-plugins-elasticsearch/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 720cdc17b2d10fcdfc68c0dbd0532e9d4e294c028b73af28100ab4c1aa306d79
|
|
4
|
+
data.tar.gz: 55b1d09d531b425f4e7de7f9adda6ab74b86a1ef6cbe0336d5fd6e6450c33312
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c22aaa388381a3a69daff55f291c7e5ae4a29939fcac6c542acaa80d1a99f49a11482907eac33a60c1b9cf768bd4b424316b2786cc57c3721c3b54c1b1c3274e
|
|
7
|
+
data.tar.gz: a87a86da753f25aae078b6fc28ed93198c3551d58e9f7a6ba230ee3b7d492758fc59357a67f51583fdaa63917d7755a9a95ddc112b9cef8f3927e6d47beca7fb
|
data/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,10 @@ This CHANGELOG follows the format listed [here](https://github.com/sensu-plugins
|
|
|
5
5
|
|
|
6
6
|
## [Unreleased]
|
|
7
7
|
|
|
8
|
+
## [1.8.1] - 2018-02-15
|
|
9
|
+
### Fixed
|
|
10
|
+
- metrics-es-cluster.rb: Don't try to fetch percolator stats on ES 5+, those stats have been removed (@eheydrick)
|
|
11
|
+
|
|
8
12
|
## [1.8.0] - 2017-11-21
|
|
9
13
|
### Added
|
|
10
14
|
- bin/check-es-heap.rb: added support to check heap usage of all nodes in a cluster (@cihangirbesiktas)
|
|
@@ -205,7 +209,8 @@ This CHANGELOG follows the format listed [here](https://github.com/sensu-plugins
|
|
|
205
209
|
- initial release
|
|
206
210
|
|
|
207
211
|
|
|
208
|
-
[Unreleased]: https://github.com/sensu-plugins/sensu-plugins-elasticsearch/compare/1.8.
|
|
212
|
+
[Unreleased]: https://github.com/sensu-plugins/sensu-plugins-elasticsearch/compare/1.8.1...HEAD
|
|
213
|
+
[1.8.1]: https://github.com/sensu-plugins/sensu-plugins-elasticsearch/compare/1.8.0...1.8.1
|
|
209
214
|
[1.8.0]: https://github.com/sensu-plugins/sensu-plugins-elasticsearch/compare/1.7.1...1.8.0
|
|
210
215
|
[1.7.1]: https://github.com/sensu-plugins/sensu-plugins-elasticsearch/compare/1.7.0...1.7.1
|
|
211
216
|
[1.7.0]: https://github.com/sensu-plugins/sensu-plugins-elasticsearch/compare/1.6.1...1.7.0
|
data/bin/metrics-es-cluster.rb
CHANGED
|
@@ -70,7 +70,7 @@ class ESClusterMetrics < Sensu::Plugin::Metric::CLI::Graphite
|
|
|
70
70
|
default: false
|
|
71
71
|
|
|
72
72
|
option :enable_percolate,
|
|
73
|
-
description: 'Enables percolator stats',
|
|
73
|
+
description: 'Enables percolator stats (ES 2 and older only)',
|
|
74
74
|
short: '-o',
|
|
75
75
|
long: '--enable-percolate',
|
|
76
76
|
default: false
|
|
@@ -166,7 +166,7 @@ class ESClusterMetrics < Sensu::Plugin::Metric::CLI::Graphite
|
|
|
166
166
|
cluster_metrics[cache_name]['evictions'] = cluster_stats['indices'][cache_name]['evictions']
|
|
167
167
|
cluster_metrics['mem'] = cluster_stats['nodes']['jvm']['mem']
|
|
168
168
|
|
|
169
|
-
if config[:enable_percolate]
|
|
169
|
+
if config[:enable_percolate] && Gem::Version.new(acquire_es_version) < Gem::Version.new('5.0.0')
|
|
170
170
|
cluster_metrics['percolate']['total'] = cluster_stats['indices']['percolate']['total']
|
|
171
171
|
cluster_metrics['percolate']['time_in_millis'] = cluster_stats['indices']['percolate']['time_in_millis']
|
|
172
172
|
cluster_metrics['percolate']['queries'] = cluster_stats['indices']['percolate']['queries']
|
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.8.
|
|
4
|
+
version: 1.8.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:
|
|
11
|
+
date: 2018-02-16 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rest-client
|
|
@@ -294,7 +294,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
294
294
|
version: '0'
|
|
295
295
|
requirements: []
|
|
296
296
|
rubyforge_project:
|
|
297
|
-
rubygems_version: 2.7.
|
|
297
|
+
rubygems_version: 2.7.5
|
|
298
298
|
signing_key:
|
|
299
299
|
specification_version: 4
|
|
300
300
|
summary: Sensu plugins for elasticsearch
|