sidekiq-prometheus-exporter 0.1.6 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +12 -10
- data/gemfiles/sidekiq_3.3.1.gemfile.lock +28 -26
- data/gemfiles/sidekiq_3.x.gemfile.lock +35 -33
- data/gemfiles/sidekiq_4.x.gemfile.lock +21 -19
- data/gemfiles/sidekiq_5.x.gemfile.lock +24 -24
- data/lib/sidekiq/prometheus/exporter/metrics.rb +12 -0
- data/lib/sidekiq/prometheus/exporter/templates/metrics.erb +4 -0
- data/lib/sidekiq/prometheus/exporter/version.rb +1 -1
- data/sidekiq-prometheus-exporter.gemspec +1 -0
- metadata +16 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2b702801b2e941ccc0d6df89caa452b5cacba0d8
|
|
4
|
+
data.tar.gz: 7cfe65f905c85d73162aedd8d0efcb94968ac56f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a41177fe1ff1fd8d051518a8e6786c6f0d581ee2d452625e90e1a3ea408c481d98528d31c1611eb76953c003c5fed044aca6d00ee323e064ec9338f8229cd983
|
|
7
|
+
data.tar.gz: 11187a29bf07f7f63e6f3d794d9bf44fbfeeeee6cb23151ee920e4ba4c231121ec33a7567d2f9cb4d820726339f7fdd8937804013d8ef0b396a5266f582407a5
|
data/README.md
CHANGED
|
@@ -17,16 +17,18 @@ Open [dashboard example file](/examples/sidekiq.json), then open `https://<your
|
|
|
17
17
|
(starting Sidekiq `v3.3.1`)
|
|
18
18
|
|
|
19
19
|
```text
|
|
20
|
-
sidekiq_processed_jobs_total
|
|
21
|
-
sidekiq_failed_jobs_total
|
|
22
|
-
sidekiq_busy_workers
|
|
23
|
-
sidekiq_enqueued_jobs
|
|
24
|
-
sidekiq_scheduled_jobs
|
|
25
|
-
sidekiq_retry_jobs
|
|
26
|
-
sidekiq_dead_jobs
|
|
27
|
-
sidekiq_queue_latency_seconds
|
|
28
|
-
|
|
29
|
-
|
|
20
|
+
sidekiq_processed_jobs_total counter The total number of processed jobs.
|
|
21
|
+
sidekiq_failed_jobs_total counter The total number of failed jobs.
|
|
22
|
+
sidekiq_busy_workers gauge The number of workers performing the job.
|
|
23
|
+
sidekiq_enqueued_jobs gauge The number of enqueued jobs.
|
|
24
|
+
sidekiq_scheduled_jobs gauge The number of jobs scheduled for a future execution.
|
|
25
|
+
sidekiq_retry_jobs gauge The number of jobs scheduled for the next try.
|
|
26
|
+
sidekiq_dead_jobs gauge The number of jobs being dead.
|
|
27
|
+
sidekiq_queue_latency_seconds gauge The amount of seconds between oldest job being pushed
|
|
28
|
+
to the queue and current time (labels: name).
|
|
29
|
+
sidekiq_queue_max_processing_time_seconds gauge The amount of seconds between oldest job of the queue
|
|
30
|
+
being executed and current time (labels: name).
|
|
31
|
+
sidekiq_queue_enqueued_jobs gauge The number of enqueued jobs in the queue (labels: name).
|
|
30
32
|
```
|
|
31
33
|
|
|
32
34
|
# Installation
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: ..
|
|
3
3
|
specs:
|
|
4
|
-
sidekiq-prometheus-exporter (0.1.
|
|
4
|
+
sidekiq-prometheus-exporter (0.1.6)
|
|
5
5
|
sidekiq (>= 3.3.1)
|
|
6
6
|
|
|
7
7
|
GEM
|
|
@@ -12,7 +12,7 @@ GEM
|
|
|
12
12
|
rake
|
|
13
13
|
thor (>= 0.14.0)
|
|
14
14
|
ast (2.4.0)
|
|
15
|
-
byebug (10.0.
|
|
15
|
+
byebug (10.0.2)
|
|
16
16
|
celluloid (0.17.3)
|
|
17
17
|
celluloid-essentials
|
|
18
18
|
celluloid-extras
|
|
@@ -34,14 +34,14 @@ GEM
|
|
|
34
34
|
simplecov (<= 0.13)
|
|
35
35
|
coderay (1.1.2)
|
|
36
36
|
concurrent-ruby (1.0.5)
|
|
37
|
-
connection_pool (2.2.
|
|
37
|
+
connection_pool (2.2.2)
|
|
38
38
|
diff-lcs (1.3)
|
|
39
39
|
docile (1.1.5)
|
|
40
|
-
hitimes (1.
|
|
40
|
+
hitimes (1.3.0)
|
|
41
41
|
jaro_winkler (1.5.1)
|
|
42
42
|
json (2.1.0)
|
|
43
43
|
method_source (0.9.0)
|
|
44
|
-
mustermann (1.0.
|
|
44
|
+
mustermann (1.0.3)
|
|
45
45
|
parallel (1.12.1)
|
|
46
46
|
parser (2.5.1.2)
|
|
47
47
|
ast (~> 2.4.0)
|
|
@@ -52,30 +52,30 @@ GEM
|
|
|
52
52
|
pry-byebug (3.6.0)
|
|
53
53
|
byebug (~> 10.0)
|
|
54
54
|
pry (~> 0.10)
|
|
55
|
-
rack (2.0.
|
|
56
|
-
rack-protection (2.0.
|
|
55
|
+
rack (2.0.5)
|
|
56
|
+
rack-protection (2.0.4)
|
|
57
57
|
rack
|
|
58
|
-
rack-test (0.8.
|
|
58
|
+
rack-test (0.8.3)
|
|
59
59
|
rack (>= 1.0, < 3)
|
|
60
60
|
rainbow (3.0.0)
|
|
61
61
|
rake (10.5.0)
|
|
62
|
-
redis (4.0.
|
|
62
|
+
redis (4.0.2)
|
|
63
63
|
redis-namespace (1.6.0)
|
|
64
64
|
redis (>= 3.0.4)
|
|
65
|
-
rspec (3.
|
|
66
|
-
rspec-core (~> 3.
|
|
67
|
-
rspec-expectations (~> 3.
|
|
68
|
-
rspec-mocks (~> 3.
|
|
69
|
-
rspec-core (3.
|
|
70
|
-
rspec-support (~> 3.
|
|
71
|
-
rspec-expectations (3.
|
|
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
72
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
73
|
-
rspec-support (~> 3.
|
|
74
|
-
rspec-mocks (3.
|
|
73
|
+
rspec-support (~> 3.8.0)
|
|
74
|
+
rspec-mocks (3.8.0)
|
|
75
75
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
76
|
-
rspec-support (~> 3.
|
|
77
|
-
rspec-support (3.
|
|
78
|
-
rubocop (0.
|
|
76
|
+
rspec-support (~> 3.8.0)
|
|
77
|
+
rspec-support (3.8.0)
|
|
78
|
+
rubocop (0.59.2)
|
|
79
79
|
jaro_winkler (~> 1.5.1)
|
|
80
80
|
parallel (~> 1.10)
|
|
81
81
|
parser (>= 2.5, != 2.5.1.1)
|
|
@@ -97,17 +97,18 @@ GEM
|
|
|
97
97
|
json (>= 1.8, < 3)
|
|
98
98
|
simplecov-html (~> 0.10.0)
|
|
99
99
|
simplecov-html (0.10.2)
|
|
100
|
-
sinatra (2.0.
|
|
100
|
+
sinatra (2.0.4)
|
|
101
101
|
mustermann (~> 1.0)
|
|
102
102
|
rack (~> 2.0)
|
|
103
|
-
rack-protection (= 2.0.
|
|
103
|
+
rack-protection (= 2.0.4)
|
|
104
104
|
tilt (~> 2.0)
|
|
105
|
-
slim (
|
|
105
|
+
slim (4.0.1)
|
|
106
106
|
temple (>= 0.7.6, < 0.9)
|
|
107
|
-
tilt (>=
|
|
107
|
+
tilt (>= 2.0.6, < 2.1)
|
|
108
108
|
temple (0.8.0)
|
|
109
109
|
thor (0.20.0)
|
|
110
110
|
tilt (2.0.8)
|
|
111
|
+
timecop (0.9.1)
|
|
111
112
|
timers (4.1.2)
|
|
112
113
|
hitimes
|
|
113
114
|
unicode-display_width (1.4.0)
|
|
@@ -131,6 +132,7 @@ DEPENDENCIES
|
|
|
131
132
|
sidekiq-prometheus-exporter!
|
|
132
133
|
sinatra
|
|
133
134
|
slim
|
|
135
|
+
timecop (~> 0.9)
|
|
134
136
|
|
|
135
137
|
BUNDLED WITH
|
|
136
|
-
1.16.
|
|
138
|
+
1.16.5
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: ..
|
|
3
3
|
specs:
|
|
4
|
-
sidekiq-prometheus-exporter (0.1.
|
|
4
|
+
sidekiq-prometheus-exporter (0.1.6)
|
|
5
5
|
sidekiq (>= 3.3.1)
|
|
6
6
|
|
|
7
7
|
GEM
|
|
@@ -12,7 +12,7 @@ GEM
|
|
|
12
12
|
rake
|
|
13
13
|
thor (>= 0.14.0)
|
|
14
14
|
ast (2.4.0)
|
|
15
|
-
byebug (10.0.
|
|
15
|
+
byebug (10.0.2)
|
|
16
16
|
celluloid (0.17.3)
|
|
17
17
|
celluloid-essentials
|
|
18
18
|
celluloid-extras
|
|
@@ -34,14 +34,14 @@ GEM
|
|
|
34
34
|
simplecov (<= 0.13)
|
|
35
35
|
coderay (1.1.2)
|
|
36
36
|
concurrent-ruby (1.0.5)
|
|
37
|
-
connection_pool (2.2.
|
|
37
|
+
connection_pool (2.2.2)
|
|
38
38
|
diff-lcs (1.3)
|
|
39
39
|
docile (1.1.5)
|
|
40
|
-
hitimes (1.
|
|
40
|
+
hitimes (1.3.0)
|
|
41
41
|
jaro_winkler (1.5.1)
|
|
42
|
-
json (
|
|
42
|
+
json (1.8.6)
|
|
43
43
|
method_source (0.9.0)
|
|
44
|
-
mustermann (1.0.
|
|
44
|
+
mustermann (1.0.3)
|
|
45
45
|
parallel (1.12.1)
|
|
46
46
|
parser (2.5.1.2)
|
|
47
47
|
ast (~> 2.4.0)
|
|
@@ -52,30 +52,30 @@ GEM
|
|
|
52
52
|
pry-byebug (3.6.0)
|
|
53
53
|
byebug (~> 10.0)
|
|
54
54
|
pry (~> 0.10)
|
|
55
|
-
rack (2.0.
|
|
56
|
-
rack-protection (2.0.
|
|
55
|
+
rack (2.0.5)
|
|
56
|
+
rack-protection (2.0.4)
|
|
57
57
|
rack
|
|
58
|
-
rack-test (0.8.
|
|
58
|
+
rack-test (0.8.3)
|
|
59
59
|
rack (>= 1.0, < 3)
|
|
60
60
|
rainbow (3.0.0)
|
|
61
61
|
rake (10.5.0)
|
|
62
|
-
redis (
|
|
62
|
+
redis (3.3.5)
|
|
63
63
|
redis-namespace (1.6.0)
|
|
64
64
|
redis (>= 3.0.4)
|
|
65
|
-
rspec (3.
|
|
66
|
-
rspec-core (~> 3.
|
|
67
|
-
rspec-expectations (~> 3.
|
|
68
|
-
rspec-mocks (~> 3.
|
|
69
|
-
rspec-core (3.
|
|
70
|
-
rspec-support (~> 3.
|
|
71
|
-
rspec-expectations (3.
|
|
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
72
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
73
|
-
rspec-support (~> 3.
|
|
74
|
-
rspec-mocks (3.
|
|
73
|
+
rspec-support (~> 3.8.0)
|
|
74
|
+
rspec-mocks (3.8.0)
|
|
75
75
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
76
|
-
rspec-support (~> 3.
|
|
77
|
-
rspec-support (3.
|
|
78
|
-
rubocop (0.
|
|
76
|
+
rspec-support (~> 3.8.0)
|
|
77
|
+
rspec-support (3.8.0)
|
|
78
|
+
rubocop (0.59.2)
|
|
79
79
|
jaro_winkler (~> 1.5.1)
|
|
80
80
|
parallel (~> 1.10)
|
|
81
81
|
parser (>= 2.5, != 2.5.1.1)
|
|
@@ -86,28 +86,29 @@ GEM
|
|
|
86
86
|
rubocop-rspec (1.28.0)
|
|
87
87
|
rubocop (>= 0.58.0)
|
|
88
88
|
ruby-progressbar (1.10.0)
|
|
89
|
-
sidekiq (3.
|
|
90
|
-
celluloid (
|
|
91
|
-
connection_pool (>= 2.
|
|
92
|
-
json
|
|
93
|
-
redis (>= 3.
|
|
94
|
-
redis-namespace (>= 1.
|
|
89
|
+
sidekiq (3.5.4)
|
|
90
|
+
celluloid (~> 0.17.2)
|
|
91
|
+
connection_pool (~> 2.2, >= 2.2.0)
|
|
92
|
+
json (~> 1.0)
|
|
93
|
+
redis (~> 3.2, >= 3.2.1)
|
|
94
|
+
redis-namespace (~> 1.5, >= 1.5.2)
|
|
95
95
|
simplecov (0.13.0)
|
|
96
96
|
docile (~> 1.1.0)
|
|
97
97
|
json (>= 1.8, < 3)
|
|
98
98
|
simplecov-html (~> 0.10.0)
|
|
99
99
|
simplecov-html (0.10.2)
|
|
100
|
-
sinatra (2.0.
|
|
100
|
+
sinatra (2.0.4)
|
|
101
101
|
mustermann (~> 1.0)
|
|
102
102
|
rack (~> 2.0)
|
|
103
|
-
rack-protection (= 2.0.
|
|
103
|
+
rack-protection (= 2.0.4)
|
|
104
104
|
tilt (~> 2.0)
|
|
105
|
-
slim (
|
|
105
|
+
slim (4.0.1)
|
|
106
106
|
temple (>= 0.7.6, < 0.9)
|
|
107
|
-
tilt (>=
|
|
107
|
+
tilt (>= 2.0.6, < 2.1)
|
|
108
108
|
temple (0.8.0)
|
|
109
109
|
thor (0.20.0)
|
|
110
110
|
tilt (2.0.8)
|
|
111
|
+
timecop (0.9.1)
|
|
111
112
|
timers (4.1.2)
|
|
112
113
|
hitimes
|
|
113
114
|
unicode-display_width (1.4.0)
|
|
@@ -131,6 +132,7 @@ DEPENDENCIES
|
|
|
131
132
|
sidekiq-prometheus-exporter!
|
|
132
133
|
sinatra
|
|
133
134
|
slim
|
|
135
|
+
timecop (~> 0.9)
|
|
134
136
|
|
|
135
137
|
BUNDLED WITH
|
|
136
|
-
1.16.
|
|
138
|
+
1.16.5
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: ..
|
|
3
3
|
specs:
|
|
4
|
-
sidekiq-prometheus-exporter (0.1.
|
|
4
|
+
sidekiq-prometheus-exporter (0.1.6)
|
|
5
5
|
sidekiq (>= 3.3.1)
|
|
6
6
|
|
|
7
7
|
GEM
|
|
@@ -12,12 +12,12 @@ GEM
|
|
|
12
12
|
rake
|
|
13
13
|
thor (>= 0.14.0)
|
|
14
14
|
ast (2.4.0)
|
|
15
|
-
byebug (10.0.
|
|
15
|
+
byebug (10.0.2)
|
|
16
16
|
codeclimate-test-reporter (1.0.8)
|
|
17
17
|
simplecov (<= 0.13)
|
|
18
18
|
coderay (1.1.2)
|
|
19
19
|
concurrent-ruby (1.0.5)
|
|
20
|
-
connection_pool (2.2.
|
|
20
|
+
connection_pool (2.2.2)
|
|
21
21
|
diff-lcs (1.3)
|
|
22
22
|
docile (1.1.5)
|
|
23
23
|
jaro_winkler (1.5.1)
|
|
@@ -33,28 +33,28 @@ GEM
|
|
|
33
33
|
pry-byebug (3.6.0)
|
|
34
34
|
byebug (~> 10.0)
|
|
35
35
|
pry (~> 0.10)
|
|
36
|
-
rack (2.0.
|
|
37
|
-
rack-protection (2.0.
|
|
36
|
+
rack (2.0.5)
|
|
37
|
+
rack-protection (2.0.4)
|
|
38
38
|
rack
|
|
39
|
-
rack-test (0.8.
|
|
39
|
+
rack-test (0.8.3)
|
|
40
40
|
rack (>= 1.0, < 3)
|
|
41
41
|
rainbow (3.0.0)
|
|
42
42
|
rake (10.5.0)
|
|
43
43
|
redis (3.3.5)
|
|
44
|
-
rspec (3.
|
|
45
|
-
rspec-core (~> 3.
|
|
46
|
-
rspec-expectations (~> 3.
|
|
47
|
-
rspec-mocks (~> 3.
|
|
48
|
-
rspec-core (3.
|
|
49
|
-
rspec-support (~> 3.
|
|
50
|
-
rspec-expectations (3.
|
|
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)
|
|
51
51
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
52
|
-
rspec-support (~> 3.
|
|
53
|
-
rspec-mocks (3.
|
|
52
|
+
rspec-support (~> 3.8.0)
|
|
53
|
+
rspec-mocks (3.8.0)
|
|
54
54
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
55
|
-
rspec-support (~> 3.
|
|
56
|
-
rspec-support (3.
|
|
57
|
-
rubocop (0.
|
|
55
|
+
rspec-support (~> 3.8.0)
|
|
56
|
+
rspec-support (3.8.0)
|
|
57
|
+
rubocop (0.59.2)
|
|
58
58
|
jaro_winkler (~> 1.5.1)
|
|
59
59
|
parallel (~> 1.10)
|
|
60
60
|
parser (>= 2.5, != 2.5.1.1)
|
|
@@ -76,6 +76,7 @@ GEM
|
|
|
76
76
|
simplecov-html (~> 0.10.0)
|
|
77
77
|
simplecov-html (0.10.2)
|
|
78
78
|
thor (0.20.0)
|
|
79
|
+
timecop (0.9.1)
|
|
79
80
|
unicode-display_width (1.4.0)
|
|
80
81
|
|
|
81
82
|
PLATFORMS
|
|
@@ -94,6 +95,7 @@ DEPENDENCIES
|
|
|
94
95
|
rubocop-rspec (~> 1.28.0)
|
|
95
96
|
sidekiq (~> 4.0)
|
|
96
97
|
sidekiq-prometheus-exporter!
|
|
98
|
+
timecop (~> 0.9)
|
|
97
99
|
|
|
98
100
|
BUNDLED WITH
|
|
99
|
-
1.16.
|
|
101
|
+
1.16.5
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: ..
|
|
3
3
|
specs:
|
|
4
|
-
sidekiq-prometheus-exporter (0.1.
|
|
4
|
+
sidekiq-prometheus-exporter (0.1.6)
|
|
5
5
|
sidekiq (>= 3.3.1)
|
|
6
6
|
|
|
7
7
|
GEM
|
|
@@ -12,12 +12,11 @@ GEM
|
|
|
12
12
|
rake
|
|
13
13
|
thor (>= 0.14.0)
|
|
14
14
|
ast (2.4.0)
|
|
15
|
-
byebug (10.0.
|
|
15
|
+
byebug (10.0.2)
|
|
16
16
|
codeclimate-test-reporter (1.0.8)
|
|
17
17
|
simplecov (<= 0.13)
|
|
18
18
|
coderay (1.1.2)
|
|
19
|
-
|
|
20
|
-
connection_pool (2.2.1)
|
|
19
|
+
connection_pool (2.2.2)
|
|
21
20
|
diff-lcs (1.3)
|
|
22
21
|
docile (1.1.5)
|
|
23
22
|
jaro_winkler (1.5.1)
|
|
@@ -33,28 +32,28 @@ GEM
|
|
|
33
32
|
pry-byebug (3.6.0)
|
|
34
33
|
byebug (~> 10.0)
|
|
35
34
|
pry (~> 0.10)
|
|
36
|
-
rack (2.0.
|
|
37
|
-
rack-protection (2.0.
|
|
35
|
+
rack (2.0.5)
|
|
36
|
+
rack-protection (2.0.4)
|
|
38
37
|
rack
|
|
39
|
-
rack-test (0.8.
|
|
38
|
+
rack-test (0.8.3)
|
|
40
39
|
rack (>= 1.0, < 3)
|
|
41
40
|
rainbow (3.0.0)
|
|
42
41
|
rake (10.5.0)
|
|
43
|
-
redis (4.0.
|
|
44
|
-
rspec (3.
|
|
45
|
-
rspec-core (~> 3.
|
|
46
|
-
rspec-expectations (~> 3.
|
|
47
|
-
rspec-mocks (~> 3.
|
|
48
|
-
rspec-core (3.
|
|
49
|
-
rspec-support (~> 3.
|
|
50
|
-
rspec-expectations (3.
|
|
42
|
+
redis (4.0.2)
|
|
43
|
+
rspec (3.8.0)
|
|
44
|
+
rspec-core (~> 3.8.0)
|
|
45
|
+
rspec-expectations (~> 3.8.0)
|
|
46
|
+
rspec-mocks (~> 3.8.0)
|
|
47
|
+
rspec-core (3.8.0)
|
|
48
|
+
rspec-support (~> 3.8.0)
|
|
49
|
+
rspec-expectations (3.8.1)
|
|
51
50
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
52
|
-
rspec-support (~> 3.
|
|
53
|
-
rspec-mocks (3.
|
|
51
|
+
rspec-support (~> 3.8.0)
|
|
52
|
+
rspec-mocks (3.8.0)
|
|
54
53
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
55
|
-
rspec-support (~> 3.
|
|
56
|
-
rspec-support (3.
|
|
57
|
-
rubocop (0.
|
|
54
|
+
rspec-support (~> 3.8.0)
|
|
55
|
+
rspec-support (3.8.0)
|
|
56
|
+
rubocop (0.59.2)
|
|
58
57
|
jaro_winkler (~> 1.5.1)
|
|
59
58
|
parallel (~> 1.10)
|
|
60
59
|
parser (>= 2.5, != 2.5.1.1)
|
|
@@ -65,9 +64,8 @@ GEM
|
|
|
65
64
|
rubocop-rspec (1.28.0)
|
|
66
65
|
rubocop (>= 0.58.0)
|
|
67
66
|
ruby-progressbar (1.10.0)
|
|
68
|
-
sidekiq (5.
|
|
69
|
-
|
|
70
|
-
connection_pool (~> 2.2, >= 2.2.0)
|
|
67
|
+
sidekiq (5.2.2)
|
|
68
|
+
connection_pool (~> 2.2, >= 2.2.2)
|
|
71
69
|
rack-protection (>= 1.5.0)
|
|
72
70
|
redis (>= 3.3.5, < 5)
|
|
73
71
|
simplecov (0.13.0)
|
|
@@ -76,6 +74,7 @@ GEM
|
|
|
76
74
|
simplecov-html (~> 0.10.0)
|
|
77
75
|
simplecov-html (0.10.2)
|
|
78
76
|
thor (0.20.0)
|
|
77
|
+
timecop (0.9.1)
|
|
79
78
|
unicode-display_width (1.4.0)
|
|
80
79
|
|
|
81
80
|
PLATFORMS
|
|
@@ -94,6 +93,7 @@ DEPENDENCIES
|
|
|
94
93
|
rubocop-rspec (~> 1.28.0)
|
|
95
94
|
sidekiq (~> 5.0)
|
|
96
95
|
sidekiq-prometheus-exporter!
|
|
96
|
+
timecop (~> 0.9)
|
|
97
97
|
|
|
98
98
|
BUNDLED WITH
|
|
99
|
-
1.16.
|
|
99
|
+
1.16.5
|
|
@@ -10,6 +10,7 @@ module Sidekiq
|
|
|
10
10
|
def initialize
|
|
11
11
|
@overview_stats = Sidekiq::Stats.new
|
|
12
12
|
@queues_stats = queues_stats
|
|
13
|
+
@max_processing_times = max_processing_times
|
|
13
14
|
end
|
|
14
15
|
|
|
15
16
|
def __binding__
|
|
@@ -23,6 +24,17 @@ module Sidekiq
|
|
|
23
24
|
QueueStats.new(queue.name, queue.size, queue.latency)
|
|
24
25
|
end
|
|
25
26
|
end
|
|
27
|
+
|
|
28
|
+
def max_processing_times
|
|
29
|
+
now = Time.now.to_i
|
|
30
|
+
Sidekiq::Workers.new
|
|
31
|
+
.map { |_, _, execution| execution }
|
|
32
|
+
.group_by { |execution| execution['queue'] }
|
|
33
|
+
.each_with_object({}) do |(queue, executions), memo|
|
|
34
|
+
oldest_execution = executions.min_by { |execution| execution['run_at'] }
|
|
35
|
+
memo[queue] = now - oldest_execution['run_at']
|
|
36
|
+
end
|
|
37
|
+
end
|
|
26
38
|
end
|
|
27
39
|
end
|
|
28
40
|
end
|
|
@@ -34,3 +34,7 @@ sidekiq_dead_jobs <%= format('%d', @overview_stats.dead_size) %>
|
|
|
34
34
|
# TYPE sidekiq_queue_enqueued_jobs gauge
|
|
35
35
|
<% @queues_stats.each do |queue| %>sidekiq_queue_enqueued_jobs{name="<%= queue.name %>"} <%= format('%d', queue.size) %>
|
|
36
36
|
<% end %>
|
|
37
|
+
# HELP sidekiq_queue_max_processing_time_seconds The amount of seconds between oldest job of the queue being executed and current time.
|
|
38
|
+
# TYPE sidekiq_queue_max_processing_time_seconds gauge
|
|
39
|
+
<% @max_processing_times.each do |queue, max_processing_time| %>sidekiq_queue_max_processing_time_seconds{name="<%= queue %>"} <%= format('%i', max_processing_time) %>
|
|
40
|
+
<% end %>
|
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.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Sergey Fedorov
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-
|
|
11
|
+
date: 2018-12-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: sidekiq
|
|
@@ -150,6 +150,20 @@ dependencies:
|
|
|
150
150
|
- - "~>"
|
|
151
151
|
- !ruby/object:Gem::Version
|
|
152
152
|
version: 1.28.0
|
|
153
|
+
- !ruby/object:Gem::Dependency
|
|
154
|
+
name: timecop
|
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
|
156
|
+
requirements:
|
|
157
|
+
- - "~>"
|
|
158
|
+
- !ruby/object:Gem::Version
|
|
159
|
+
version: '0.9'
|
|
160
|
+
type: :development
|
|
161
|
+
prerelease: false
|
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
163
|
+
requirements:
|
|
164
|
+
- - "~>"
|
|
165
|
+
- !ruby/object:Gem::Version
|
|
166
|
+
version: '0.9'
|
|
153
167
|
description: All the basic metrics prepared for Prometheus
|
|
154
168
|
email:
|
|
155
169
|
- oni.strech@gmail.com
|