newrelic_sidekiq_plugin 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +9 -9
- data/lib/newrelic_sidekiq_agent.rb +18 -7
- data/newrelic_sidekiq_plugin.gemspec +2 -2
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZGU0NDdjNzUzMDJjMDgxMDBkNGM1OWU5ZWMxOTkyZGFmMjQ1ODZjOQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
7
|
-
|
6
|
+
ZGYzMTM3Mjk3Y2M1ZWEyNTBkZGRhMzdjYzY3MWRiYjc3NGE5ZGFmZQ==
|
7
|
+
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MDMzZjVmYTBkZjVlMWY1ZjliYzdkMmExNmM1MDQzYzM2YTdhNzA4OTMzZjEz
|
10
|
+
NTliZWM5ZjkxYmFjMTgxNmQ0YjVmMGM3NGNhZTczNTdkM2Y5YzU5OGFjODI2
|
11
|
+
MjMwZWQxY2ZiNmQ0ZGY1Nzk3MTljODlhMWIzZDY2Y2JiYjNhODA=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MDNjNGVkMTA2ODAwNmQ2YWEzMjExM2MxNGI0NjJlYTFhOWI1OTljZTBiYmNm
|
14
|
+
Y2NlYmMzOWQzMmVjYmY5MTlhMzBlNzI3YTc3MjNiMTllMzBkNGE2YTA5ZDVj
|
15
|
+
OGY1ZjRmZWI4YjEwOGZlZjhjNmU3NGQ1MDMwOGEzODQ3ZDUyN2Y=
|
@@ -7,21 +7,32 @@ require "sidekiq"
|
|
7
7
|
module SidekiqAgent
|
8
8
|
class Agent < NewRelic::Plugin::Agent::Base
|
9
9
|
|
10
|
+
|
10
11
|
agent_guid "com.getdropstream.sidekiq"
|
11
|
-
agent_version "0.0.
|
12
|
-
agent_config_options :
|
13
|
-
agent_human_labels("Sidekiq Agent") {
|
12
|
+
agent_version "0.0.4"
|
13
|
+
agent_config_options :namespace, :url
|
14
|
+
agent_human_labels("Sidekiq Agent") { "Sidekiq Agent" }
|
14
15
|
|
15
16
|
attr_reader :ident
|
16
|
-
|
17
|
+
|
17
18
|
def setup_metrics
|
19
|
+
#
|
20
|
+
# Configure the sidekiq client
|
21
|
+
#
|
22
|
+
Sidekiq.configure_client do |config|
|
23
|
+
config.redis = {
|
24
|
+
namespace: namespace,
|
25
|
+
url: url
|
26
|
+
}
|
27
|
+
end
|
28
|
+
|
18
29
|
@total_failed = NewRelic::Processor::EpochCounter.new
|
19
30
|
@processed = NewRelic::Processor::EpochCounter.new
|
20
31
|
end
|
21
32
|
|
22
|
-
def poll_cycle
|
33
|
+
def poll_cycle
|
23
34
|
stats = Sidekiq::Stats.new
|
24
|
-
|
35
|
+
|
25
36
|
Sidekiq::Queue.all.unshift(Sidekiq::Queue.new).each do |sidekiq_queue|
|
26
37
|
|
27
38
|
#
|
@@ -64,7 +75,7 @@ module SidekiqAgent
|
|
64
75
|
#
|
65
76
|
# The rate at which jobs failed per second
|
66
77
|
#
|
67
|
-
report_metric "Jobs/Rate/Failed", "Jobs/Second", @total_failed.process(stats.failed)
|
78
|
+
report_metric "Jobs/Rate/Failed", "Jobs/Second", @total_failed.process(stats.failed)
|
68
79
|
end
|
69
80
|
|
70
81
|
end
|
@@ -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.
|
16
|
+
s.version = '0.0.4'
|
17
17
|
s.date = '2013-08-03'
|
18
18
|
|
19
19
|
## Make sure your summary is short. The description may be as long
|
@@ -49,7 +49,7 @@ This is the New Relic plugin for monitoring Sidekiq developed by Falconer Develo
|
|
49
49
|
|
50
50
|
## List your runtime dependencies here. Runtime dependencies are those
|
51
51
|
## that are needed for an end user to actually USE your code.
|
52
|
-
s.add_dependency('newrelic_plugin', "1.
|
52
|
+
s.add_dependency('newrelic_plugin', "1.3.1")
|
53
53
|
s.add_dependency('sidekiq', ">= 2.13.0")
|
54
54
|
|
55
55
|
## Leave this section as-is. It will be automatically generated from the
|
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.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Karl Falconer
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.
|
19
|
+
version: 1.3.1
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 1.
|
26
|
+
version: 1.3.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: sidekiq
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -76,7 +76,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
76
76
|
version: '0'
|
77
77
|
requirements: []
|
78
78
|
rubyforge_project:
|
79
|
-
rubygems_version: 2.
|
79
|
+
rubygems_version: 2.1.5
|
80
80
|
signing_key:
|
81
81
|
specification_version: 2
|
82
82
|
summary: New Relic Sidekiq monitoring plugin
|