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 +4 -4
- data/lib/collective/collectors/rabbitmq.rb +12 -0
- data/lib/collective/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 810aa1d55260b763346a7a7856bbbc8b5ac88c2c
|
4
|
+
data.tar.gz: 805b06a7ecf6ec18fa75ba89d43679d8d42d2a4a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/collective/version.rb
CHANGED
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.
|
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:
|
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.
|
178
|
+
rubygems_version: 2.0.14
|
179
179
|
signing_key:
|
180
180
|
specification_version: 4
|
181
181
|
summary: Collect and output metrics
|