sensu-plugins-redis 2.2.2 → 2.3.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 +8 -2
- data/bin/metrics-redis-llen.rb +6 -3
- data/lib/sensu-plugins-redis/version.rb +2 -2
- metadata +61 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 510e91ccc0d8e58148396b4e61037abcb7389ab0ac2af0302eafded20f772c99
|
4
|
+
data.tar.gz: c421f28a6621afd01f2cec99afea1ca2eec2b66861201461a7e3e71d58f87f2c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e6db91c546252b6876ef148d1ff429bd64f50fa860287ffd13a70a49e19b7e7c4cdef2340104548210e332b916051ceebf8c5743b1cee76670b6bd006f0d66cb
|
7
|
+
data.tar.gz: 8d3677f37dedf02c904b7d07eed376660aa812f51d8b040f3ca0953632d3c821569388b873e0a61467e0abad1dde66e5c946344243264f6435a2a356123d6441
|
data/CHANGELOG.md
CHANGED
@@ -6,7 +6,12 @@ Which is based on [Keep A Changelog](http://keepachangelog.com/)
|
|
6
6
|
|
7
7
|
## [Unreleased]
|
8
8
|
|
9
|
-
## [2.
|
9
|
+
## [2.3.0] - 2017-11-12
|
10
|
+
### Added
|
11
|
+
- metrics-redis-llen.rb - Support passing multiple comma separated keys (@Evesy)
|
12
|
+
- Integration tests (@evesy)
|
13
|
+
|
14
|
+
## [2.2.2] - 2017-11-11
|
10
15
|
### Fixed
|
11
16
|
- check-redis-key.rb: Fix the wording of the check output on warning/critical states (@evesy)
|
12
17
|
|
@@ -118,7 +123,8 @@ Which is based on [Keep A Changelog](http://keepachangelog.com/)
|
|
118
123
|
### Added
|
119
124
|
- initial release
|
120
125
|
|
121
|
-
[Unreleased]: https://github.com/sensu-plugins/sensu-plugins-redis/compare/2.
|
126
|
+
[Unreleased]: https://github.com/sensu-plugins/sensu-plugins-redis/compare/2.3.0...HEAD
|
127
|
+
[2.3.0]: https://github.com/sensu-plugins/sensu-plugins-redis/compare/2.2.2...2.3.0
|
122
128
|
[2.2.2]: https://github.com/sensu-plugins/sensu-plugins-redis/compare/2.2.1...2.2.2
|
123
129
|
[2.2.1]: https://github.com/sensu-plugins/sensu-plugins-redis/compare/2.2.0...2.2.1
|
124
130
|
[2.2.0]:https://github.com/sensu-plugins/sensu-plugins-redis/compare/2.1.0...2.2.0
|
data/bin/metrics-redis-llen.rb
CHANGED
@@ -50,9 +50,9 @@ class RedisListLengthMetric < Sensu::Plugin::Metric::CLI::Graphite
|
|
50
50
|
default: "#{Socket.gethostname}.redis"
|
51
51
|
|
52
52
|
option :key,
|
53
|
-
short: '-k
|
53
|
+
short: '-k KEY1,KEY2',
|
54
54
|
long: '--key KEY',
|
55
|
-
description: '
|
55
|
+
description: 'Comma separated list of keys to check',
|
56
56
|
required: true
|
57
57
|
|
58
58
|
option :conn_failure_status,
|
@@ -62,6 +62,7 @@ class RedisListLengthMetric < Sensu::Plugin::Metric::CLI::Graphite
|
|
62
62
|
in: %w(unknown warning critical)
|
63
63
|
|
64
64
|
def run
|
65
|
+
redis_keys = config[:key].split(',')
|
65
66
|
options = if config[:socket]
|
66
67
|
{ path: socket }
|
67
68
|
else
|
@@ -72,7 +73,9 @@ class RedisListLengthMetric < Sensu::Plugin::Metric::CLI::Graphite
|
|
72
73
|
options[:password] = config[:password] if config[:password]
|
73
74
|
redis = Redis.new(options)
|
74
75
|
|
75
|
-
|
76
|
+
redis_keys.each do |key|
|
77
|
+
output "#{config[:scheme]}.#{key}.items", redis.llen(key)
|
78
|
+
end
|
76
79
|
ok
|
77
80
|
rescue
|
78
81
|
send(config[:conn_failure_status], "Could not connect to Redis server on #{config[:host]}:#{config[:port]}")
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sensu-plugins-redis
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sensu-Plugins and contributors
|
@@ -164,6 +164,62 @@ dependencies:
|
|
164
164
|
- - "~>"
|
165
165
|
- !ruby/object:Gem::Version
|
166
166
|
version: '0.8'
|
167
|
+
- !ruby/object:Gem::Dependency
|
168
|
+
name: serverspec
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - "~>"
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: 2.36.1
|
174
|
+
type: :development
|
175
|
+
prerelease: false
|
176
|
+
version_requirements: !ruby/object:Gem::Requirement
|
177
|
+
requirements:
|
178
|
+
- - "~>"
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: 2.36.1
|
181
|
+
- !ruby/object:Gem::Dependency
|
182
|
+
name: test-kitchen
|
183
|
+
requirement: !ruby/object:Gem::Requirement
|
184
|
+
requirements:
|
185
|
+
- - "~>"
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
version: 1.16.0
|
188
|
+
type: :development
|
189
|
+
prerelease: false
|
190
|
+
version_requirements: !ruby/object:Gem::Requirement
|
191
|
+
requirements:
|
192
|
+
- - "~>"
|
193
|
+
- !ruby/object:Gem::Version
|
194
|
+
version: 1.16.0
|
195
|
+
- !ruby/object:Gem::Dependency
|
196
|
+
name: kitchen-docker
|
197
|
+
requirement: !ruby/object:Gem::Requirement
|
198
|
+
requirements:
|
199
|
+
- - "~>"
|
200
|
+
- !ruby/object:Gem::Version
|
201
|
+
version: '2.6'
|
202
|
+
type: :development
|
203
|
+
prerelease: false
|
204
|
+
version_requirements: !ruby/object:Gem::Requirement
|
205
|
+
requirements:
|
206
|
+
- - "~>"
|
207
|
+
- !ruby/object:Gem::Version
|
208
|
+
version: '2.6'
|
209
|
+
- !ruby/object:Gem::Dependency
|
210
|
+
name: kitchen-localhost
|
211
|
+
requirement: !ruby/object:Gem::Requirement
|
212
|
+
requirements:
|
213
|
+
- - "~>"
|
214
|
+
- !ruby/object:Gem::Version
|
215
|
+
version: '0.3'
|
216
|
+
type: :development
|
217
|
+
prerelease: false
|
218
|
+
version_requirements: !ruby/object:Gem::Requirement
|
219
|
+
requirements:
|
220
|
+
- - "~>"
|
221
|
+
- !ruby/object:Gem::Version
|
222
|
+
version: '0.3'
|
167
223
|
description: |-
|
168
224
|
This plugin provides native Redis instrumentation
|
169
225
|
for monitoring and metrics collection, including:
|
@@ -172,15 +228,15 @@ description: |-
|
|
172
228
|
and more.
|
173
229
|
email: "<sensu-users@googlegroups.com>"
|
174
230
|
executables:
|
231
|
+
- check-redis-memory.rb
|
175
232
|
- check-redis-info.rb
|
176
|
-
- check-redis-keys.rb
|
177
233
|
- check-redis-list-length.rb
|
234
|
+
- check-redis-keys.rb
|
178
235
|
- check-redis-memory-percentage.rb
|
179
|
-
- check-redis-memory.rb
|
180
236
|
- check-redis-ping.rb
|
181
|
-
- check-redis-slave-status.rb
|
182
|
-
- metrics-redis-graphite.rb
|
183
237
|
- metrics-redis-llen.rb
|
238
|
+
- metrics-redis-graphite.rb
|
239
|
+
- check-redis-slave-status.rb
|
184
240
|
extensions: []
|
185
241
|
extra_rdoc_files: []
|
186
242
|
files:
|