collective-metrics 0.1.7 → 0.1.8

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: 4cb6a3af4d8ae2e708d50477db9a7d45698e25df
4
- data.tar.gz: 4703c136c0ecd1c92df59a7d9760844c0396a203
3
+ metadata.gz: 810aa1d55260b763346a7a7856bbbc8b5ac88c2c
4
+ data.tar.gz: 805b06a7ecf6ec18fa75ba89d43679d8d42d2a4a
5
5
  SHA512:
6
- metadata.gz: 711e741ab84bb27f07605b9fef95865e8a143acceeb0c4eae319b04dc6a047ca09e8269e1b25977853096996c4d1761b1737e09babebcbba30210afc32ab021e
7
- data.tar.gz: d702d1bc7c7dc818257173fc1f003d26cea5bb778af07ad72e68b903d6822ac6b950d46e1a87ab6c6a1e7c0c1a59310af6b20c116b24962063b91cc3e060b038
6
+ metadata.gz: bb51c38e45e37d1710939f37513d5545823accb6e166cb5f2fc67d5d0d3b583b51b1cc71b3316c38aaaff758756820ab618947e4cbbb14c1d8a1e16de18d91a6
7
+ data.tar.gz: b8af3fa41c3e14725f590f65cc1092932651834a701a9344d63a06fb092bb0f3adb0fa20aaa99130526947f23ee308841263721ad45aabefe7e79a44526966d5
@@ -7,10 +7,21 @@ module Collective::Collectors
7
7
  collect do
8
8
  instrument_overview
9
9
  instrument_queues
10
+ instrument_channels
10
11
  end
11
12
 
12
13
  private
13
14
 
15
+ def instrument_channels
16
+ nodes = client.get('nodes').body
17
+
18
+ group 'rabbitmq' do |group|
19
+ nodes.each do |node|
20
+ instrument_hash(group, node, source: node['name'])
21
+ end
22
+ end
23
+ end
24
+
14
25
  def instrument_overview
15
26
  overview = client.get('overview').body
16
27
 
@@ -34,6 +45,7 @@ module Collective::Collectors
34
45
  end
35
46
 
36
47
  def instrument_hash(group, hash, options={})
48
+ return unless hash.respond_to?(:each)
37
49
  hash.each do |key, val|
38
50
  case val
39
51
  when Hash
@@ -1,3 +1,3 @@
1
1
  module Collective
2
- VERSION = '0.1.7'
2
+ VERSION = '0.1.8'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: collective-metrics
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric J. Holmes
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-12-04 00:00:00.000000000 Z
11
+ date: 2014-02-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rufus-scheduler
@@ -175,7 +175,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
175
175
  version: '0'
176
176
  requirements: []
177
177
  rubyforge_project:
178
- rubygems_version: 2.0.3
178
+ rubygems_version: 2.0.14
179
179
  signing_key:
180
180
  specification_version: 4
181
181
  summary: Collect and output metrics