rabbithutch 0.0.3 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +9 -5
- data/README.md +6 -6
- data/config.yaml +4 -4
- data/lib/configurator.rb +5 -1
- data/rabbithutch.gemspec +4 -4
- metadata +6 -21
data/Gemfile.lock
CHANGED
@@ -1,14 +1,16 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
rabbithutch (0.0.
|
4
|
+
rabbithutch (0.0.4)
|
5
5
|
amqp
|
6
|
+
bson_ext
|
6
7
|
daemons
|
7
8
|
eventmachine
|
8
9
|
log4r
|
9
10
|
logger
|
10
11
|
logger
|
11
12
|
mongo
|
13
|
+
mongo_ext
|
12
14
|
mq
|
13
15
|
thor
|
14
16
|
yard
|
@@ -19,26 +21,28 @@ GEM
|
|
19
21
|
activesupport (3.2.9)
|
20
22
|
i18n (~> 0.6)
|
21
23
|
multi_json (~> 1.0)
|
22
|
-
amq-client (0.9.
|
24
|
+
amq-client (0.9.9)
|
23
25
|
amq-protocol (>= 0.9.4)
|
24
26
|
eventmachine
|
25
|
-
amq-protocol (1.0.
|
27
|
+
amq-protocol (1.0.0)
|
26
28
|
amqp (0.9.8)
|
27
29
|
amq-client (~> 0.9.5)
|
28
30
|
amq-protocol (>= 0.9.4)
|
29
31
|
eventmachine
|
30
32
|
bson (1.8.0)
|
31
33
|
activesupport
|
34
|
+
bson_ext (1.8.0)
|
35
|
+
bson (~> 1.8.0)
|
32
36
|
daemons (1.1.9)
|
33
37
|
eventmachine (1.0.0)
|
34
|
-
eventmachine (1.0.0-x86-mingw32)
|
35
38
|
i18n (0.6.1)
|
36
39
|
log4r (1.1.10)
|
37
40
|
logger (1.2.8)
|
38
41
|
mongo (1.8.0)
|
39
42
|
bson (~> 1.8.0)
|
43
|
+
mongo_ext (0.19.3)
|
40
44
|
mq (0.1.3)
|
41
|
-
multi_json (1.
|
45
|
+
multi_json (1.3.7)
|
42
46
|
thor (0.16.0)
|
43
47
|
yard (0.8.3)
|
44
48
|
|
data/README.md
CHANGED
@@ -20,22 +20,22 @@ output, a log file or a MongoDb Database.
|
|
20
20
|
|
21
21
|
# Installation
|
22
22
|
|
23
|
-
##
|
23
|
+
##Activate tracing on rabbitmq server
|
24
24
|
|
25
25
|
run the following command on each server you want to trace
|
26
26
|
rabbitmqctl trace_on
|
27
27
|
|
28
|
-
##
|
28
|
+
##Install the rabbit-hutch service
|
29
29
|
|
30
30
|
gem install rabbithutch
|
31
31
|
|
32
32
|
# Usage
|
33
33
|
|
34
|
-
Run as a command line process
|
35
|
-
rabbithutch run
|
34
|
+
Run as a command line process with a config file
|
35
|
+
rabbithutch run -- ~/config.yaml
|
36
36
|
|
37
37
|
Run as a service
|
38
|
-
rabbithutch start
|
38
|
+
rabbithutch start -- ~/config.yaml
|
39
39
|
|
40
40
|
For help on the service
|
41
41
|
rabbithutch
|
@@ -68,7 +68,7 @@ output, a log file or a MongoDb Database.
|
|
68
68
|
consumers_config:
|
69
69
|
consumers:
|
70
70
|
- name: console_consumer
|
71
|
-
enabled:
|
71
|
+
enabled: true
|
72
72
|
- name: mongo_consumer
|
73
73
|
enabled: true
|
74
74
|
hostname: 127.0.0.1
|
data/config.yaml
CHANGED
@@ -4,12 +4,12 @@ application:
|
|
4
4
|
|
5
5
|
rabbitmq:
|
6
6
|
hosts:
|
7
|
-
- displayname:
|
7
|
+
- displayname: localserver
|
8
8
|
enabled: true
|
9
9
|
hostname: 127.0.0.1
|
10
10
|
username: guest
|
11
11
|
password: guest
|
12
|
-
- displayname:
|
12
|
+
- displayname: anotherserver
|
13
13
|
enabled: false
|
14
14
|
hostname: 127.0.0.2
|
15
15
|
username: guest
|
@@ -20,13 +20,13 @@ consumers_config:
|
|
20
20
|
- name: console_consumer
|
21
21
|
enabled: true
|
22
22
|
- name: mongo_consumer
|
23
|
-
enabled:
|
23
|
+
enabled: true
|
24
24
|
hostname: 127.0.0.1
|
25
25
|
username: guest
|
26
26
|
password: guest
|
27
27
|
database_prefix: rhutch_
|
28
28
|
port: 27017
|
29
29
|
- name: log4r_consumer
|
30
|
-
enabled:
|
30
|
+
enabled: true
|
31
31
|
log_location: /tmp
|
32
32
|
log_prefix: rhutch_
|
data/lib/configurator.rb
CHANGED
@@ -6,7 +6,11 @@ module RabbitHutch
|
|
6
6
|
attr_accessor :config
|
7
7
|
|
8
8
|
def initialize options
|
9
|
-
|
9
|
+
|
10
|
+
file = ARGV[0] || (File.dirname(__FILE__) + '/../config.yaml')
|
11
|
+
|
12
|
+
puts "Using config from #{file}"
|
13
|
+
|
10
14
|
unless File.exists? file
|
11
15
|
raise "Configuration file [#{file}] doesn't exist"
|
12
16
|
end
|
data/rabbithutch.gemspec
CHANGED
@@ -4,11 +4,12 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |gem|
|
6
6
|
gem.name = %q{rabbithutch}
|
7
|
-
gem.version = "0.0.
|
7
|
+
gem.version = "0.0.5"
|
8
8
|
gem.authors = ["John Ryan"]
|
9
9
|
gem.email = ["555john@gmail.com"]
|
10
|
-
gem.description = %q{RabbitMq Trace Logger
|
11
|
-
|
10
|
+
gem.description = %q{RabbitMq Trace Logger - Listen to multiple RabbitMq instances and log them to a
|
11
|
+
single location or MongoDb database. }
|
12
|
+
gem.summary = %q{A ruby service for monotoring the trace output on RabbitMq Nodes and writing the output to console, Log files or MongoDb}
|
12
13
|
gem.homepage = %q{http://github.com/jnyryan/}
|
13
14
|
|
14
15
|
gem.extra_rdoc_files = ["LICENSE.txt","README.md" ]
|
@@ -19,7 +20,6 @@ Gem::Specification.new do |gem|
|
|
19
20
|
|
20
21
|
gem.rdoc_options << '--exclude spec/testfiles'
|
21
22
|
|
22
|
-
gem.add_dependency "logger"
|
23
23
|
gem.add_dependency "amqp"
|
24
24
|
gem.add_dependency "bson_ext"
|
25
25
|
gem.add_dependency "daemons"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rabbithutch
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,24 +9,8 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-12-
|
12
|
+
date: 2012-12-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
|
-
- !ruby/object:Gem::Dependency
|
15
|
-
name: logger
|
16
|
-
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
|
-
requirements:
|
19
|
-
- - ! '>='
|
20
|
-
- !ruby/object:Gem::Version
|
21
|
-
version: '0'
|
22
|
-
type: :runtime
|
23
|
-
prerelease: false
|
24
|
-
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
|
-
requirements:
|
27
|
-
- - ! '>='
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: '0'
|
30
14
|
- !ruby/object:Gem::Dependency
|
31
15
|
name: amqp
|
32
16
|
requirement: !ruby/object:Gem::Requirement
|
@@ -203,7 +187,8 @@ dependencies:
|
|
203
187
|
- - ! '>='
|
204
188
|
- !ruby/object:Gem::Version
|
205
189
|
version: '0'
|
206
|
-
description: RabbitMq Trace Logger
|
190
|
+
description: ! "RabbitMq Trace Logger - Listen to multiple RabbitMq instances and
|
191
|
+
log them to a \nsingle location or MongoDb database. "
|
207
192
|
email:
|
208
193
|
- 555john@gmail.com
|
209
194
|
executables:
|
@@ -255,7 +240,7 @@ rubyforge_project:
|
|
255
240
|
rubygems_version: 1.8.24
|
256
241
|
signing_key:
|
257
242
|
specification_version: 3
|
258
|
-
summary:
|
259
|
-
|
243
|
+
summary: A ruby service for monotoring the trace output on RabbitMq Nodes and writing
|
244
|
+
the output to console, Log files or MongoDb
|
260
245
|
test_files: []
|
261
246
|
has_rdoc:
|