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.
Files changed (47) hide show
  1. checksums.yaml +5 -5
  2. data/.github/FUNDING.yml +12 -0
  3. data/.github/workflows/ci.yaml +76 -0
  4. data/.gitignore +3 -1
  5. data/.rubocop.yml +28 -28
  6. data/Appraisals +17 -4
  7. data/README.md +120 -37
  8. data/Rakefile +76 -0
  9. data/docker/Dockerfile +24 -0
  10. data/docker/README.md +60 -0
  11. data/docker/config.ru +40 -0
  12. data/examples/docker-compose.yml +2 -2
  13. data/examples/screenshot.png +0 -0
  14. data/examples/{sidekiq.json → sidekiq-dashboard.grafana-6.json} +10 -52
  15. data/examples/sidekiq-dashboard.grafana-7.json +845 -0
  16. data/gemfiles/{sidekiq_3.3.1.gemfile → sidekiq_3.3.1.Gemfile} +2 -1
  17. data/gemfiles/sidekiq_3.3.1.Gemfile.lock +124 -0
  18. data/gemfiles/{sidekiq_3.x.gemfile → sidekiq_3.x.Gemfile} +2 -1
  19. data/gemfiles/{sidekiq_3.x.gemfile.lock → sidekiq_3.x.Gemfile.lock} +47 -46
  20. data/gemfiles/{sidekiq_4.x.gemfile → sidekiq_4.x.Gemfile} +1 -1
  21. data/gemfiles/{sidekiq_4.x.gemfile.lock → sidekiq_4.x.Gemfile.lock} +38 -38
  22. data/gemfiles/{sidekiq_5.x.gemfile → sidekiq_5.x.Gemfile} +1 -1
  23. data/gemfiles/{sidekiq_5.x.gemfile.lock → sidekiq_5.x.Gemfile.lock} +41 -40
  24. data/gemfiles/sidekiq_6.x.Gemfile +8 -0
  25. data/gemfiles/sidekiq_6.x.Gemfile.lock +97 -0
  26. data/gemfiles/sidekiq_latest.Gemfile +9 -0
  27. data/gemfiles/sidekiq_latest.Gemfile.lock +113 -0
  28. data/helm/sidekiq-prometheus-exporter/.helmignore +22 -0
  29. data/helm/sidekiq-prometheus-exporter/Chart.yaml +6 -0
  30. data/helm/sidekiq-prometheus-exporter/README.md +87 -0
  31. data/helm/sidekiq-prometheus-exporter/templates/NOTES.txt +15 -0
  32. data/helm/sidekiq-prometheus-exporter/templates/_helpers.tpl +109 -0
  33. data/helm/sidekiq-prometheus-exporter/templates/clusterrole.yaml +20 -0
  34. data/helm/sidekiq-prometheus-exporter/templates/clusterrolebinding.yaml +17 -0
  35. data/helm/sidekiq-prometheus-exporter/templates/deployment.yaml +62 -0
  36. data/helm/sidekiq-prometheus-exporter/templates/service.yaml +17 -0
  37. data/helm/sidekiq-prometheus-exporter/templates/serviceaccount.yaml +9 -0
  38. data/helm/sidekiq-prometheus-exporter/templates/servicemonitor.yaml +26 -0
  39. data/helm/sidekiq-prometheus-exporter/values.yaml +134 -0
  40. data/lib/sidekiq/prometheus/exporter.rb +12 -1
  41. data/lib/sidekiq/prometheus/exporter/exporters.rb +4 -1
  42. data/lib/sidekiq/prometheus/exporter/standard.rb +1 -1
  43. data/lib/sidekiq/prometheus/exporter/version.rb +1 -1
  44. data/sidekiq-prometheus-exporter.gemspec +3 -3
  45. metadata +43 -23
  46. data/.travis.yml +0 -23
  47. data/gemfiles/sidekiq_3.3.1.gemfile.lock +0 -138
@@ -3,7 +3,8 @@
3
3
  source "https://rubygems.org"
4
4
 
5
5
  gem "slim"
6
- gem "redis", ">= 3.3.5"
6
+ gem "redis", "~> 3.3"
7
+ gem "redis-namespace", "< 1.7.0"
7
8
  gem "sinatra"
8
9
  gem "concurrent-ruby"
9
10
  gem "sidekiq", "= 3.3.1"
