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 +4 -4
- data/bin/metrics-turbine.rb +2 -2
- data/lib/sensu-plugins-turbine/version.rb +1 -1
- 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: cef31953abcf2895a5a879428f0f48b6fece6814
|
4
|
+
data.tar.gz: 354d69aee115a63d7f1e6688542a8115be310594
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8f5922c388c3180a4f09b218a1e3d27291252210f8a0c5caf3cc6d34dc2723ea29ea635ac4953291ff899b2c10612466df00a2cc64da4e9908045cf39cfc5170
|
7
|
+
data.tar.gz: c1602bb722cb967bb161a2b80399e4d2bfe4e2430da46cfc6ac5905885c335c29f00e5cd66b87bc8e629b6df02d4a535dcd866cf583d9ea45d1339ef390a0a76
|
data/bin/metrics-turbine.rb
CHANGED
@@ -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
|