sidekiq-prometheus-exporter 0.1.10 → 0.1.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.github/FUNDING.yml +12 -0
- data/.github/workflows/ci.yaml +76 -0
- data/.gitignore +3 -1
- data/.rubocop.yml +28 -28
- data/Appraisals +17 -4
- data/README.md +120 -37
- data/Rakefile +76 -0
- data/docker/Dockerfile +24 -0
- data/docker/README.md +60 -0
- data/docker/config.ru +40 -0
- data/examples/docker-compose.yml +2 -2
- data/examples/screenshot.png +0 -0
- data/examples/{sidekiq.json → sidekiq-dashboard.grafana-6.json} +10 -52
- data/examples/sidekiq-dashboard.grafana-7.json +845 -0
- data/gemfiles/{sidekiq_3.3.1.gemfile → sidekiq_3.3.1.Gemfile} +2 -1
- data/gemfiles/sidekiq_3.3.1.Gemfile.lock +124 -0
- data/gemfiles/{sidekiq_3.x.gemfile → sidekiq_3.x.Gemfile} +2 -1
- data/gemfiles/{sidekiq_3.x.gemfile.lock → sidekiq_3.x.Gemfile.lock} +47 -46
- data/gemfiles/{sidekiq_4.x.gemfile → sidekiq_4.x.Gemfile} +1 -1
- data/gemfiles/{sidekiq_4.x.gemfile.lock → sidekiq_4.x.Gemfile.lock} +38 -38
- data/gemfiles/{sidekiq_5.x.gemfile → sidekiq_5.x.Gemfile} +1 -1
- data/gemfiles/{sidekiq_5.x.gemfile.lock → sidekiq_5.x.Gemfile.lock} +41 -40
- data/gemfiles/sidekiq_6.x.Gemfile +8 -0
- data/gemfiles/sidekiq_6.x.Gemfile.lock +97 -0
- data/gemfiles/sidekiq_latest.Gemfile +9 -0
- data/gemfiles/sidekiq_latest.Gemfile.lock +113 -0
- data/helm/sidekiq-prometheus-exporter/.helmignore +22 -0
- data/helm/sidekiq-prometheus-exporter/Chart.yaml +6 -0
- data/helm/sidekiq-prometheus-exporter/README.md +87 -0
- data/helm/sidekiq-prometheus-exporter/templates/NOTES.txt +15 -0
- data/helm/sidekiq-prometheus-exporter/templates/_helpers.tpl +109 -0
- data/helm/sidekiq-prometheus-exporter/templates/clusterrole.yaml +20 -0
- data/helm/sidekiq-prometheus-exporter/templates/clusterrolebinding.yaml +17 -0
- data/helm/sidekiq-prometheus-exporter/templates/deployment.yaml +62 -0
- data/helm/sidekiq-prometheus-exporter/templates/service.yaml +17 -0
- data/helm/sidekiq-prometheus-exporter/templates/serviceaccount.yaml +9 -0
- data/helm/sidekiq-prometheus-exporter/templates/servicemonitor.yaml +26 -0
- data/helm/sidekiq-prometheus-exporter/values.yaml +134 -0
- data/lib/sidekiq/prometheus/exporter.rb +12 -1
- data/lib/sidekiq/prometheus/exporter/exporters.rb +4 -1
- data/lib/sidekiq/prometheus/exporter/standard.rb +1 -1
- data/lib/sidekiq/prometheus/exporter/version.rb +1 -1
- data/sidekiq-prometheus-exporter.gemspec +3 -3
- metadata +43 -23
- data/.travis.yml +0 -23
- data/gemfiles/sidekiq_3.3.1.gemfile.lock +0 -138
@@ -10,9 +10,12 @@ module Sidekiq
|
|
10
10
|
class Exporters
|
11
11
|
AVAILABLE_EXPORTERS = {
|
12
12
|
standard: Sidekiq::Prometheus::Exporter::Standard,
|
13
|
-
cron: Sidekiq::Prometheus::Exporter::Cron
|
13
|
+
cron: Sidekiq::Prometheus::Exporter::Cron,
|
14
|
+
scheduler: Sidekiq::Prometheus::Exporter::Scheduler
|
14
15
|
}.freeze
|
15
16
|
|
17
|
+
attr_reader :enabled
|
18
|
+
|
16
19
|
def initialize
|
17
20
|
@enabled = AVAILABLE_EXPORTERS.values.select(&:available?)
|
18
21
|
end
|
@@ -31,11 +31,11 @@ Gem::Specification.new do |spec|
|
|
31
31
|
spec.add_dependency 'sidekiq', '>= 3.3.1'
|
32
32
|
|
33
33
|
spec.add_development_dependency 'appraisal', '~> 2.2'
|
34
|
-
spec.add_development_dependency 'bundler', '~> 1
|
34
|
+
spec.add_development_dependency 'bundler', '~> 2.1'
|
35
35
|
spec.add_development_dependency 'codeclimate-test-reporter', '~> 1.0'
|
36
36
|
spec.add_development_dependency 'pry-byebug', '~> 3.6'
|
37
|
-
spec.add_development_dependency 'rack-test', '~>
|
38
|
-
spec.add_development_dependency 'rake', '~>
|
37
|
+
spec.add_development_dependency 'rack-test', '~> 1.1'
|
38
|
+
spec.add_development_dependency 'rake', '~> 13.0'
|
39
39
|
spec.add_development_dependency 'rspec', '~> 3.0'
|
40
40
|
spec.add_development_dependency 'rubocop', '~> 0.58'
|
41
41
|
spec.add_development_dependency 'rubocop-rspec', '~> 1.28.0'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sidekiq-prometheus-exporter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.15
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sergey Fedorov
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-02-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sidekiq
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '1
|
47
|
+
version: '2.1'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '1
|
54
|
+
version: '2.1'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: codeclimate-test-reporter
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -86,28 +86,28 @@ dependencies:
|
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: '
|
89
|
+
version: '1.1'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: '
|
96
|
+
version: '1.1'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: rake
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
101
|
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: '
|
103
|
+
version: '13.0'
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: '
|
110
|
+
version: '13.0'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: rspec
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
@@ -172,10 +172,11 @@ extensions: []
|
|
172
172
|
extra_rdoc_files: []
|
173
173
|
files:
|
174
174
|
- ".codeclimate.yml"
|
175
|
+
- ".github/FUNDING.yml"
|
176
|
+
- ".github/workflows/ci.yaml"
|
175
177
|
- ".gitignore"
|
176
178
|
- ".rspec"
|
177
179
|
- ".rubocop.yml"
|
178
|
-
- ".travis.yml"
|
179
180
|
- Appraisals
|
180
181
|
- Gemfile
|
181
182
|
- LICENSE
|
@@ -183,23 +184,43 @@ files:
|
|
183
184
|
- Rakefile
|
184
185
|
- bin/console
|
185
186
|
- bin/setup
|
187
|
+
- docker/Dockerfile
|
188
|
+
- docker/README.md
|
189
|
+
- docker/config.ru
|
186
190
|
- examples/docker-compose.yml
|
187
191
|
- examples/metrics/Dockerfile
|
188
192
|
- examples/metrics/config.ru
|
189
193
|
- examples/prometheus/prometheus.yml
|
190
194
|
- examples/screenshot.png
|
191
|
-
- examples/sidekiq.json
|
195
|
+
- examples/sidekiq-dashboard.grafana-6.json
|
196
|
+
- examples/sidekiq-dashboard.grafana-7.json
|
192
197
|
- examples/sidekiq/Dockerfile
|
193
198
|
- examples/sidekiq/sidekiq.rb
|
194
199
|
- examples/sidekiq/sidekiq.yml
|
195
|
-
- gemfiles/sidekiq_3.3.1.
|
196
|
-
- gemfiles/sidekiq_3.3.1.
|
197
|
-
- gemfiles/sidekiq_3.x.
|
198
|
-
- gemfiles/sidekiq_3.x.
|
199
|
-
- gemfiles/sidekiq_4.x.
|
200
|
-
- gemfiles/sidekiq_4.x.
|
201
|
-
- gemfiles/sidekiq_5.x.
|
202
|
-
- gemfiles/sidekiq_5.x.
|
200
|
+
- gemfiles/sidekiq_3.3.1.Gemfile
|
201
|
+
- gemfiles/sidekiq_3.3.1.Gemfile.lock
|
202
|
+
- gemfiles/sidekiq_3.x.Gemfile
|
203
|
+
- gemfiles/sidekiq_3.x.Gemfile.lock
|
204
|
+
- gemfiles/sidekiq_4.x.Gemfile
|
205
|
+
- gemfiles/sidekiq_4.x.Gemfile.lock
|
206
|
+
- gemfiles/sidekiq_5.x.Gemfile
|
207
|
+
- gemfiles/sidekiq_5.x.Gemfile.lock
|
208
|
+
- gemfiles/sidekiq_6.x.Gemfile
|
209
|
+
- gemfiles/sidekiq_6.x.Gemfile.lock
|
210
|
+
- gemfiles/sidekiq_latest.Gemfile
|
211
|
+
- gemfiles/sidekiq_latest.Gemfile.lock
|
212
|
+
- helm/sidekiq-prometheus-exporter/.helmignore
|
213
|
+
- helm/sidekiq-prometheus-exporter/Chart.yaml
|
214
|
+
- helm/sidekiq-prometheus-exporter/README.md
|
215
|
+
- helm/sidekiq-prometheus-exporter/templates/NOTES.txt
|
216
|
+
- helm/sidekiq-prometheus-exporter/templates/_helpers.tpl
|
217
|
+
- helm/sidekiq-prometheus-exporter/templates/clusterrole.yaml
|
218
|
+
- helm/sidekiq-prometheus-exporter/templates/clusterrolebinding.yaml
|
219
|
+
- helm/sidekiq-prometheus-exporter/templates/deployment.yaml
|
220
|
+
- helm/sidekiq-prometheus-exporter/templates/service.yaml
|
221
|
+
- helm/sidekiq-prometheus-exporter/templates/serviceaccount.yaml
|
222
|
+
- helm/sidekiq-prometheus-exporter/templates/servicemonitor.yaml
|
223
|
+
- helm/sidekiq-prometheus-exporter/values.yaml
|
203
224
|
- lib/sidekiq/prometheus/exporter.rb
|
204
225
|
- lib/sidekiq/prometheus/exporter/cron.rb
|
205
226
|
- lib/sidekiq/prometheus/exporter/exporters.rb
|
@@ -214,7 +235,7 @@ homepage: https://github.com/Strech/sidekiq-prometheus-exporter
|
|
214
235
|
licenses: []
|
215
236
|
metadata:
|
216
237
|
allowed_push_host: https://rubygems.org
|
217
|
-
post_install_message:
|
238
|
+
post_install_message:
|
218
239
|
rdoc_options: []
|
219
240
|
require_paths:
|
220
241
|
- lib
|
@@ -229,9 +250,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
229
250
|
- !ruby/object:Gem::Version
|
230
251
|
version: '0'
|
231
252
|
requirements: []
|
232
|
-
|
233
|
-
|
234
|
-
signing_key:
|
253
|
+
rubygems_version: 3.0.3
|
254
|
+
signing_key:
|
235
255
|
specification_version: 4
|
236
256
|
summary: Prometheus exporter for the Sidekiq
|
237
257
|
test_files: []
|
data/.travis.yml
DELETED
@@ -1,23 +0,0 @@
|
|
1
|
-
sudo: false
|
2
|
-
language: ruby
|
3
|
-
rvm:
|
4
|
-
- 2.2.10
|
5
|
-
- 2.3.8
|
6
|
-
- 2.4.6
|
7
|
-
- 2.5.5
|
8
|
-
- 2.6.2
|
9
|
-
gemfile:
|
10
|
-
- gemfiles/sidekiq_3.3.1.gemfile
|
11
|
-
- gemfiles/sidekiq_3.x.gemfile
|
12
|
-
- gemfiles/sidekiq_4.x.gemfile
|
13
|
-
- gemfiles/sidekiq_5.x.gemfile
|
14
|
-
addons:
|
15
|
-
code_climate:
|
16
|
-
repo_token: $CODECLIMATE_REPO_TOKEN
|
17
|
-
notifications:
|
18
|
-
email: false
|
19
|
-
|
20
|
-
cache: bundler
|
21
|
-
before_install: gem install bundler -v 1.16.5
|
22
|
-
after_success: bundle exec codeclimate-test-reporter
|
23
|
-
script: bundle exec rake spec
|
@@ -1,138 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: ..
|
3
|
-
specs:
|
4
|
-
sidekiq-prometheus-exporter (0.1.10)
|
5
|
-
sidekiq (>= 3.3.1)
|
6
|
-
|
7
|
-
GEM
|
8
|
-
remote: https://rubygems.org/
|
9
|
-
specs:
|
10
|
-
appraisal (2.2.0)
|
11
|
-
bundler
|
12
|
-
rake
|
13
|
-
thor (>= 0.14.0)
|
14
|
-
ast (2.4.0)
|
15
|
-
byebug (10.0.2)
|
16
|
-
celluloid (0.17.3)
|
17
|
-
celluloid-essentials
|
18
|
-
celluloid-extras
|
19
|
-
celluloid-fsm
|
20
|
-
celluloid-pool
|
21
|
-
celluloid-supervision
|
22
|
-
timers (>= 4.1.1)
|
23
|
-
celluloid-essentials (0.20.5)
|
24
|
-
timers (>= 4.1.1)
|
25
|
-
celluloid-extras (0.20.5)
|
26
|
-
timers (>= 4.1.1)
|
27
|
-
celluloid-fsm (0.20.5)
|
28
|
-
timers (>= 4.1.1)
|
29
|
-
celluloid-pool (0.20.5)
|
30
|
-
timers (>= 4.1.1)
|
31
|
-
celluloid-supervision (0.20.6)
|
32
|
-
timers (>= 4.1.1)
|
33
|
-
codeclimate-test-reporter (1.0.8)
|
34
|
-
simplecov (<= 0.13)
|
35
|
-
coderay (1.1.2)
|
36
|
-
concurrent-ruby (1.0.5)
|
37
|
-
connection_pool (2.2.2)
|
38
|
-
diff-lcs (1.3)
|
39
|
-
docile (1.1.5)
|
40
|
-
hitimes (1.3.0)
|
41
|
-
jaro_winkler (1.5.1)
|
42
|
-
json (2.1.0)
|
43
|
-
method_source (0.9.0)
|
44
|
-
mustermann (1.0.3)
|
45
|
-
parallel (1.12.1)
|
46
|
-
parser (2.5.1.2)
|
47
|
-
ast (~> 2.4.0)
|
48
|
-
powerpack (0.1.2)
|
49
|
-
pry (0.11.3)
|
50
|
-
coderay (~> 1.1.0)
|
51
|
-
method_source (~> 0.9.0)
|
52
|
-
pry-byebug (3.6.0)
|
53
|
-
byebug (~> 10.0)
|
54
|
-
pry (~> 0.10)
|
55
|
-
rack (2.0.5)
|
56
|
-
rack-protection (2.0.4)
|
57
|
-
rack
|
58
|
-
rack-test (0.8.3)
|
59
|
-
rack (>= 1.0, < 3)
|
60
|
-
rainbow (3.0.0)
|
61
|
-
rake (10.5.0)
|
62
|
-
redis (4.0.2)
|
63
|
-
redis-namespace (1.6.0)
|
64
|
-
redis (>= 3.0.4)
|
65
|
-
rspec (3.8.0)
|
66
|
-
rspec-core (~> 3.8.0)
|
67
|
-
rspec-expectations (~> 3.8.0)
|
68
|
-
rspec-mocks (~> 3.8.0)
|
69
|
-
rspec-core (3.8.0)
|
70
|
-
rspec-support (~> 3.8.0)
|
71
|
-
rspec-expectations (3.8.1)
|
72
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
73
|
-
rspec-support (~> 3.8.0)
|
74
|
-
rspec-mocks (3.8.0)
|
75
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
76
|
-
rspec-support (~> 3.8.0)
|
77
|
-
rspec-support (3.8.0)
|
78
|
-
rubocop (0.59.2)
|
79
|
-
jaro_winkler (~> 1.5.1)
|
80
|
-
parallel (~> 1.10)
|
81
|
-
parser (>= 2.5, != 2.5.1.1)
|
82
|
-
powerpack (~> 0.1)
|
83
|
-
rainbow (>= 2.2.2, < 4.0)
|
84
|
-
ruby-progressbar (~> 1.7)
|
85
|
-
unicode-display_width (~> 1.0, >= 1.0.1)
|
86
|
-
rubocop-rspec (1.28.0)
|
87
|
-
rubocop (>= 0.58.0)
|
88
|
-
ruby-progressbar (1.10.0)
|
89
|
-
sidekiq (3.3.1)
|
90
|
-
celluloid (>= 0.16.0)
|
91
|
-
connection_pool (>= 2.1.1)
|
92
|
-
json
|
93
|
-
redis (>= 3.0.6)
|
94
|
-
redis-namespace (>= 1.3.1)
|
95
|
-
simplecov (0.13.0)
|
96
|
-
docile (~> 1.1.0)
|
97
|
-
json (>= 1.8, < 3)
|
98
|
-
simplecov-html (~> 0.10.0)
|
99
|
-
simplecov-html (0.10.2)
|
100
|
-
sinatra (2.0.4)
|
101
|
-
mustermann (~> 1.0)
|
102
|
-
rack (~> 2.0)
|
103
|
-
rack-protection (= 2.0.4)
|
104
|
-
tilt (~> 2.0)
|
105
|
-
slim (4.0.1)
|
106
|
-
temple (>= 0.7.6, < 0.9)
|
107
|
-
tilt (>= 2.0.6, < 2.1)
|
108
|
-
temple (0.8.0)
|
109
|
-
thor (0.20.0)
|
110
|
-
tilt (2.0.8)
|
111
|
-
timecop (0.9.1)
|
112
|
-
timers (4.1.2)
|
113
|
-
hitimes
|
114
|
-
unicode-display_width (1.4.0)
|
115
|
-
|
116
|
-
PLATFORMS
|
117
|
-
ruby
|
118
|
-
|
119
|
-
DEPENDENCIES
|
120
|
-
appraisal (~> 2.2)
|
121
|
-
bundler (~> 1.16)
|
122
|
-
codeclimate-test-reporter (~> 1.0)
|
123
|
-
concurrent-ruby
|
124
|
-
pry-byebug (~> 3.6)
|
125
|
-
rack-test (~> 0.8)
|
126
|
-
rake (~> 10.0)
|
127
|
-
redis (>= 3.3.5)
|
128
|
-
rspec (~> 3.0)
|
129
|
-
rubocop (~> 0.58)
|
130
|
-
rubocop-rspec (~> 1.28.0)
|
131
|
-
sidekiq (= 3.3.1)
|
132
|
-
sidekiq-prometheus-exporter!
|
133
|
-
sinatra
|
134
|
-
slim
|
135
|
-
timecop (~> 0.9)
|
136
|
-
|
137
|
-
BUNDLED WITH
|
138
|
-
1.16.5
|