newrelic-sidekiq-metrics 0.2.0 → 0.2.1

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
  SHA256:
3
- metadata.gz: ff56e51fac9a560c1252483b241aa4a8112a1e290184b08e80cd63cdd4f96d93
4
- data.tar.gz: 7e00e186e2714f57619ff71ec79280079c2308a4eace5bc5be68bed1521bf469
3
+ metadata.gz: e29c968a603c37d2e829d78ba4d3fb33388a39245dd3089e7a2360347affbc5e
4
+ data.tar.gz: a9d85fb2860766dc7b73f46126407c34a2c85a365e778c20e0ef2c52e15876d9
5
5
  SHA512:
6
- metadata.gz: 760a01007bedef4642cc65a91bc38f12e0c76b88e3da003c97e24c49fcd7555d158998a582c28a01340ff772c92b7e5b7a198888e5d156ceecf0785e17a15556
7
- data.tar.gz: 2fb59a2474621dfe067ddcfc007d329aec2f9173aa3d2a488aae03f54cae16015d4353a8711f421c21c641ad590747890352a63a06da0f5c1b2b8fd25e52f73a
6
+ metadata.gz: eb51cf2edd9d9f4a65f202150deab85d78093804f56333ca5aea5d7a490bc16fc047c9f6758775ab72d217b967b6dfd36ab55b629ce4fe1d1ef908fd2fb194c3
7
+ data.tar.gz: 6362cc2423341b6681c937ee0526b382ac79c282a379855b30574622f7ca6532efae05038564606aefbdbe6ff70500c8c9436d1ebfee1569ff2dab06ed180ebd
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- newrelic-sidekiq-metrics (0.2.0)
4
+ newrelic-sidekiq-metrics (0.2.1)
5
5
  newrelic_rpm (~> 6.7.0)
6
6
  sidekiq (~> 6.0.3)
7
7
 
@@ -15,17 +15,17 @@ GEM
15
15
  jaro_winkler (1.5.4)
16
16
  method_source (0.9.2)
17
17
  newrelic_rpm (6.7.0.359)
18
- parallel (1.18.0)
18
+ parallel (1.19.1)
19
19
  parser (2.6.5.0)
20
20
  ast (~> 2.4.0)
21
21
  pry (0.12.2)
22
22
  coderay (~> 1.1.0)
23
23
  method_source (~> 0.9.0)
24
- rack (2.0.7)
24
+ rack (2.0.8)
25
25
  rack-protection (2.0.7)
26
26
  rack
27
27
  rainbow (3.0.0)
28
- rake (13.0.0)
28
+ rake (13.0.1)
29
29
  redis (4.1.3)
30
30
  rspec (3.9.0)
31
31
  rspec-core (~> 3.9.0)
@@ -40,14 +40,14 @@ GEM
40
40
  diff-lcs (>= 1.2.0, < 2.0)
41
41
  rspec-support (~> 3.9.0)
42
42
  rspec-support (3.9.0)
43
- rubocop (0.76.0)
43
+ rubocop (0.78.0)
44
44
  jaro_winkler (~> 1.5.1)
45
45
  parallel (~> 1.10)
46
46
  parser (>= 2.6)
47
47
  rainbow (>= 2.2.2, < 4.0)
48
48
  ruby-progressbar (~> 1.7)
49
49
  unicode-display_width (>= 1.4.0, < 1.7)
50
- rubocop-performance (1.5.0)
50
+ rubocop-performance (1.5.1)
51
51
  rubocop (>= 0.71.0)
52
52
  ruby-progressbar (1.10.1)
53
53
  sidekiq (6.0.3)
data/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
  # newrelic-sidekiq-metrics
5
5
 
6
- Implements recording Sidekiq stats to New Relic metrics.
6
+ Implements recording Sidekiq stats to New Relic metrics by leveraging sidekiq middlewares.
7
7
 
8
8
  ## Installation
9
9
 
@@ -1,3 +1,3 @@
1
1
  module NewrelicSidekiqMetrics
2
- VERSION = "0.2.0".freeze
2
+ VERSION = "0.2.1".freeze
3
3
  end
@@ -8,14 +8,14 @@ module NewrelicSidekiqMetrics
8
8
  METRIC_PREFIX = 'Custom/Sidekiq'.freeze
9
9
 
10
10
  METRIC_MAP = {
11
- processed: 'ProcessedSize',
12
- failed: 'FailedSize',
11
+ processed: 'ProcessedSize',
12
+ failed: 'FailedSize',
13
13
  scheduled_size: 'ScheduledSize',
14
- retry_size: 'RetrySize',
15
- dead_size: 'DeadSize',
16
- enqueued: 'EnqueuedSize',
14
+ retry_size: 'RetrySize',
15
+ dead_size: 'DeadSize',
16
+ enqueued: 'EnqueuedSize',
17
17
  processes_size: 'ProcessesSize',
18
- workers_size: 'WorkersSize',
18
+ workers_size: 'WorkersSize',
19
19
  }.freeze
20
20
 
21
21
  DEFAULT_ENABLED_METRICS = %i[enqueued retry_size].freeze
@@ -16,7 +16,7 @@ Gem::Specification.new do |spec|
16
16
  spec.metadata['source_code_uri'] = 'https://github.com/RenoFi/newrelic-sidekiq-metrics'
17
17
 
18
18
  spec.files = Dir.chdir(__dir__) do
19
- `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(bin|spec|features)/}) }
19
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(bin/|spec/|\.rub)}) }
20
20
  end
21
21
  spec.bindir = 'exe'
22
22
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: newrelic-sidekiq-metrics
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Krzysztof Knapik
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2019-11-13 00:00:00.000000000 Z
12
+ date: 2019-12-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: newrelic_rpm
@@ -133,8 +133,6 @@ extra_rdoc_files: []
133
133
  files:
134
134
  - ".gitignore"
135
135
  - ".rspec"
136
- - ".rubocop.yml"
137
- - ".ruby-version"
138
136
  - ".travis.yml"
139
137
  - Gemfile
140
138
  - Gemfile.lock
data/.rubocop.yml DELETED
@@ -1,12 +0,0 @@
1
- require:
2
- - rubocop-performance
3
-
4
- inherit_from:
5
- - https://raw.githubusercontent.com/RenoFi/rubocop/master/ruby.yml
6
-
7
- AllCops:
8
- TargetRubyVersion: 2.5
9
-
10
- Naming/FileName:
11
- Exclude:
12
- - 'lib/*.rb'
data/.ruby-version DELETED
@@ -1 +0,0 @@
1
- ruby-2.6.5