sensu-plugins-redis 2.0.1 → 2.1.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 +10 -1
- data/bin/check-redis-list-length.rb +1 -1
- data/bin/metrics-redis-llen.rb +9 -0
- data/lib/sensu-plugins-redis/version.rb +2 -2
- 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: 95d40c387c2be3a670542ee8f85b998469e838d8
|
4
|
+
data.tar.gz: d0fdeb6f6cc01353cda70684f3b60c9c2661401b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6dd2060d15cf3ae5fbbaddf3253f08a8081cd0c28fc026e502cc698595c3a59cc5ce6405256a9f58f2327da87c8d9a5bbe953a151e338c2a2ebab75e56d5d173
|
7
|
+
data.tar.gz: fceb1b85ed10ebd82a85d9ad4fb5e6fca317404df8b439c7cc48610748845eee93c33186d8b7765ae5998ad21dac6b0c68f034708c20176a47623e92494cedd2
|
data/CHANGELOG.md
CHANGED
@@ -5,6 +5,14 @@ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachang
|
|
5
5
|
|
6
6
|
## [Unreleased]
|
7
7
|
|
8
|
+
## [2.1.0] - 2017-08-17
|
9
|
+
### Added
|
10
|
+
- metrics-redis-llen.rb config option to choose db (@athal7)
|
11
|
+
|
12
|
+
### Fixed
|
13
|
+
- check-redis-list-length.rb socket option referenced correctly (@athal7)
|
14
|
+
- metrics-redis-llen.rb socket option referenced correctly (@athal7)
|
15
|
+
|
8
16
|
## [2.0.1] - 2017-08-15
|
9
17
|
### Fixed
|
10
18
|
- metrics-redis-graphite.rb, metrics-redis-llen.rb: rename short option for `--scheme` from `-s` to `-S` to resolve conflict. (@stuwil)
|
@@ -94,7 +102,8 @@ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachang
|
|
94
102
|
### Added
|
95
103
|
- initial release
|
96
104
|
|
97
|
-
[Unreleased]: https://github.com/sensu-plugins/sensu-plugins-redis/compare/2.0
|
105
|
+
[Unreleased]: https://github.com/sensu-plugins/sensu-plugins-redis/compare/2.1.0...HEAD
|
106
|
+
[2.1.0]: https://github.com/sensu-plugins/sensu-plugins-redis/compare/2.0.1...2.1.0
|
98
107
|
[2.0.1]: https://github.com/sensu-plugins/sensu-plugins-redis/compare/2.0.0...2.0.1
|
99
108
|
[2.0.0]: https://github.com/sensu-plugins/sensu-plugins-redis/compare/1.4.0...2.0.0
|
100
109
|
[1.4.0]: https://github.com/sensu-plugins/sensu-plugins-redis/compare/1.3.1...1.4.0
|
data/bin/metrics-redis-llen.rb
CHANGED
@@ -30,6 +30,14 @@ class RedisListLengthMetric < Sensu::Plugin::Metric::CLI::Graphite
|
|
30
30
|
proc: proc(&:to_i),
|
31
31
|
default: 6379
|
32
32
|
|
33
|
+
option :database,
|
34
|
+
short: '-n DATABASE',
|
35
|
+
long: '--dbnumber DATABASE',
|
36
|
+
description: 'Redis database number to connect to',
|
37
|
+
proc: proc(&:to_i),
|
38
|
+
required: false,
|
39
|
+
default: 0
|
40
|
+
|
33
41
|
option :password,
|
34
42
|
short: '-P PASSWORD',
|
35
43
|
long: '--password PASSWORD',
|
@@ -60,6 +68,7 @@ class RedisListLengthMetric < Sensu::Plugin::Metric::CLI::Graphite
|
|
60
68
|
{ host: config[:host], port: config[:port] }
|
61
69
|
end
|
62
70
|
|
71
|
+
options[:db] = config[:database]
|
63
72
|
options[:password] = config[:password] if config[:password]
|
64
73
|
redis = Redis.new(options)
|
65
74
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sensu-plugins-redis
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0
|
4
|
+
version: 2.1.0
|
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-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sensu-plugin
|