newrelic-rmq-plugin 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +10 -3
- data/Gemfile.lock +64 -0
- data/lib/newrelic-rmq-plugin/agent.rb +6 -6
- data/lib/newrelic-rmq-plugin/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b5f2cb45aecb7f8f8979269863d67b8141d04ffd
|
4
|
+
data.tar.gz: ec03d303eb1d8b6dc3149085f0c7d767c3534771
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3964d3fe9f6b39a7ac276a9b19c98081096cc816582eafdd0c6f02e895a67c4418dda1469cde1a163606bca2f6fc6703133f78282f0f29b2f5a1eb5f335c09ec
|
7
|
+
data.tar.gz: 8254e985f98a35672cc1a2dec4ee4dbc9540e8a1f87af42e0bd6badda497273b7c6198271d52307c574ff4439a038db81f020fdbca983fc9c385acf164211180
|
data/.gitignore
CHANGED
data/Gemfile.lock
ADDED
@@ -0,0 +1,64 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
newrelic-rmq-plugin (0.1.2)
|
5
|
+
mixlib-cli (~> 1.7)
|
6
|
+
newrelic_plugin
|
7
|
+
rabbitmq_manager (~> 0.3.0)
|
8
|
+
|
9
|
+
GEM
|
10
|
+
remote: http://rubygems.org/
|
11
|
+
specs:
|
12
|
+
ast (2.3.0)
|
13
|
+
diff-lcs (1.2.5)
|
14
|
+
faraday (0.9.2)
|
15
|
+
multipart-post (>= 1.2, < 3)
|
16
|
+
faraday_middleware (0.10.0)
|
17
|
+
faraday (>= 0.7.4, < 0.10)
|
18
|
+
json (2.0.2)
|
19
|
+
mixlib-cli (1.7.0)
|
20
|
+
multipart-post (2.0.0)
|
21
|
+
newrelic_plugin (1.3.1)
|
22
|
+
json
|
23
|
+
parser (2.3.1.4)
|
24
|
+
ast (~> 2.2)
|
25
|
+
powerpack (0.1.1)
|
26
|
+
rabbitmq_manager (0.3.0)
|
27
|
+
faraday
|
28
|
+
faraday_middleware
|
29
|
+
rainbow (2.1.0)
|
30
|
+
rake (10.5.0)
|
31
|
+
rspec (3.5.0)
|
32
|
+
rspec-core (~> 3.5.0)
|
33
|
+
rspec-expectations (~> 3.5.0)
|
34
|
+
rspec-mocks (~> 3.5.0)
|
35
|
+
rspec-core (3.5.4)
|
36
|
+
rspec-support (~> 3.5.0)
|
37
|
+
rspec-expectations (3.5.0)
|
38
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
39
|
+
rspec-support (~> 3.5.0)
|
40
|
+
rspec-mocks (3.5.0)
|
41
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
42
|
+
rspec-support (~> 3.5.0)
|
43
|
+
rspec-support (3.5.0)
|
44
|
+
rubocop (0.45.0)
|
45
|
+
parser (>= 2.3.1.1, < 3.0)
|
46
|
+
powerpack (~> 0.1)
|
47
|
+
rainbow (>= 1.99.1, < 3.0)
|
48
|
+
ruby-progressbar (~> 1.7)
|
49
|
+
unicode-display_width (~> 1.0, >= 1.0.1)
|
50
|
+
ruby-progressbar (1.8.1)
|
51
|
+
unicode-display_width (1.1.1)
|
52
|
+
|
53
|
+
PLATFORMS
|
54
|
+
ruby
|
55
|
+
|
56
|
+
DEPENDENCIES
|
57
|
+
bundler (~> 1.12)
|
58
|
+
newrelic-rmq-plugin!
|
59
|
+
rake (~> 10.0)
|
60
|
+
rspec (~> 3.0)
|
61
|
+
rubocop
|
62
|
+
|
63
|
+
BUNDLED WITH
|
64
|
+
1.13.6
|
@@ -45,9 +45,9 @@ module NewRelicRMQPlugin
|
|
45
45
|
|
46
46
|
# => Global Metrics
|
47
47
|
def global_metrics # rubocop: disable AbcSize
|
48
|
-
report_metric 'Global Queue Size/Total', '
|
49
|
-
report_metric 'Global Queue Size/Ready', '
|
50
|
-
report_metric 'Global Queue Size/Unacked', '
|
48
|
+
report_metric 'Global Queue Size/Total', 'messages', rmq_manager.overview['queue_totals']['messages'] || 0
|
49
|
+
report_metric 'Global Queue Size/Ready', 'messages', rmq_manager.overview['queue_totals']['messages_ready'] || 0
|
50
|
+
report_metric 'Global Queue Size/Unacked', 'messages', rmq_manager.overview['queue_totals']['messages_unacknowledged'] || 0
|
51
51
|
|
52
52
|
report_metric 'Global Message Rate/Deliver', 'messages/sec', rate_for('deliver')
|
53
53
|
report_metric 'Global Message Rate/Acknowledge', 'messages/sec', rate_for('ack')
|
@@ -63,9 +63,9 @@ module NewRelicRMQPlugin
|
|
63
63
|
rmq_manager.queues.each do |queue|
|
64
64
|
queue_name = queue['name'].split('queue.').last
|
65
65
|
|
66
|
-
report_metric "Queue Size/#{queue_name}/Total", '
|
67
|
-
report_metric "Queue Size/#{queue_name}/Ready", '
|
68
|
-
report_metric "Queue Size/#{queue_name}/Unacked", '
|
66
|
+
report_metric "Queue Size/#{queue_name}/Total", 'messages', queue['messages']
|
67
|
+
report_metric "Queue Size/#{queue_name}/Ready", 'messages', queue['messages_ready']
|
68
|
+
report_metric "Queue Size/#{queue_name}/Unacked", 'messages', queue['messages_unacknowledged']
|
69
69
|
|
70
70
|
report_metric "Message Rate/#{queue_name}/Deliver", 'messages/sec', per_queue_rate_for('deliver', queue)
|
71
71
|
report_metric "Message Rate/#{queue_name}/Acknowledge", 'messages/sec', per_queue_rate_for('ack', queue)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: newrelic-rmq-plugin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Dwyer
|
@@ -121,6 +121,7 @@ files:
|
|
121
121
|
- ".rubocop.yml"
|
122
122
|
- CHANGELOG.md
|
123
123
|
- Gemfile
|
124
|
+
- Gemfile.lock
|
124
125
|
- LICENSE.txt
|
125
126
|
- README.md
|
126
127
|
- Rakefile
|