@@ -0,0 +1,124 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ sidekiq-prometheus-exporter (0.1.15)
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.18.0)
17
+ timers (~> 4)
18
+ codeclimate-test-reporter (1.0.9)
19
+ simplecov (<= 0.13)
20
+ coderay (1.1.2)
21
+ concurrent-ruby (1.1.6)
22
+ connection_pool (2.2.3)
23
+ diff-lcs (1.3)
24
+ docile (1.1.5)
25
+ jaro_winkler (1.5.4)
26
+ json (2.5.1)
27
+ method_source (0.9.2)
28
+ mustermann (1.1.1)
29
+ ruby2_keywords (~> 0.0.1)
30
+ parallel (1.19.1)
31
+ parser (2.7.0.4)
32
+ ast (~> 2.4.0)
33
+ pry (0.12.2)
34
+ coderay (~> 1.1.0)
35
+ method_source (~> 0.9.0)
36
+ pry-byebug (3.6.0)
37
+ byebug (~> 10.0)
38
+ pry (~> 0.10)
39
+ rack (2.2.2)
40
+ rack-protection (2.0.8.1)
41
+ rack
42
+ rack-test (1.1.0)
43
+ rack (>= 1.0, < 3)
44
+ rainbow (3.0.0)
45
+ rake (13.0.1)
46
+ redis (3.3.5)
47
+ redis-namespace (1.6.0)
48
+ redis (>= 3.0.4)
49
+ rexml (3.2.4)
50
+ rspec (3.9.0)
51
+ rspec-core (~> 3.9.0)
52
+ rspec-expectations (~> 3.9.0)
53
+ rspec-mocks (~> 3.9.0)
54
+ rspec-core (3.9.1)
55
+ rspec-support (~> 3.9.1)
56
+ rspec-expectations (3.9.0)
57
+ diff-lcs (>= 1.2.0, < 2.0)
58
+ rspec-support (~> 3.9.0)
59
+ rspec-mocks (3.9.1)
60
+ diff-lcs (>= 1.2.0, < 2.0)
61
+ rspec-support (~> 3.9.0)
62
+ rspec-support (3.9.2)
63
+ rubocop (0.80.1)
64
+ jaro_winkler (~> 1.5.1)
65
+ parallel (~> 1.10)
66
+ parser (>= 2.7.0.1)
67
+ rainbow (>= 2.2.2, < 4.0)
68
+ rexml
69
+ ruby-progressbar (~> 1.7)
70
+ unicode-display_width (>= 1.4.0, < 1.7)
71
+ rubocop-rspec (1.28.0)
72
+ rubocop (>= 0.58.0)
73
+ ruby-progressbar (1.10.1)
74
+ ruby2_keywords (0.0.2)
75
+ sidekiq (3.3.1)
76
+ celluloid (>= 0.16.0)
77
+ connection_pool (>= 2.1.1)
78
+ json
79
+ redis (>= 3.0.6)
80
+ redis-namespace (>= 1.3.1)
81
+ simplecov (0.13.0)
82
+ docile (~> 1.1.0)
83
+ json (>= 1.8, < 3)
84
+ simplecov-html (~> 0.10.0)
85
+ simplecov-html (0.10.2)
86
+ sinatra (2.0.8.1)
87
+ mustermann (~> 1.0)
88
+ rack (~> 2.0)
89
+ rack-protection (= 2.0.8.1)
90
+ tilt (~> 2.0)
91
+ slim (4.0.1)
92
+ temple (>= 0.7.6, < 0.9)
93
+ tilt (>= 2.0.6, < 2.1)
94
+ temple (0.8.2)
95
+ thor (1.0.1)
96
+ tilt (2.0.10)
97
+ timecop (0.9.1)
98
+ timers (4.3.2)
99
+ unicode-display_width (1.6.1)
100
+
101
+ PLATFORMS
102
+ ruby
103
+
104
+ DEPENDENCIES
105
+ appraisal (~> 2.2)
106
+ bundler (~> 2.1)
107
+ codeclimate-test-reporter (~> 1.0)
108
+ concurrent-ruby
109
+ pry-byebug (~> 3.6)
110
+ rack-test (~> 1.1)
111
+ rake (~> 13.0)
112
+ redis (~> 3.3)
113
+ redis-namespace (< 1.7.0)
114
+ rspec (~> 3.0)
115
+ rubocop (~> 0.58)
116
+ rubocop-rspec (~> 1.28.0)
117
+ sidekiq (= 3.3.1)
118
+ sidekiq-prometheus-exporter!
119
+ sinatra
120
+ slim
121
+ timecop (~> 0.9)
122
+
123
+ BUNDLED WITH
124
+ 2.1.4
@@ -3,7 +3,8 @@
3
3
  source "https://rubygems.org"
