newrelic_sidekiq_plugin 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.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MmY3YmE0MTViZjkwYTZlYjk0Yzg3Y2JkN2FjZWQ3YTcxNGNiZGEzZg==
4
+ ZTBhYWUxMTUzNTM5NDJjMzcxNzIxOWM4NmI4OWQyNmEwMjA2ZWIyZg==
5
5
  data.tar.gz: !binary |-
6
- YWRhYTVkM2IyMGViNzliZjMzMWIyNmJmY2Y0ODRjNDYwZDRjMmNiOA==
6
+ YTk1MTRjNWUyNTNhY2JkNzc0NWE1ZmM3M2Y1ZGI0YTk1MzIyYjdmNg==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- ZDEzZGQ2NmNiYWI5NDUzZjI0OTg4Mjc4ZWNiNGQ3YTQ2YTExMzE4ODc0Njg5
10
- MGY2OTIxZTZkZjFiOTA2MWNiOGM1YjE3OWJjMzNkNzA5ODA1ZGYxZDExZWFi
11
- YTM3YTczOTRhNmU4NjdjN2M5ODE3MzMzMzI4YmY0NzRkNzE3MjA=
9
+ YzcyNDExYjJjODdiMGY2NDExNzhjMDQxYjhiMGU4ODNkMWVkMTE1NDAxMzc1
10
+ YWFmYTQ3MzNhN2I3MzdjYTM3ZjJkMjRhNzVlMTQ5NjdkOWNlN2RmYTc4Nzdm
11
+ ZTI1NGYxNDEwMDA4ZmViZDZiZWMxMWE4M2Y4NGFhNDg0ZDc0YmI=
12
12
  data.tar.gz: !binary |-
13
- MzFiOWUyYzQwNzQyZTNmYTRjYzU0MzkwNzhkZTgyNzY1NTAwMTk5Y2Y1N2Rm
14
- YTA4NWYyN2UwODg2MGNkNjMwMDdmOWIzYjdjYjlhMzc3NWFhNzdlM2EwNjQ2
15
- MzZmOTFhNzhmZmI0YTE2ZDUyOGI5YTE4MjgwMTEwOWQxODBlNzk=
13
+ ZmVmODgwYTBjMDYzMDc0ZTk3YTUwNmUyNGY1ZTUyNTIzNjUxMmIzYjFiNzk1
14
+ NWM5YTlhZGM3NjNlYTA5Zjg3ZmFkMjc5ODczM2NhYTRhNzY3ZTUyMzFhNzhj
15
+ YWJlY2E1YWE0N2Y3ZTYwNDJjN2JjZjI3YmRhNTUxZmE5M2M5NTk=
@@ -8,7 +8,7 @@ module SidekiqAgent
8
8
  class Agent < NewRelic::Plugin::Agent::Base
9
9
 
10
10
  agent_guid "com.getdropstream.sidekiq"
11
- agent_version "0.0.2"
11
+ agent_version "0.0.3"
12
12
  agent_config_options :queue
13
13
  agent_human_labels("Sidekiq Agent") { ident }
14
14
 
@@ -22,6 +22,20 @@ module SidekiqAgent
22
22
  def poll_cycle
23
23
  stats = Sidekiq::Stats.new
24
24
 
25
+ Sidekiq::Queue.all.unshift(Sidekiq::Queue.new).each do |sidekiq_queue|
26
+
27
+ #
28
+ # Report the # of jobs in a given queue
29
+ #
30
+ report_metric "Queue/Length(#{sidekiq_queue.name})", "Jobs", sidekiq_queue.size
31
+
32
+ #
33
+ # Report the latency of a given queue
34
+ # Queue latency is the difference between when the oldest job was pushed onto the queue versus the current time.
35
+ #
36
+ report_metric "Queue/Latency(#{sidekiq_queue.name})", "Seconds", sidekiq_queue.latency
37
+ end
38
+
25
39
  #
26
40
  # The # of worker executing a job
27
41
  #
@@ -13,7 +13,7 @@ Gem::Specification.new do |s|
13
13
  ## If your rubyforge_project name is different, then edit it and comment out
14
14
  ## the sub! line in the Rakefile
15
15
  s.name = 'newrelic_sidekiq_plugin'
16
- s.version = '0.0.2'
16
+ s.version = '0.0.3'
17
17
  s.date = '2013-08-03'
18
18
 
19
19
  ## Make sure your summary is short. The description may be as long
@@ -45,6 +45,7 @@ This is the New Relic plugin for monitoring Sidekiq developed by Falconer Develo
45
45
  ## LICENSE files to the extra_rdoc_files list.
46
46
  s.rdoc_options = ["--charset=UTF-8"]
47
47
  s.extra_rdoc_files = %w[README.md]
48
+ s.license = 'MIT'
48
49
 
49
50
  ## List your runtime dependencies here. Runtime dependencies are those
50
51
  ## that are needed for an end user to actually USE your code.
@@ -68,4 +69,4 @@ This is the New Relic plugin for monitoring Sidekiq developed by Falconer Develo
68
69
  ## Test files will be grabbed from the file list. Make sure the path glob
69
70
  ## matches what you actually use.
70
71
  s.test_files = s.files.select { |path| path =~ /^test\/test_.*\.rb/ }
71
- end
72
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: newrelic_sidekiq_plugin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Karl Falconer
@@ -56,7 +56,8 @@ files:
56
56
  - lib/newrelic_sidekiq_agent.rb
57
57
  - newrelic_sidekiq_plugin.gemspec
58
58
  homepage: https://github.com/dropstream/newrelic_sidekiq_plugin
59
- licenses: []
59
+ licenses:
60
+ - MIT
60
61
  metadata: {}
61
62
  post_install_message:
62
63
  rdoc_options: