sensu-plugins-kafka 0.9.1 → 0.10.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 +4 -4
- data/CHANGELOG.md +5 -0
- data/bin/check-topic.rb +4 -2
- data/lib/sensu-plugins-kafka/version.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5c93da52d25828077e631c7df8689db514736130
|
|
4
|
+
data.tar.gz: 2e25ea38deb92b0e572572d46574d801115b126e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4d6e510d8279861a0d4caa747ea6c7c831fdf46616b3f4eddc46e379d1a6a23f54f0139c3f086a6efea7188aaa1051a73e156e594310f9c33141837db90276c3
|
|
7
|
+
data.tar.gz: 5cc8c7555331c040b82462a2dfff5ee0e93bdcbc95a6a5693b963fca9c453c9b928a06c30268c56997e5ba6d41ec2cf6d1ed78aeeae0f04e6254c3149b90fc11
|
data/CHANGELOG.md
CHANGED
data/bin/check-topic.rb
CHANGED
|
@@ -106,8 +106,10 @@ class TopicsCheck < Sensu::Plugin::Check::CLI
|
|
|
106
106
|
partitions.each do |num, replica|
|
|
107
107
|
state_json = z.get(path: "/brokers/topics/#{config[:name]}/partitions/#{num}/state")[:data]
|
|
108
108
|
state = JSON.parse(state_json)
|
|
109
|
-
critical "Topic '#{config[:name]}', unknown leader #{state['leader']}" unless brokers.include? state['leader']
|
|
110
|
-
critical "Topic '#{config[:name]}', partition #{num} preferred replica is not #{replica[0]}" unless replica[0] == state['leader']
|
|
109
|
+
critical "Topic '#{config[:name]}', partition #{num}: unknown leader #{state['leader']}" unless brokers.include? state['leader']
|
|
110
|
+
critical "Topic '#{config[:name]}', partition #{num}: preferred replica is not #{replica[0]}" unless replica[0] == state['leader']
|
|
111
|
+
critical "Topic '#{config[:name]}', partition #{num}: isr is not consistent" unless (replica - state['isr']).empty? && (state['isr'] - replica).empty?
|
|
112
|
+
critical "Topic '#{config[:name]}', partition #{num}: unknown isr #{state['isr'] - brokers}" unless (state['isr'] - brokers).empty?
|
|
111
113
|
end
|
|
112
114
|
end
|
|
113
115
|
|