sensu-plugins-redis 3.0.1 → 3.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 +13 -1
- data/bin/metrics-redis-graphite.rb +7 -3
- data/lib/redis_client_options.rb +9 -0
- data/lib/sensu-plugins-redis/version.rb +2 -2
- metadata +9 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 347bac9c2395fc0c296f2ec37dbe51995542cbc0f52bc5ba83808d924534b8c6
|
4
|
+
data.tar.gz: 1f83c55dba4720c4a087bdc360f835f82348bfd3fd23a410520422eb41a96794
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e072f61a4c6a6b86c4e2110fa1f0b27e91d48465884cf0ce9bc26dd56725ef33ad5e9679cd21fe9d59ee21dcd3a2e24dc1f2ae27fc7cfa6bed07f7ebbf3afcb1
|
7
|
+
data.tar.gz: 1e0e4ed28e073fca6031089a61152656e7a0dd50eb70100c78996a1c8f01b6bfba912dc2d89bd1470273f143041b8539d7edd8342b20d1b5953f06c626c69de7
|
data/CHANGELOG.md
CHANGED
@@ -6,6 +6,17 @@ Which is based on [Keep A Changelog](http://keepachangelog.com/)
|
|
6
6
|
|
7
7
|
## [Unreleased]
|
8
8
|
|
9
|
+
## [3.1.0] - 2019-03-04
|
10
|
+
### Added
|
11
|
+
- added a `--transport (redis|rediss)` option to allow connecting to redis via TLS (@mindriot88)
|
12
|
+
|
13
|
+
### Changed
|
14
|
+
- metrics-redis-graphite.rb: update list of skip keys in `SKIP_KEYS_REGEX` (@boutetnico)
|
15
|
+
|
16
|
+
### Removed
|
17
|
+
- commented out integration testing for now :sadpanda: as it appears there was some change to redis and our bootstrap is not working the way it was originally used. The disable should be temp and when someone has the time to work through it we should be good to bring this back in. (@majormoses)
|
18
|
+
- removed testing from tagged releases for EOL versions of ruby, this should still test them on push to master but this reduces the ammount of time that it takes to make a release (@majormoses)
|
19
|
+
|
9
20
|
## [3.0.1] - 2018-03-28
|
10
21
|
### Security
|
11
22
|
- updated yard dependency to `~> 0.9.11` per: https://nvd.nist.gov/vuln/detail/CVE-2017-17042 (@majormoses)
|
@@ -148,7 +159,8 @@ Which is based on [Keep A Changelog](http://keepachangelog.com/)
|
|
148
159
|
### Added
|
149
160
|
- initial release
|
150
161
|
|
151
|
-
[Unreleased]: https://github.com/sensu-plugins/sensu-plugins-redis/compare/3.0
|
162
|
+
[Unreleased]: https://github.com/sensu-plugins/sensu-plugins-redis/compare/3.1.0...HEAD
|
163
|
+
[3.1.0]: https://github.com/sensu-plugins/sensu-plugins-redis/compare/3.0.1...3.1.0
|
152
164
|
[3.0.1]: https://github.com/sensu-plugins/sensu-plugins-redis/compare/3.0.0...3.0.1
|
153
165
|
[3.0.0]: https://github.com/sensu-plugins/sensu-plugins-redis/compare/2.4.0...3.0.0
|
154
166
|
[2.4.0]: https://github.com/sensu-plugins/sensu-plugins-redis/compare/2.3.2...2.4.0
|
@@ -23,16 +23,18 @@ class Redis2Graphite < Sensu::Plugin::Metric::CLI::Graphite
|
|
23
23
|
'aof_last_bgrewrite_status',
|
24
24
|
'aof_last_write_status',
|
25
25
|
'arch_bits',
|
26
|
+
'atomicvar_api',
|
26
27
|
'config_file',
|
27
28
|
'executable',
|
28
29
|
'gcc_version',
|
29
30
|
'master_host',
|
30
31
|
'master_link_status',
|
31
32
|
'master_port',
|
32
|
-
'
|
33
|
-
'multiplexing_api',
|
33
|
+
'master_replid',
|
34
34
|
'maxmemory_human',
|
35
35
|
'maxmemory_policy',
|
36
|
+
'mem_allocator',
|
37
|
+
'multiplexing_api',
|
36
38
|
'os',
|
37
39
|
'process_id',
|
38
40
|
'rdb_last_bgsave_status',
|
@@ -44,10 +46,12 @@ class Redis2Graphite < Sensu::Plugin::Metric::CLI::Graphite
|
|
44
46
|
'run_id',
|
45
47
|
'tcp_port',
|
46
48
|
'total_system_memory_human',
|
49
|
+
'used_memory_dataset_perc',
|
47
50
|
'used_memory_human',
|
48
51
|
'used_memory_lua_human',
|
49
52
|
'used_memory_peak_human',
|
50
|
-
'
|
53
|
+
'used_memory_peak_human',
|
54
|
+
'used_memory_peak_perc'
|
51
55
|
].freeze
|
52
56
|
|
53
57
|
option :scheme,
|
data/lib/redis_client_options.rb
CHANGED
@@ -14,6 +14,7 @@ module RedisClientOptions
|
|
14
14
|
opts[:password] = config[:password] if config[:password]
|
15
15
|
opts[:timeout] = config[:timeout] if config[:timeout]
|
16
16
|
opts[:db] = config[:database] if config[:database]
|
17
|
+
opts[:scheme] = config[:transport] if config[:transport]
|
17
18
|
|
18
19
|
if config[:socket]
|
19
20
|
opts[:path] = config[:socket]
|
@@ -68,6 +69,14 @@ module RedisClientOptions
|
|
68
69
|
long: '--password PASSWORD',
|
69
70
|
description: 'Redis Password to connect with'
|
70
71
|
|
72
|
+
option :transport,
|
73
|
+
short: '-T TRANSPORT',
|
74
|
+
long: '--transport TRANSPORT',
|
75
|
+
description: 'Redis transport protocol to use',
|
76
|
+
required: false,
|
77
|
+
default: Redis::Client::DEFAULTS[:scheme],
|
78
|
+
in: %w[redis rediss]
|
79
|
+
|
71
80
|
option :conn_failure_status,
|
72
81
|
long: '--conn-failure-status EXIT_STATUS',
|
73
82
|
description: 'Returns the following exit status for Redis connection failures',
|
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: 3.0
|
4
|
+
version: 3.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:
|
11
|
+
date: 2019-03-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sensu-plugin
|
@@ -112,22 +112,22 @@ dependencies:
|
|
112
112
|
name: mixlib-shellout
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
|
-
- - "<"
|
116
|
-
- !ruby/object:Gem::Version
|
117
|
-
version: 2.3.0
|
118
115
|
- - "~>"
|
119
116
|
- !ruby/object:Gem::Version
|
120
117
|
version: '2.2'
|
118
|
+
- - "<"
|
119
|
+
- !ruby/object:Gem::Version
|
120
|
+
version: 2.3.0
|
121
121
|
type: :development
|
122
122
|
prerelease: false
|
123
123
|
version_requirements: !ruby/object:Gem::Requirement
|
124
124
|
requirements:
|
125
|
-
- - "<"
|
126
|
-
- !ruby/object:Gem::Version
|
127
|
-
version: 2.3.0
|
128
125
|
- - "~>"
|
129
126
|
- !ruby/object:Gem::Version
|
130
127
|
version: '2.2'
|
128
|
+
- - "<"
|
129
|
+
- !ruby/object:Gem::Version
|
130
|
+
version: 2.3.0
|
131
131
|
- !ruby/object:Gem::Dependency
|
132
132
|
name: pry
|
133
133
|
requirement: !ruby/object:Gem::Requirement
|
@@ -302,8 +302,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
302
302
|
- !ruby/object:Gem::Version
|
303
303
|
version: '0'
|
304
304
|
requirements: []
|
305
|
-
|
306
|
-
rubygems_version: 2.7.6
|
305
|
+
rubygems_version: 3.0.3
|
307
306
|
signing_key:
|
308
307
|
specification_version: 4
|
309
308
|
summary: Sensu plugins for working with redis
|