4
4
 
5
5
  gem "slim"
6
- gem "redis", ">= 3.3.5"
6
+ gem "redis", "~> 3.3"
7
+ gem "redis-namespace", "< 1.7.0"
7
8
  gem "sinatra"
8
9
  gem "concurrent-ruby"
9
10
  gem "sidekiq", "~> 3.0"
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- sidekiq-prometheus-exporter (0.1.10)
4
+ sidekiq-prometheus-exporter (0.1.15)
5
5
  sidekiq (>= 3.3.1)
6
6
 
7
7
  GEM
@@ -13,7 +13,7 @@ GEM
13
13
  thor (>= 0.14.0)
14
14
  ast (2.4.0)
15
15
  byebug (10.0.2)
16
- celluloid (0.17.3)
16
+ celluloid (0.17.4)
17
17
  celluloid-essentials
18
18
  celluloid-extras
19
19
  celluloid-fsm
@@ -30,62 +30,63 @@ GEM
30
30
  timers (>= 4.1.1)
31
31
  celluloid-supervision (0.20.6)
32
32
  timers (>= 4.1.1)
33
- codeclimate-test-reporter (1.0.8)
33
+ codeclimate-test-reporter (1.0.9)
34
34
  simplecov (<= 0.13)
35
35
  coderay (1.1.2)
36
- concurrent-ruby (1.0.5)
37
- connection_pool (2.2.2)
36
+ concurrent-ruby (1.1.6)
37
+ connection_pool (2.2.3)
38
38
  diff-lcs (1.3)
39
39
  docile (1.1.5)
40
- hitimes (1.3.0)
41
- jaro_winkler (1.5.1)
40
+ jaro_winkler (1.5.4)
42
41
  json (1.8.6)
43
- method_source (0.9.0)
44
- mustermann (1.0.3)
45
- parallel (1.12.1)
46
- parser (2.5.1.2)
42
+ method_source (0.9.2)
43
+ mustermann (1.1.1)
44
+ ruby2_keywords (~> 0.0.1)
45
+ parallel (1.19.1)
46
+ parser (2.7.0.4)
47
47
  ast (~> 2.4.0)
48
- powerpack (0.1.2)
49
- pry (0.11.3)
48
+ pry (0.12.2)
50
49
  coderay (~> 1.1.0)
51
50
  method_source (~> 0.9.0)
52
51
  pry-byebug (3.6.0)
53
52
  byebug (~> 10.0)
54
53
  pry (~> 0.10)
55
- rack (2.0.5)
56
- rack-protection (2.0.4)
54
+ rack (2.2.2)
55
+ rack-protection (2.0.8.1)
57
56
  rack
58
- rack-test (0.8.3)
57
+ rack-test (1.1.0)
59
58
  rack (>= 1.0, < 3)
60
59
  rainbow (3.0.0)
61
- rake (10.5.0)
60
+ rake (13.0.1)
62
61
  redis (3.3.5)
63
62
  redis-namespace (1.6.0)
64
63
  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)
64
+ rexml (3.2.4)
65
+ rspec (3.9.0)
66
+ rspec-core (~> 3.9.0)
67
+ rspec-expectations (~> 3.9.0)
68
+ rspec-mocks (~> 3.9.0)
69
+ rspec-core (3.9.1)
70
+ rspec-support (~> 3.9.1)
71
+ rspec-expectations (3.9.0)
72
72
  diff-lcs (>= 1.2.0, < 2.0)
73
- rspec-support (~> 3.8.0)
74
- rspec-mocks (3.8.0)
73
+ rspec-support (~> 3.9.0)
74
+ rspec-mocks (3.9.1)
75
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)
76
+ rspec-support (~> 3.9.0)
77
+ rspec-support (3.9.2)
78
+ rubocop (0.80.1)
79
79
  jaro_winkler (~> 1.5.1)
80
80
  parallel (~> 1.10)
81
- parser (>= 2.5, != 2.5.1.1)
82
- powerpack (~> 0.1)
81
+ parser (>= 2.7.0.1)
83
82
  rainbow (>= 2.2.2, < 4.0)
