rabbithutch 0.0.2 → 0.0.3

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.
Files changed (5) hide show
  1. data/Gemfile.lock +6 -11
  2. data/README.md +66 -9
  3. data/config.yaml +4 -4
  4. data/rabbithutch.gemspec +1 -2
  5. metadata +1 -17
data/Gemfile.lock CHANGED
@@ -1,18 +1,15 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rabbithutch (0.0.1)
4
+ rabbithutch (0.0.2)
5
5
  amqp
6
- bson_ext
7
6
  daemons
8
7
  eventmachine
9
8
  log4r
10
9
  logger
11
10
  logger
12
11
  mongo
13
- mongo_ext
14
12
  mq
15
- redcarpet
16
13
  thor
17
14
  yard
18
15
 
@@ -22,34 +19,32 @@ GEM
22
19
  activesupport (3.2.9)
23
20
  i18n (~> 0.6)
24
21
  multi_json (~> 1.0)
25
- amq-client (0.9.9)
22
+ amq-client (0.9.10)
26
23
  amq-protocol (>= 0.9.4)
27
24
  eventmachine
28
- amq-protocol (1.0.0)
25
+ amq-protocol (1.0.1)
29
26
  amqp (0.9.8)
30
27
  amq-client (~> 0.9.5)
31
28
  amq-protocol (>= 0.9.4)
32
29
  eventmachine
33
30
  bson (1.8.0)
34
31
  activesupport
35
- bson_ext (1.8.0)
36
- bson (~> 1.8.0)
37
32
  daemons (1.1.9)
38
33
  eventmachine (1.0.0)
34
+ eventmachine (1.0.0-x86-mingw32)
39
35
  i18n (0.6.1)
40
36
  log4r (1.1.10)
41
37
  logger (1.2.8)
42
38
  mongo (1.8.0)
43
39
  bson (~> 1.8.0)
44
- mongo_ext (0.19.3)
45
40
  mq (0.1.3)
46
- multi_json (1.3.7)
47
- redcarpet (2.2.2)
41
+ multi_json (1.5.0)
48
42
  thor (0.16.0)
49
43
  yard (0.8.3)
50
44
 
51
45
  PLATFORMS
52
46
  ruby
47
+ x86-mingw32
53
48
 
54
49
  DEPENDENCIES
55
50
  rabbithutch!
data/README.md CHANGED
@@ -1,29 +1,86 @@
1
1
  #rabbit-hutch
2
2
 
3
- RabbitMq Trace Logger
3
+ RabbitMq Trace Logger - Listen to multiple RabbitMq instances and log them to a
4
+ single location or MongoDb database.
4
5
 
5
6
  # Overview
6
7
 
7
- This is a ruby service for monotoring the trace output on RabbitMq Nodes and writing the output to console, Log files or MongoDb
8
+ A ruby service for monotoring the trace output on RabbitMq Nodes and writing the
9
+ output to console, Log files or MongoDb.
8
10
 
9
- #Technologies Used
11
+ Once tracing is started on the target rabbitMQ nodes, the service creates a queue
12
+ "rabbithutch" that binds to the exchange "amq.rabbitmq.trace". All messages that arrive
13
+ on the queue are then picked up by any registered consumers and written to standard
14
+ output, a log file or a MongoDb Database.
10
15
 
11
- *Ruby
12
- *Deamonizr
16
+ # Environment
13
17
 
14
- # Setup & Installation
15
-
16
- gem install rabbithutch
18
+ * Linux
19
+ * Windows
20
+
21
+ # Installation
22
+
23
+ ## Activate tracing on rabbitmq server
17
24
 
25
+ run the following command on each server you want to trace
26
+ rabbitmqctl trace_on
27
+
28
+ ## Install the rabbit-hutch service
29
+
30
+ gem install rabbithutch
31
+
32
+ # Usage
33
+
18
34
  Run as a command line process
19
35
  rabbithutch run
20
36
 
21
37
  Run as a service
22
38
  rabbithutch start
23
39
 
24
- For help
40
+ For help on the service
25
41
  rabbithutch
42
+
43
+ # Configuration
26
44
 
45
+ To add RabbitMq nodes to monitor and consumers to enable you will need to change the configuration.
46
+
47
+ The config below shows two RabbitMq nodes with each with console, mongoDb and log file consumers
48
+
49
+ ./config.yaml
50
+
51
+ application:
52
+ exchangename: amq.rabbitmq.trace
53
+ queuename: rabbithutch
54
+
55
+ rabbitmq:
56
+ hosts:
57
+ - displayname: local1
58
+ enabled: true
59
+ hostname: 127.0.0.1
60
+ username: guest
61
+ password: guest
62
+ - displayname: local2
63
+ enabled: false
64
+ hostname: 127.2.2.2
65
+ username: guest
66
+ password: guest
67
+
68
+ consumers_config:
69
+ consumers:
70
+ - name: console_consumer
71
+ enabled: false
72
+ - name: mongo_consumer
73
+ enabled: true
74
+ hostname: 127.0.0.1
75
+ username: guest
76
+ password: guest
77
+ database_prefix: rhutch_
78
+ port: 27017
79
+ - name: log4r_consumer
80
+ enabled: true
81
+ log_location: /tmp
82
+ log_prefix: rhutch_
83
+
27
84
  #Contributing
28
85
 
29
86
  Fork it
data/config.yaml CHANGED
@@ -11,22 +11,22 @@ rabbitmq:
11
11
  password: guest
12
12
  - displayname: local2
13
13
  enabled: false
14
- hostname: 127.0.0.1
14
+ hostname: 127.0.0.2
15
15
  username: guest
16
16
  password: guest
17
17
 
18
18
  consumers_config:
19
19
  consumers:
20
20
  - name: console_consumer
21
- enabled: false
22
- - name: mongo_consumer
23
21
  enabled: true
22
+ - name: mongo_consumer
23
+ enabled: false
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: true
30
+ enabled: false
31
31
  log_location: /tmp
32
32
  log_prefix: rhutch_
data/rabbithutch.gemspec CHANGED
@@ -4,7 +4,7 @@ $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.2"
7
+ gem.version = "0.0.3"
8
8
  gem.authors = ["John Ryan"]
9
9
  gem.email = ["555john@gmail.com"]
10
10
  gem.description = %q{RabbitMq Trace Logger}
@@ -29,7 +29,6 @@ Gem::Specification.new do |gem|
29
29
  gem.add_dependency "mq"
30
30
  gem.add_dependency "mongo"
31
31
  gem.add_dependency "mongo_ext"
32
- gem.add_dependency "redcarpet"
33
32
  gem.add_dependency "thor"
34
33
  gem.add_dependency "yard"
35
34
 
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.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -171,22 +171,6 @@ dependencies:
171
171
  - - ! '>='
172
172
  - !ruby/object:Gem::Version
173
173
  version: '0'
174
- - !ruby/object:Gem::Dependency
175
- name: redcarpet
176
- requirement: !ruby/object:Gem::Requirement
177
- none: false
178
- requirements:
179
- - - ! '>='
180
- - !ruby/object:Gem::Version
181
- version: '0'
182
- type: :runtime
183
- prerelease: false
184
- version_requirements: !ruby/object:Gem::Requirement
185
- none: false
186
- requirements:
187
- - - ! '>='
188
- - !ruby/object:Gem::Version
189
- version: '0'
190
174
  - !ruby/object:Gem::Dependency
191
175
  name: thor
192
176
  requirement: !ruby/object:Gem::Requirement