sensu-plugins-storm 0.3.0 → 0.4.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: fc407ce47c8070b733f54dd4e3efc5336a758968
4
- data.tar.gz: c3b5b378300a26a4069f00bc42bb14aa8a9fa1d7
3
+ metadata.gz: 16b02fc7597faffce4fe00c4319627f0ab821085
4
+ data.tar.gz: 0be11f83aeefa0b3d21574c90d2d4be3d8529b48
5
5
  SHA512:
6
- metadata.gz: 839071bbc2b72b1059fd8ebba744db2dfe34d8866af166c8d95d317892843b60448ef459801d63838f52ed8cb8eac974953ce5c1c96e3740eef438b18a09f685
7
- data.tar.gz: a1af4cbe8313c7ea6ac3321f47117f7006526cb48352cb753194b34b08d578a6f49db269461fcd6d9be15fb456b205a1f658ef5ada9ebbde5bed69c0d141215f
6
+ metadata.gz: a2a908dea2955f86e2e313b56522e222ae8a98c7cbf8f49c76cc2fb00eaf136563d7d0e1d377db646b30beb4db174322646177fc925486c568891d75f21c575f
7
+ data.tar.gz: f40992729808d0da2f3923cb09898fd6fe837f4c9c402a8604d3e2286d8825d44d5b7708fd17f4a7ac4a969e67fd36344971becd518e84f85b6b70b12e4bdc2f
@@ -73,7 +73,7 @@ class CheckStormCapacity < Sensu::Plugin::Check::CLI
73
73
  end
74
74
 
75
75
  def run
76
- r = request('/stormui/api/v1/topology/summary')
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("/stormui/api/v1/topology/#{topology['id']}")
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
@@ -72,7 +72,7 @@ class CheckStormTopologies < Sensu::Plugin::Check::CLI
72
72
  end
73
73
 
74
74
  def run
75
- r = request('/stormui/api/v1/topology/summary')
75
+ r = request('/api/v1/topology/summary')
76
76
 
77
77
  if r.code != 200
78
78
  critical "unexpected status code '#{r.code}'"
@@ -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('/stormui/api/v1/topology/summary')
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("/stormui/api/v1/topology/#{topology['id']}")
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
@@ -1,7 +1,7 @@
1
1
  module SensuPluginsStorm
2
2
  module Version
3
3
  MAJOR = 0
4
- MINOR = 3
4
+ MINOR = 4
5
5
  PATCH = 0
6
6
 
7
7
  VER_STRING = [MAJOR, MINOR, PATCH].compact.join('.')
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.3.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-01 00:00:00.000000000 Z
11
+ date: 2016-09-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sensu-plugin