83
+ rexml
84
84
  ruby-progressbar (~> 1.7)
85
- unicode-display_width (~> 1.0, >= 1.0.1)
85
+ unicode-display_width (>= 1.4.0, < 1.7)
86
86
  rubocop-rspec (1.28.0)
87
87
  rubocop (>= 0.58.0)
88
- ruby-progressbar (1.10.0)
88
+ ruby-progressbar (1.10.1)
89
+ ruby2_keywords (0.0.2)
89
90
  sidekiq (3.5.4)
90
91
  celluloid (~> 0.17.2)
91
92
  connection_pool (~> 2.2, >= 2.2.0)
@@ -97,34 +98,34 @@ GEM
97
98
  json (>= 1.8, < 3)
98
99
  simplecov-html (~> 0.10.0)
99
100
  simplecov-html (0.10.2)
100
- sinatra (2.0.4)
101
+ sinatra (2.0.8.1)
101
102
  mustermann (~> 1.0)
102
103
  rack (~> 2.0)
103
- rack-protection (= 2.0.4)
104
+ rack-protection (= 2.0.8.1)
104
105
  tilt (~> 2.0)
105
106
  slim (4.0.1)
106
107
  temple (>= 0.7.6, < 0.9)
107
108
  tilt (>= 2.0.6, < 2.1)
108
- temple (0.8.0)
109
- thor (0.20.0)
110
- tilt (2.0.8)
109
+ temple (0.8.2)
110
+ thor (1.0.1)
111
+ tilt (2.0.10)
111
112
  timecop (0.9.1)
112
- timers (4.1.2)
113
- hitimes
114
- unicode-display_width (1.4.0)
113
+ timers (4.3.2)
114
+ unicode-display_width (1.6.1)
115
115
 
116
116
  PLATFORMS
117
117
  ruby
118
118
 
119
119
  DEPENDENCIES
120
120
  appraisal (~> 2.2)
121
- bundler (~> 1.16)
121
+ bundler (~> 2.1)
122
122
  codeclimate-test-reporter (~> 1.0)
123
123
  concurrent-ruby
124
124
  pry-byebug (~> 3.6)
125
- rack-test (~> 0.8)
126
- rake (~> 10.0)
127
- redis (>= 3.3.5)
125
+ rack-test (~> 1.1)
126
+ rake (~> 13.0)
127
+ redis (~> 3.3)
128
+ redis-namespace (< 1.7.0)
128
129
  rspec (~> 3.0)
129
130
  rubocop (~> 0.58)
130
131
  rubocop-rspec (~> 1.28.0)
@@ -135,4 +136,4 @@ DEPENDENCIES
135
136
  timecop (~> 0.9)
136
137
 
137
138
  BUNDLED WITH
138
- 1.16.5
139
+ 2.1.4
@@ -2,7 +2,7 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "redis", ">= 3.3.5"
5
+ gem "redis", "~> 3.3"
6
6
  gem "sidekiq", "~> 4.0"
7
7
 
8
8
  gemspec path: "../"
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- sidekiq-prometheus-exporter (0.1.10)
4
+ sidekiq-prometheus-exporter (0.1.15)
5
5
  sidekiq (>= 3.3.1)
6
6
 
7
7
  GEM
@@ -13,58 +13,58 @@ GEM
13
13
  thor (>= 0.14.0)
14
14
  ast (2.4.0)
15
15
  byebug (10.0.2)
16
- codeclimate-test-reporter (1.0.8)
16
+ codeclimate-test-reporter (1.0.9)
17
17
  simplecov (<= 0.13)
18
18
  coderay (1.1.2)
19
- concurrent-ruby (1.0.5)
20
- connection_pool (2.2.2)
19
+ concurrent-ruby (1.1.8)
20
+ connection_pool (2.2.3)
21
21
  diff-lcs (1.3)
22
22
  docile (1.1.5)
23
- jaro_winkler (1.5.1)
24
- json (2.1.0)
25
- method_source (0.9.0)
26
- parallel (1.12.1)
27
- parser (2.5.1.2)
23
+ jaro_winkler (1.5.4)
24
+ json (2.3.0)
25
+ method_source (0.9.2)
26
+ parallel (1.19.1)
27
+ parser (2.7.0.4)
28
28
  ast (~> 2.4.0)
