sensu-plugins-elasticsearch 3.0.0 → 4.2.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 +32 -1
- data/README.md +5 -0
- data/bin/metrics-es-cluster.rb +1 -1
- data/bin/metrics-es-node-graphite.rb +2 -2
- data/bin/metrics-es-node.rb +1 -1
- data/lib/sensu-plugins-elasticsearch/version.rb +3 -3
- metadata +23 -24
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5cc6e382b81ced2742f38d8e269f91334c9dfb22b7e1b3f81004a192493d82a0
|
4
|
+
data.tar.gz: 9c25eb061a1ec5bf71fbd26050bf32741df93e78ecc8d837c040136927eda3e3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c4733360bb8e7c8c03ddb25e9cb8e8445e3e306eb0f69d31860a100c802acd836dfc9f2de0a21a43842c04c58f5a659b296a194ab3e8913fb4079b7af30b2abf
|
7
|
+
data.tar.gz: e8327d1f1c275d376fc160ae56eda1ddca0e000ba9cdb9a0cf57b524768c067dfe87cbc4a16d097e5e8e0a52572fb141e4a11422b568c50f905adba7c0941c54
|
data/CHANGELOG.md
CHANGED
@@ -5,6 +5,32 @@ This CHANGELOG follows the format listed [here](https://github.com/sensu-plugins
|
|
5
5
|
|
6
6
|
## [Unreleased]
|
7
7
|
|
8
|
+
## [4.2.1] 2020-12-09
|
9
|
+
### Fixed
|
10
|
+
- metrics-es-node-graphite.rb: request URL now constructed correctly when `--cert-file` flag is used
|
11
|
+
|
12
|
+
## [4.2.0] 2020-05-11
|
13
|
+
### Added
|
14
|
+
- Updated asset build targets to support centos6
|
15
|
+
- Removed centos from bonsai asset definition
|
16
|
+
- Updated bundler requirement from '~> 1.7' to '~> 2.1'
|
17
|
+
|
18
|
+
## [4.1.0] 2020-01-09
|
19
|
+
### Changed
|
20
|
+
- Update rest-client requirement from `= 1.8.0` to `= 2.1.0` (@dependabot-preview)
|
21
|
+
|
22
|
+
## [4.0.1] - 2019-06-21
|
23
|
+
### Fixed
|
24
|
+
- Fix for JSON.parse in metrics checks commands that inheret from Sensu::Plugin::Metric::CLI::JSON:Class
|
25
|
+
|
26
|
+
## [4.0.0] - 2019-05-07
|
27
|
+
### Breaking Changes
|
28
|
+
- Bump `sensu-plugin` dependency from `~> 3.0` to `~> 4.0` you can read the changelog entries for [4.0](https://github.com/sensu-plugins/sensu-plugin/blob/master/CHANGELOG.md#400---2018-02-17), [3.0](https://github.com/sensu-plugins/sensu-plugin/blob/master/CHANGELOG.md#300---2018-12-04), and [2.0](https://github.com/sensu-plugins/sensu-plugin/blob/master/CHANGELOG.md#v200---2017-03-29)
|
29
|
+
|
30
|
+
### Added
|
31
|
+
- Travis build automation to generate Sensu Asset tarballs that can be used n conjunction with Sensu provided ruby runtime assets and the Bonsai Asset Index
|
32
|
+
- Require latest sensu-plugin for [Sensu Go support](https://github.com/sensu-plugins/sensu-plugin#sensu-go-enablement)
|
33
|
+
|
8
34
|
## [3.0.0] - 2018-12-17
|
9
35
|
### Breaking Changes
|
10
36
|
- removed ruby support for versions `< 2.3` (@majormoses)
|
@@ -259,7 +285,12 @@ This CHANGELOG follows the format listed [here](https://github.com/sensu-plugins
|
|
259
285
|
- initial release
|
260
286
|
|
261
287
|
|
262
|
-
[Unreleased]: https://github.com/sensu-plugins/sensu-plugins-elasticsearch/compare/
|
288
|
+
[Unreleased]: https://github.com/sensu-plugins/sensu-plugins-elasticsearch/compare/4.2.1...HEAD
|
289
|
+
[4.2.1]: https://github.com/sensu-plugins/sensu-plugins-elasticsearch/compare/4.2.0...4.2.1
|
290
|
+
[4.2.0]: https://github.com/sensu-plugins/sensu-plugins-elasticsearch/compare/4.1.0...4.2.0
|
291
|
+
[4.1.0]: https://github.com/sensu-plugins/sensu-plugins-elasticsearch/compare/4.0.1...4.1.0
|
292
|
+
[4.0.1]: https://github.com/sensu-plugins/sensu-plugins-elasticsearch/compare/4.0.0...4.0.1
|
293
|
+
[4.0.0]: https://github.com/sensu-plugins/sensu-plugins-elasticsearch/compare/3.0.0...4.0.0
|
263
294
|
[3.0.0]: https://github.com/sensu-plugins/sensu-plugins-elasticsearch/compare/2.1.0...3.0.0
|
264
295
|
[2.1.0]: https://github.com/sensu-plugins/sensu-plugins-elasticsearch/compare/2.0.1...2.1.0
|
265
296
|
[2.0.1]: https://github.com/sensu-plugins/sensu-plugins-elasticsearch/compare/2.0.0...2.0.1
|
data/README.md
CHANGED
@@ -5,6 +5,10 @@
|
|
5
5
|
[![Code Climate](https://codeclimate.com/github/sensu-plugins/sensu-plugins-elasticsearch/badges/gpa.svg)](https://codeclimate.com/github/sensu-plugins/sensu-plugins-elasticsearch)
|
6
6
|
[![Test Coverage](https://codeclimate.com/github/sensu-plugins/sensu-plugins-elasticsearch/badges/coverage.svg)](https://codeclimate.com/github/sensu-plugins/sensu-plugins-elasticsearch)
|
7
7
|
[![Dependency Status](https://gemnasium.com/sensu-plugins/sensu-plugins-elasticsearch.svg)](https://gemnasium.com/sensu-plugins/sensu-plugins-elasticsearch)
|
8
|
+
[![Sensu Bonsai Asset](https://img.shields.io/badge/Bonsai-Download%20Me-brightgreen.svg?colorB=89C967&logo=sensu)](https://bonsai.sensu.io/assets/sensu-plugins/sensu-plugins-elasticsearch)
|
9
|
+
|
10
|
+
## Sensu Asset
|
11
|
+
The Sensu assets packaged from this repository are built against the Sensu ruby runtime environment. When using these assets as part of a Sensu Go resource (check, mutator or handler), make sure you include the corresponding Sensu ruby runtime asset in the list of assets needed by the resource. The current ruby-runtime assets can be found [here](https://bonsai.sensu.io/assets/sensu/sensu-ruby-runtime) in the [Bonsai Asset Index](bonsai.sensu.io).
|
8
12
|
|
9
13
|
## Functionality
|
10
14
|
|
@@ -34,6 +38,7 @@
|
|
34
38
|
[Installation and Setup](http://sensu-plugins.io/docs/installation_instructions.html)
|
35
39
|
|
36
40
|
## Notes
|
41
|
+
When using `handler-es-delete-indices.rb` with Sensu Go, you will need to use the event mapping commandline option, see `handler-es-delete-indices.rb --help` for details. And please read [the sensu-plugin README](https://github.com/sensu-plugins/sensu-plugin#sensu-go-enablement) for more information on the event mapping functionality.
|
37
42
|
|
38
43
|
## Testing
|
39
44
|
|
data/bin/metrics-es-cluster.rb
CHANGED
@@ -122,7 +122,7 @@ class ESClusterMetrics < Sensu::Plugin::Metric::CLI::Graphite
|
|
122
122
|
timeout: config[:timeout],
|
123
123
|
headers: headers)
|
124
124
|
end
|
125
|
-
JSON.parse(r.get)
|
125
|
+
::JSON.parse(r.get)
|
126
126
|
rescue Errno::ECONNREFUSED
|
127
127
|
warning 'Connection refused'
|
128
128
|
rescue RestClient::RequestTimeout
|
@@ -133,7 +133,7 @@ class ESNodeGraphiteMetrics < Sensu::Plugin::Metric::CLI::Graphite
|
|
133
133
|
end
|
134
134
|
|
135
135
|
r = if config[:cert_file]
|
136
|
-
RestClient::Resource.new("#{protocol}://#{config[:
|
136
|
+
RestClient::Resource.new("#{protocol}://#{config[:server]}:#{config[:port]}#{resource}?pretty",
|
137
137
|
ssl_ca_file: config[:cert_file].to_s,
|
138
138
|
timeout: config[:timeout],
|
139
139
|
headers: headers)
|
@@ -142,7 +142,7 @@ class ESNodeGraphiteMetrics < Sensu::Plugin::Metric::CLI::Graphite
|
|
142
142
|
timeout: config[:timeout],
|
143
143
|
headers: headers)
|
144
144
|
end
|
145
|
-
JSON.parse(r.get)
|
145
|
+
::JSON.parse(r.get)
|
146
146
|
rescue Errno::ECONNREFUSED
|
147
147
|
warning 'Connection refused'
|
148
148
|
rescue RestClient::RequestTimeout
|
data/bin/metrics-es-node.rb
CHANGED
@@ -103,7 +103,7 @@ class ESMetrics < Sensu::Plugin::Metric::CLI::Graphite
|
|
103
103
|
timeout: config[:timeout],
|
104
104
|
headers: headers)
|
105
105
|
end
|
106
|
-
JSON.parse(r.get)
|
106
|
+
::JSON.parse(r.get)
|
107
107
|
rescue Errno::ECONNREFUSED
|
108
108
|
warning 'Connection refused'
|
109
109
|
rescue RestClient::RequestTimeout
|
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:
|
4
|
+
version: 4.2.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: 2020-12-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-es-transport
|
@@ -70,42 +70,42 @@ dependencies:
|
|
70
70
|
requirements:
|
71
71
|
- - '='
|
72
72
|
- !ruby/object:Gem::Version
|
73
|
-
version: 1.
|
73
|
+
version: 2.1.0
|
74
74
|
type: :runtime
|
75
75
|
prerelease: false
|
76
76
|
version_requirements: !ruby/object:Gem::Requirement
|
77
77
|
requirements:
|
78
78
|
- - '='
|
79
79
|
- !ruby/object:Gem::Version
|
80
|
-
version: 1.
|
80
|
+
version: 2.1.0
|
81
81
|
- !ruby/object:Gem::Dependency
|
82
82
|
name: sensu-plugin
|
83
83
|
requirement: !ruby/object:Gem::Requirement
|
84
84
|
requirements:
|
85
85
|
- - "~>"
|
86
86
|
- !ruby/object:Gem::Version
|
87
|
-
version: '
|
87
|
+
version: '4.0'
|
88
88
|
type: :runtime
|
89
89
|
prerelease: false
|
90
90
|
version_requirements: !ruby/object:Gem::Requirement
|
91
91
|
requirements:
|
92
92
|
- - "~>"
|
93
93
|
- !ruby/object:Gem::Version
|
94
|
-
version: '
|
94
|
+
version: '4.0'
|
95
95
|
- !ruby/object:Gem::Dependency
|
96
96
|
name: bundler
|
97
97
|
requirement: !ruby/object:Gem::Requirement
|
98
98
|
requirements:
|
99
99
|
- - "~>"
|
100
100
|
- !ruby/object:Gem::Version
|
101
|
-
version: '1
|
101
|
+
version: '2.1'
|
102
102
|
type: :development
|
103
103
|
prerelease: false
|
104
104
|
version_requirements: !ruby/object:Gem::Requirement
|
105
105
|
requirements:
|
106
106
|
- - "~>"
|
107
107
|
- !ruby/object:Gem::Version
|
108
|
-
version: '1
|
108
|
+
version: '2.1'
|
109
109
|
- !ruby/object:Gem::Dependency
|
110
110
|
name: codeclimate-test-reporter
|
111
111
|
requirement: !ruby/object:Gem::Requirement
|
@@ -188,14 +188,14 @@ dependencies:
|
|
188
188
|
requirements:
|
189
189
|
- - "~>"
|
190
190
|
- !ruby/object:Gem::Version
|
191
|
-
version: '
|
191
|
+
version: '13.0'
|
192
192
|
type: :development
|
193
193
|
prerelease: false
|
194
194
|
version_requirements: !ruby/object:Gem::Requirement
|
195
195
|
requirements:
|
196
196
|
- - "~>"
|
197
197
|
- !ruby/object:Gem::Version
|
198
|
-
version: '
|
198
|
+
version: '13.0'
|
199
199
|
- !ruby/object:Gem::Dependency
|
200
200
|
name: redcarpet
|
201
201
|
requirement: !ruby/object:Gem::Requirement
|
@@ -272,24 +272,24 @@ description: |-
|
|
272
272
|
service health and metrics for cluster, node, and more.
|
273
273
|
email: "<sensu-users@googlegroups.com>"
|
274
274
|
executables:
|
275
|
-
-
|
275
|
+
- check-es-indexes.rb
|
276
276
|
- metrics-es-cluster.rb
|
277
|
-
- check-es-
|
278
|
-
- check-es-cluster-status.rb
|
277
|
+
- check-es-circuit-breakers.rb
|
279
278
|
- check-es-heap.rb
|
280
|
-
-
|
281
|
-
-
|
279
|
+
- metrics-es-node.rb
|
280
|
+
- handler-es-delete-indices.rb
|
281
|
+
- check-es-node-status.rb
|
282
|
+
- check-es-file-descriptors.rb
|
282
283
|
- check-es-indices-sizes.rb
|
283
|
-
- metrics-es-node-graphite.rb
|
284
|
-
- check-es-circuit-breakers.rb
|
285
|
-
- check-es-indices-field-count.rb
|
286
|
-
- check-es-query-count.rb
|
287
284
|
- check-es-query-exists.rb
|
285
|
+
- check-es-indices-field-count.rb
|
286
|
+
- check-es-query-ratio.rb
|
288
287
|
- check-es-shard-allocation-status.rb
|
289
|
-
- check-es-node-status.rb
|
290
288
|
- check-es-query-average.rb
|
291
|
-
-
|
292
|
-
- check-es-
|
289
|
+
- metrics-es-node-graphite.rb
|
290
|
+
- check-es-query-count.rb
|
291
|
+
- check-es-cluster-status.rb
|
292
|
+
- check-es-cluster-health.rb
|
293
293
|
extensions: []
|
294
294
|
extra_rdoc_files: []
|
295
295
|
files:
|
@@ -343,8 +343,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
343
343
|
- !ruby/object:Gem::Version
|
344
344
|
version: '0'
|
345
345
|
requirements: []
|
346
|
-
|
347
|
-
rubygems_version: 2.7.8
|
346
|
+
rubygems_version: 3.0.8
|
348
347
|
signing_key:
|
349
348
|
specification_version: 4
|
350
349
|
summary: Sensu plugins for elasticsearch
|