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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8b183d4a82da442f67d93145f8988f110873107b
4
- data.tar.gz: ec3f82c37e683b17f5ff5fb2d3b67d46bf368b58
3
+ metadata.gz: 5c93da52d25828077e631c7df8689db514736130
4
+ data.tar.gz: 2e25ea38deb92b0e572572d46574d801115b126e
5
5
  SHA512:
6
- metadata.gz: dd5c2c768a9d9169e68b4bd3a85f099dce72b3d58d20ac02a471802a057dc0baf736bb11dfd641ecc197e2a8955eceb54d7ede3575dac582001163a0d8066b77
7
- data.tar.gz: 9b14fe6c4587ebbf855f5e57651810ac578ce8ee677303b411befc872dfee7f33a6c7b2144454b50a9073c81dc6afdc9964d8b912cb8dd64f69caa10976aa2ac
6
+ metadata.gz: 4d6e510d8279861a0d4caa747ea6c7c831fdf46616b3f4eddc46e379d1a6a23f54f0139c3f086a6efea7188aaa1051a73e156e594310f9c33141837db90276c3
7
+ data.tar.gz: 5cc8c7555331c040b82462a2dfff5ee0e93bdcbc95a6a5693b963fca9c453c9b928a06c30268c56997e5ba6d41ec2cf6d1ed78aeeae0f04e6254c3149b90fc11
data/CHANGELOG.md CHANGED
@@ -10,6 +10,11 @@ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachang
10
10
  ### Fixed
11
11
  ### Changed
12
12
 
13
+ ## [0.10.0] - 2017-02-16
14
+
15
+ ### Added
16
+ - check-topic.rb: check isr
17
+
13
18
  ## [0.9.1] - 2017-02-16
14
19
 
15
20
  ### Fixed
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
 
@@ -5,8 +5,8 @@ module SensuPluginsKafka
5
5
  # This defines the version of the gem
6
6
  module Version
7
7
  MAJOR = 0
8
- MINOR = 9
9
- PATCH = 1
8
+ MINOR = 10
9
+ PATCH = 0
10
10
 
11
11
  VER_STRING = [MAJOR, MINOR, PATCH].compact.join('.')
12
12
  end
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.9.1
4
+ version: 0.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sensu-Plugins and contributors