newrelic-sidekiq-metrics 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.dependabot/config.yml +18 -0
- data/.travis.yml +4 -5
- data/Gemfile.lock +16 -16
- data/lib/newrelic_sidekiq_metrics/recorder.rb +5 -2
- data/lib/newrelic_sidekiq_metrics/version.rb +1 -1
- data/newrelic-sidekiq-metrics.gemspec +1 -1
- metadata +13 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ef6c86ad705fa4f1b66e8289b79e28cf5d45c693b5d64eb7d9ad61aff9e255a6
|
4
|
+
data.tar.gz: 7300ba6664a2c719ac6ffee19aff03f3883b80a5c0ebde15c1fc91afd4ce5bb9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bbd41e3cc07d1a03cd9bc1c98b32e711601fdb7912f2702d69e0dc6e77f7a336648dbeac056b2865aedcc820fb1ea416dde2a7fab2cd461ec48fb5c2b528acc7
|
7
|
+
data.tar.gz: 8c3a82e5f6c5a782d0805a29a873b498516b01af0ca5be1e7e311cf0bade597fb4708d8440a52d6c8c3bc2a6b3c38775e8994ac8f8348aa9e969e623a8e9f076
|
@@ -0,0 +1,18 @@
|
|
1
|
+
version: 1
|
2
|
+
|
3
|
+
update_configs:
|
4
|
+
- package_manager: "ruby:bundler"
|
5
|
+
directory: "/"
|
6
|
+
update_schedule: "monthly"
|
7
|
+
commit_message:
|
8
|
+
prefix: "[dependabot]"
|
9
|
+
allowed_updates:
|
10
|
+
- match:
|
11
|
+
update_type: "all"
|
12
|
+
automerged_updates:
|
13
|
+
- match:
|
14
|
+
dependency_type: "development"
|
15
|
+
update_type: "all"
|
16
|
+
- match:
|
17
|
+
dependency_type: "production"
|
18
|
+
update_type: "all"
|
data/.travis.yml
CHANGED
@@ -3,11 +3,10 @@ sudo: false
|
|
3
3
|
language: ruby
|
4
4
|
cache: bundler
|
5
5
|
rvm:
|
6
|
-
- 2.5
|
7
|
-
- 2.6
|
8
|
-
before_install: gem install bundler
|
6
|
+
- 2.5
|
7
|
+
- 2.6
|
8
|
+
before_install: gem install bundler
|
9
9
|
script:
|
10
|
-
- bundle exec
|
11
|
-
- bundle exec rubocop
|
10
|
+
- bundle exec rake
|
12
11
|
services:
|
13
12
|
- redis-server
|
data/Gemfile.lock
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
newrelic-sidekiq-metrics (1.0.
|
5
|
-
newrelic_rpm (
|
4
|
+
newrelic-sidekiq-metrics (1.0.1)
|
5
|
+
newrelic_rpm (>= 6.7, < 6.9)
|
6
6
|
sidekiq (~> 6.0.3)
|
7
7
|
|
8
8
|
GEM
|
@@ -14,15 +14,15 @@ GEM
|
|
14
14
|
diff-lcs (1.3)
|
15
15
|
jaro_winkler (1.5.4)
|
16
16
|
method_source (0.9.2)
|
17
|
-
newrelic_rpm (6.
|
17
|
+
newrelic_rpm (6.8.0.360)
|
18
18
|
parallel (1.19.1)
|
19
|
-
parser (2.
|
19
|
+
parser (2.7.0.2)
|
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.
|
25
|
-
rack-protection (2.0.
|
24
|
+
rack (2.1.1)
|
25
|
+
rack-protection (2.0.8.1)
|
26
26
|
rack
|
27
27
|
rainbow (3.0.0)
|
28
28
|
rake (13.0.1)
|
@@ -31,31 +31,31 @@ GEM
|
|
31
31
|
rspec-core (~> 3.9.0)
|
32
32
|
rspec-expectations (~> 3.9.0)
|
33
33
|
rspec-mocks (~> 3.9.0)
|
34
|
-
rspec-core (3.9.
|
35
|
-
rspec-support (~> 3.9.
|
34
|
+
rspec-core (3.9.1)
|
35
|
+
rspec-support (~> 3.9.1)
|
36
36
|
rspec-expectations (3.9.0)
|
37
37
|
diff-lcs (>= 1.2.0, < 2.0)
|
38
38
|
rspec-support (~> 3.9.0)
|
39
|
-
rspec-mocks (3.9.
|
39
|
+
rspec-mocks (3.9.1)
|
40
40
|
diff-lcs (>= 1.2.0, < 2.0)
|
41
41
|
rspec-support (~> 3.9.0)
|
42
|
-
rspec-support (3.9.
|
43
|
-
rubocop (0.
|
42
|
+
rspec-support (3.9.2)
|
43
|
+
rubocop (0.79.0)
|
44
44
|
jaro_winkler (~> 1.5.1)
|
45
45
|
parallel (~> 1.10)
|
46
|
-
parser (>= 2.
|
46
|
+
parser (>= 2.7.0.1)
|
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.
|
50
|
+
rubocop-performance (1.5.2)
|
51
51
|
rubocop (>= 0.71.0)
|
52
52
|
ruby-progressbar (1.10.1)
|
53
|
-
sidekiq (6.0.
|
53
|
+
sidekiq (6.0.4)
|
54
54
|
connection_pool (>= 2.2.2)
|
55
55
|
rack (>= 2.0.0)
|
56
56
|
rack-protection (>= 2.0.0)
|
57
57
|
redis (>= 4.1.0)
|
58
|
-
unicode-display_width (1.6.
|
58
|
+
unicode-display_width (1.6.1)
|
59
59
|
|
60
60
|
PLATFORMS
|
61
61
|
ruby
|
@@ -70,4 +70,4 @@ DEPENDENCIES
|
|
70
70
|
rubocop-performance
|
71
71
|
|
72
72
|
BUNDLED WITH
|
73
|
-
2.
|
73
|
+
2.1.4
|
@@ -1,9 +1,8 @@
|
|
1
1
|
module NewrelicSidekiqMetrics
|
2
2
|
class Recorder
|
3
|
-
attr_reader :
|
3
|
+
attr_reader :metrics
|
4
4
|
|
5
5
|
def initialize
|
6
|
-
@stats = Sidekiq::Stats.new
|
7
6
|
@metrics = NewrelicSidekiqMetrics.used_metrics
|
8
7
|
end
|
9
8
|
|
@@ -11,6 +10,10 @@ module NewrelicSidekiqMetrics
|
|
11
10
|
metrics.each { |m| record_metric(m) }
|
12
11
|
end
|
13
12
|
|
13
|
+
def stats
|
14
|
+
@stats ||= Sidekiq::Stats.new
|
15
|
+
end
|
16
|
+
|
14
17
|
private
|
15
18
|
|
16
19
|
def record_metric(name)
|
@@ -24,7 +24,7 @@ Gem::Specification.new do |spec|
|
|
24
24
|
|
25
25
|
spec.required_ruby_version = '>= 2.5'
|
26
26
|
|
27
|
-
spec.add_dependency 'newrelic_rpm', '
|
27
|
+
spec.add_dependency 'newrelic_rpm', '>= 6.7', '< 6.9'
|
28
28
|
spec.add_dependency 'sidekiq', '~> 6.0.3'
|
29
29
|
|
30
30
|
spec.add_development_dependency 'bundler'
|
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: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Krzysztof Knapik
|
@@ -9,22 +9,28 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2020-01-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: newrelic_rpm
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
|
-
- - "
|
18
|
+
- - ">="
|
19
|
+
- !ruby/object:Gem::Version
|
20
|
+
version: '6.7'
|
21
|
+
- - "<"
|
19
22
|
- !ruby/object:Gem::Version
|
20
|
-
version: 6.
|
23
|
+
version: '6.9'
|
21
24
|
type: :runtime
|
22
25
|
prerelease: false
|
23
26
|
version_requirements: !ruby/object:Gem::Requirement
|
24
27
|
requirements:
|
25
|
-
- - "
|
28
|
+
- - ">="
|
29
|
+
- !ruby/object:Gem::Version
|
30
|
+
version: '6.7'
|
31
|
+
- - "<"
|
26
32
|
- !ruby/object:Gem::Version
|
27
|
-
version: 6.
|
33
|
+
version: '6.9'
|
28
34
|
- !ruby/object:Gem::Dependency
|
29
35
|
name: sidekiq
|
30
36
|
requirement: !ruby/object:Gem::Requirement
|
@@ -131,6 +137,7 @@ executables: []
|
|
131
137
|
extensions: []
|
132
138
|
extra_rdoc_files: []
|
133
139
|
files:
|
140
|
+
- ".dependabot/config.yml"
|
134
141
|
- ".gitignore"
|
135
142
|
- ".rspec"
|
136
143
|
- ".travis.yml"
|