29
- powerpack (0.1.2)
30
- pry (0.11.3)
29
+ pry (0.12.2)
31
30
  coderay (~> 1.1.0)
32
31
  method_source (~> 0.9.0)
33
32
  pry-byebug (3.6.0)
34
33
  byebug (~> 10.0)
35
34
  pry (~> 0.10)
36
- rack (2.0.5)
37
- rack-protection (2.0.4)
35
+ rack (2.2.3)
36
+ rack-protection (2.1.0)
38
37
  rack
39
- rack-test (0.8.3)
38
+ rack-test (1.1.0)
40
39
  rack (>= 1.0, < 3)
41
40
  rainbow (3.0.0)
42
- rake (10.5.0)
41
+ rake (13.0.1)
43
42
  redis (3.3.5)
44
- rspec (3.8.0)
45
- rspec-core (~> 3.8.0)
46
- rspec-expectations (~> 3.8.0)
47
- rspec-mocks (~> 3.8.0)
48
- rspec-core (3.8.0)
49
- rspec-support (~> 3.8.0)
50
- rspec-expectations (3.8.1)
43
+ rexml (3.2.4)
44
+ rspec (3.9.0)
45
+ rspec-core (~> 3.9.0)
46
+ rspec-expectations (~> 3.9.0)
47
+ rspec-mocks (~> 3.9.0)
48
+ rspec-core (3.9.1)
49
+ rspec-support (~> 3.9.1)
50
+ rspec-expectations (3.9.0)
51
51
  diff-lcs (>= 1.2.0, < 2.0)
52
- rspec-support (~> 3.8.0)
53
- rspec-mocks (3.8.0)
52
+ rspec-support (~> 3.9.0)
53
+ rspec-mocks (3.9.1)
54
54
  diff-lcs (>= 1.2.0, < 2.0)
55
- rspec-support (~> 3.8.0)
56
- rspec-support (3.8.0)
57
- rubocop (0.59.2)
55
+ rspec-support (~> 3.9.0)
56
+ rspec-support (3.9.2)
57
+ rubocop (0.80.1)
58
58
  jaro_winkler (~> 1.5.1)
59
59
  parallel (~> 1.10)
60
- parser (>= 2.5, != 2.5.1.1)
61
- powerpack (~> 0.1)
60
+ parser (>= 2.7.0.1)
62
61
  rainbow (>= 2.2.2, < 4.0)
62
+ rexml
63
63
  ruby-progressbar (~> 1.7)
64
- unicode-display_width (~> 1.0, >= 1.0.1)
64
+ unicode-display_width (>= 1.4.0, < 1.7)
65
65
  rubocop-rspec (1.28.0)
66
66
  rubocop (>= 0.58.0)
67
- ruby-progressbar (1.10.0)
67
+ ruby-progressbar (1.10.1)
68
68
  sidekiq (4.2.10)
69
69
  concurrent-ruby (~> 1.0)
70
70
  connection_pool (~> 2.2, >= 2.2.0)
@@ -75,21 +75,21 @@ GEM
75
75
  json (>= 1.8, < 3)
76
76
  simplecov-html (~> 0.10.0)
77
77
  simplecov-html (0.10.2)
78
- thor (0.20.0)
78
+ thor (1.0.1)
79
79
  timecop (0.9.1)
80
- unicode-display_width (1.4.0)
80
+ unicode-display_width (1.6.1)
81
81
 
82
82
  PLATFORMS
83
83
  ruby
84
84
 
85
85
  DEPENDENCIES
86
86
  appraisal (~> 2.2)
87
- bundler (~> 1.16)
87
+ bundler (~> 2.1)
88
88
  codeclimate-test-reporter (~> 1.0)
89
89
  pry-byebug (~> 3.6)
90
- rack-test (~> 0.8)
91
- rake (~> 10.0)
92
- redis (>= 3.3.5)
90
+ rack-test (~> 1.1)
91
+ rake (~> 13.0)
92
+ redis (~> 3.3)
93
93
  rspec (~> 3.0)
94
94
  rubocop (~> 0.58)
95
95
  rubocop-rspec (~> 1.28.0)
@@ -98,4 +98,4 @@ DEPENDENCIES
98
98
  timecop (~> 0.9)
99
99
 
100
100
  BUNDLED WITH
101
- 1.16.5
101
+ 2.1.4