sensu-plugins-storm 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/check-storm-capacity.rb +2 -2
- data/bin/check-storm-topologies.rb +1 -1
- data/bin/metrics-storm-topologies.rb +3 -4
- data/lib/sensu-plugins-storm/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 16b02fc7597faffce4fe00c4319627f0ab821085
|
4
|
+
data.tar.gz: 0be11f83aeefa0b3d21574c90d2d4be3d8529b48
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a2a908dea2955f86e2e313b56522e222ae8a98c7cbf8f49c76cc2fb00eaf136563d7d0e1d377db646b30beb4db174322646177fc925486c568891d75f21c575f
|
7
|
+
data.tar.gz: f40992729808d0da2f3923cb09898fd6fe837f4c9c402a8604d3e2286d8825d44d5b7708fd17f4a7ac4a969e67fd36344971becd518e84f85b6b70b12e4bdc2f
|
data/bin/check-storm-capacity.rb
CHANGED
@@ -73,7 +73,7 @@ class CheckStormCapacity < Sensu::Plugin::Check::CLI
|
|
73
73
|
end
|
74
74
|
|
75
75
|
def run
|
76
|
-
r = request('/
|
76
|
+
r = request('/api/v1/topology/summary')
|
77
77
|
|
78
78
|
if r.code != 200
|
79
79
|
critical "unexpected status code '#{r.code}'"
|
@@ -81,7 +81,7 @@ class CheckStormCapacity < Sensu::Plugin::Check::CLI
|
|
81
81
|
|
82
82
|
topologies = JSON.parse(r.to_str)['topologies']
|
83
83
|
topologies.each do |topology|
|
84
|
-
t = request("/
|
84
|
+
t = request("/api/v1/topology/#{topology['id']}")
|
85
85
|
if t.code != 200
|
86
86
|
critical "unexpected status code '#{r.code}'"
|
87
87
|
end
|
@@ -67,18 +67,17 @@ class MetricsStormCapacity < Sensu::Plugin::Metric::CLI::Graphite
|
|
67
67
|
def run
|
68
68
|
metrics = %w(emitted tasks failed executors processLatency executeLatency transferred capacity acked executed)
|
69
69
|
|
70
|
-
r = request('/
|
70
|
+
r = request('/api/v1/topology/summary')
|
71
71
|
|
72
72
|
topologies = JSON.parse(r.to_str)['topologies']
|
73
73
|
topologies.each do |topology|
|
74
|
-
t = request("/
|
74
|
+
t = request("/api/v1/topology/#{topology['id']}")
|
75
75
|
|
76
76
|
bolts = JSON.parse(t.to_str)['bolts']
|
77
77
|
bolts.each do |bolt|
|
78
78
|
metrics.each { |metric| output "#{config[:scheme]}.#{topology['name']}.#{bolt['boltId']}.#{metric}", bolt[metric] }
|
79
79
|
end
|
80
|
-
|
81
|
-
ok
|
82
80
|
end
|
81
|
+
ok
|
83
82
|
end
|
84
83
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sensu-plugins-storm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andy Royle
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-09-
|
11
|
+
date: 2016-09-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sensu-plugin
|