sensu-plugins-kafka 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/check-consumer-lag.rb +2 -2
- data/bin/check-topics.rb +1 -1
- data/bin/metrics-consumer.rb +1 -1
- data/lib/sensu-plugins-kafka/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a09ab63e78936e0174ef6f8ca7d1e1cea331caf4
|
4
|
+
data.tar.gz: 554616f878528db92c56d46ae9763654a0c6e41d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 04932000aa5b1f9f93408fc3b5a4af6b33c438e8c71ff8712dff929ad01a7c86eef7257461d5b5a1ad13ca80d58bcc61ec30a005542853ff45ed266123f2ae8b
|
7
|
+
data.tar.gz: 098f6600de86567df678a16b417b06fdd0a02e9ec52915c6af24fb4a7c1adac149c21592910e227dc53fcd6969112aef7848ddf68d8f364699b4c233941a191a
|
data/bin/check-consumer-lag.rb
CHANGED
@@ -95,7 +95,7 @@ class ConsumerLagCheck < Sensu::Plugin::Check::CLI
|
|
95
95
|
end
|
96
96
|
|
97
97
|
# run command and return a hash from the output
|
98
|
-
# @param
|
98
|
+
# @param cmd [String]
|
99
99
|
def run_offset(cmd)
|
100
100
|
read_lines(cmd).drop(1).map do |line|
|
101
101
|
line_to_hash(line, :group, :topic, :pid, :offset, :logsize, :lag, :owner)
|
@@ -103,7 +103,7 @@ class ConsumerLagCheck < Sensu::Plugin::Check::CLI
|
|
103
103
|
end
|
104
104
|
|
105
105
|
# run command and return a hash from the output
|
106
|
-
# @param
|
106
|
+
# @param cmd [String]
|
107
107
|
def run_topics(cmd)
|
108
108
|
topics = []
|
109
109
|
read_lines(cmd).map do |line|
|
data/bin/check-topics.rb
CHANGED
@@ -61,7 +61,7 @@ class TopicCheck < Sensu::Plugin::Check::CLI
|
|
61
61
|
end
|
62
62
|
|
63
63
|
# run command and return a hash from the output
|
64
|
-
# @param
|
64
|
+
# @param cmd [String]
|
65
65
|
def run_cmd(cmd)
|
66
66
|
read_lines(cmd).drop(1).map do |line|
|
67
67
|
line_to_hash(line, :_, :topic, :_, :partition, :_, :leader, :_, :replicas, :_, :isr)
|
data/bin/metrics-consumer.rb
CHANGED
@@ -78,7 +78,7 @@ class ConsumerOffsetMetrics < Sensu::Plugin::Metric::CLI::Graphite
|
|
78
78
|
end
|
79
79
|
|
80
80
|
# run command and return a hash from the output
|
81
|
-
# @param
|
81
|
+
# @param cmd [String]
|
82
82
|
def run_cmd(cmd)
|
83
83
|
read_lines(cmd).drop(1).map do |line|
|
84
84
|
line_to_hash(line, :group, :topic, :pid, :offset, :logsize, :lag, :owner)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sensu-plugins-kafka
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sensu-Plugins and contributors
|
@@ -154,9 +154,9 @@ dependencies:
|
|
154
154
|
description: Sensu plugins for Kafka
|
155
155
|
email: "<sensu-users@googlegroups.com>"
|
156
156
|
executables:
|
157
|
-
- metrics-consumer.rb
|
158
157
|
- check-consumer-lag.rb
|
159
158
|
- check-topics.rb
|
159
|
+
- metrics-consumer.rb
|
160
160
|
extensions: []
|
161
161
|
extra_rdoc_files: []
|
162
162
|
files:
|
@@ -194,7 +194,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
194
194
|
version: '0'
|
195
195
|
requirements: []
|
196
196
|
rubyforge_project:
|
197
|
-
rubygems_version: 2.4.
|
197
|
+
rubygems_version: 2.4.5
|
198
198
|
signing_key:
|
199
199
|
specification_version: 4
|
200
200
|
summary: Sensu plugins for Kafka
|