sensu-plugins-redis 2.0.1 → 2.1.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 828afc0628da1e0593c09d9f216b0bdef71eb5da
4
- data.tar.gz: 559acb1c97cd58c4d857b5675c618477c8facb5b
3
+ metadata.gz: 95d40c387c2be3a670542ee8f85b998469e838d8
4
+ data.tar.gz: d0fdeb6f6cc01353cda70684f3b60c9c2661401b
5
5
  SHA512:
6
- metadata.gz: 799200948340d2b9828a769dcaccf57177b950632db4f1f9f65af18117ac8a146dde6131aba5212e60817967937a0df7f742706534e97d7f254d57c61cc22c9f
7
- data.tar.gz: 04e95210aa5a86f6b2af221f05f8f14e5751a2220ab2e9eb28d3fbced12246d0c70b89d0b50619466064c883811b39e2dd28821f8ca8762c9c35191338b7cb3b
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.1...HEAD
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
@@ -77,7 +77,7 @@ class RedisListLengthCheck < Sensu::Plugin::Check::CLI
77
77
 
78
78
  def run
79
79
  options = if config[:socket]
80
- { path: socket }
80
+ { path: config[:socket] }
81
81
  else
82
82
  { host: config[:host], port: config[:port] }
83
83
  end
@@ -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
 
@@ -1,8 +1,8 @@
1
1
  module SensuPluginsRedis
2
2
  module Version
3
3
  MAJOR = 2
4
- MINOR = 0
5
- PATCH = 1
4
+ MINOR = 1
5
+ PATCH = 0
6
6
 
7
7
  VER_STRING = [MAJOR, MINOR, PATCH].compact.join('.')
8
8
  end
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.1
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-17 00:00:00.000000000 Z
11
+ date: 2017-08-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sensu-plugin