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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e29c767268f1c8ba349e09b26d6d32146e301bfe
4
- data.tar.gz: bbfa198246b916a6b1d9335d74a8e43d733ac9b0
3
+ metadata.gz: b5f2cb45aecb7f8f8979269863d67b8141d04ffd
4
+ data.tar.gz: ec03d303eb1d8b6dc3149085f0c7d767c3534771
5
5
  SHA512:
6
- metadata.gz: 258bed79db73236f25b99ed9c59e9cd2483bf160f7bd7a5d551e0f8a85685f4d36268e1b60cdae8c09e8d17a2171a4bea195eed966f0a8e1b10d978614281281
7
- data.tar.gz: 61537c8dcb1cc62dd14880de9ff294332e97be6fa29cb2a7bf2db071c3cd754c92a249cfe2c4503ba76153d260dc0351c7eeaf5908f0313b335d4d760b181595
6
+ metadata.gz: 3964d3fe9f6b39a7ac276a9b19c98081096cc816582eafdd0c6f02e895a67c4418dda1469cde1a163606bca2f6fc6703133f78282f0f29b2f5a1eb5f335c09ec
7
+ data.tar.gz: 8254e985f98a35672cc1a2dec4ee4dbc9540e8a1f87af42e0bd6badda497273b7c6198271d52307c574ff4439a038db81f020fdbca983fc9c385acf164211180
data/.gitignore CHANGED
@@ -1,3 +1,10 @@
1
- /Gemfile.lock
2
- /config/newrelic_plugin.yml
3
- .idea
1
+ *~
2
+ *#
3
+ .#*
4
+ \#*#
5
+ .*.sw[a-z]
6
+ *.un~
7
+ pkg/
8
+ vendor/
9
+ config.json
10
+ newrelic_plugin.yml
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', 'Queued Messages', rmq_manager.overview['queue_totals']['messages'] || 0
49
- report_metric 'Global Queue Size/Ready', 'Queued Messages', rmq_manager.overview['queue_totals']['messages_ready'] || 0
50
- report_metric 'Global Queue Size/Unacked', 'Queued Messages', rmq_manager.overview['queue_totals']['messages_unacknowledged'] || 0
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", 'Queued Messages', queue['messages']
67
- report_metric "Queue Size/#{queue_name}/Ready", 'Queued Messages', queue['messages_ready']
68
- report_metric "Queue Size/#{queue_name}/Unacked", 'Queued Messages', queue['messages_unacknowledged']
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)
@@ -1,3 +1,3 @@
1
1
  module NewRelicRMQPlugin
2
- VERSION = '0.1.1'.freeze
2
+ VERSION = '0.1.2'.freeze
3
3
  end
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.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