sensu-plugins-turbine 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cc03c14037e40e024e445472354c99029efbe75e
4
- data.tar.gz: adc58b6972c4b12f3b52daef0901c009b9769c17
3
+ metadata.gz: cef31953abcf2895a5a879428f0f48b6fece6814
4
+ data.tar.gz: 354d69aee115a63d7f1e6688542a8115be310594
5
5
  SHA512:
6
- metadata.gz: 12e55c88c8ff05168722d6d6262b826a4828c3c8ff1c15b29ef3d477ada46643eae3f8c6571f042d0fb6fdfa1f293f948f917de53e9a4cfdb86e46efa64fdb45
7
- data.tar.gz: 9771f455ebf715554a344d47024a66ad8d7320f6d730abb3970195b6d042b1d8e3f24a816655ef9a221df6d277d4c4c5b09eb760582e67084ade4fb686a40616
6
+ metadata.gz: 8f5922c388c3180a4f09b218a1e3d27291252210f8a0c5caf3cc6d34dc2723ea29ea635ac4953291ff899b2c10612466df00a2cc64da4e9908045cf39cfc5170
7
+ data.tar.gz: c1602bb722cb967bb161a2b80399e4d2bfe4e2430da46cfc6ac5905885c335c29f00e5cd66b87bc8e629b6df02d4a535dcd866cf583d9ea45d1339ef390a0a76
@@ -57,15 +57,15 @@ class PodsMetrics < Sensu::Plugin::Metric::CLI::Graphite
57
57
  info = %w(rollingCountSuccess currentActiveCount currentConcurrentExecutionCount rollingMaxConcurrentExecutionCount rollingCountBadRequests)
58
58
  EM.run do
59
59
  source = EventMachine::EventSource.new(@url)
60
+ source start
60
61
  source.message do |message|
61
62
  json_data = JSON.parse(message)
62
63
  if json_data['name'] == @thread_pool
63
64
  info.size.times { |i| output "#{@scheme}.#{json_data['name']}.#{info[i]}", json_data[info[i]] }
64
65
  source.close
66
+ ok
65
67
  end
66
68
  end
67
- source.start
68
69
  end
69
- ok
70
70
  end
71
71
  end
@@ -2,7 +2,7 @@ module SensuPluginsTurbine
2
2
  module Version
3
3
  MAJOR = 1
4
4
  MINOR = 0
5
- PATCH = 2
5
+ PATCH = 3
6
6
 
7
7
  VER_STRING = [MAJOR, MINOR, PATCH].compact.join('.')
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sensu-plugins-turbine
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - mickfeech and contributors