sidekiq-instrument 0.3.1 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -0
- data/lib/sidekiq/instrument/version.rb +1 -1
- data/lib/sidekiq/instrument/worker.rb +4 -0
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e96e8e7a4d3b2dbb86d2ab4be8c52873d1ddf88a1e4b608ed914e46b506a1f11
|
4
|
+
data.tar.gz: 64dacd4a762f0548f92201572b971b91efe58c9fe568958ef1c9ff3268853ffa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e9989ff9bf4b93726cb7253e3be785ad019531ec5d4f103a72c3b6661b2a3e67c49e8f5ec8aa687b2dc7dca37013bf0c29caf378ed7060575f3a3c3203877728
|
7
|
+
data.tar.gz: 1cbcd46fb20b2040da7d6d3d0ad8244fb39527733baa61a9f80d57bb418eba48c3a7ff1703fdc9eab757e5e5251bb8bbd08ce3cee96ab6784a813779a5bb0e52
|
data/README.md
CHANGED
@@ -70,6 +70,10 @@ For each job, the following metrics will be reported:
|
|
70
70
|
The metric names can be changed by overriding the `statsd_metric_name`
|
71
71
|
method in your worker classes.
|
72
72
|
|
73
|
+
For each queue, the following metrics will be reported:
|
74
|
+
1. **shared.sidekiq._queue_.size**: gauge of how many jobs are in the queue
|
75
|
+
1. **shared.sidekiq._queue_.latency**: gauge of how long the oldest job has been in the queue
|
76
|
+
|
73
77
|
## Worker
|
74
78
|
There is a worker, `Sidekiq::Instrument::Worker`, that submits gauges
|
75
79
|
for various interesting statistics; namely, the bulk of the information in `Sidekiq::Stats`
|
@@ -30,6 +30,10 @@ module Sidekiq::Instrument
|
|
30
30
|
info.queues.each do |name, size|
|
31
31
|
StatsD.gauge "shared.sidekiq.#{name}.size", size
|
32
32
|
end
|
33
|
+
|
34
|
+
Sidekiq::Queue.all.each do |queue|
|
35
|
+
StatsD.gauge "shared.sidekiq.#{queue.name}.latency", queue.latency
|
36
|
+
end
|
33
37
|
end
|
34
38
|
end
|
35
39
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sidekiq-instrument
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Larraz
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-12-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sidekiq
|
@@ -126,7 +126,7 @@ dependencies:
|
|
126
126
|
- - "~>"
|
127
127
|
- !ruby/object:Gem::Version
|
128
128
|
version: '0.8'
|
129
|
-
description:
|
129
|
+
description:
|
130
130
|
email:
|
131
131
|
- mlarraz@enova.com
|
132
132
|
executables: []
|
@@ -154,7 +154,7 @@ homepage: https://github.com/enova/sidekiq-instrument
|
|
154
154
|
licenses:
|
155
155
|
- MIT
|
156
156
|
metadata: {}
|
157
|
-
post_install_message:
|
157
|
+
post_install_message:
|
158
158
|
rdoc_options: []
|
159
159
|
require_paths:
|
160
160
|
- lib
|
@@ -169,8 +169,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
169
169
|
- !ruby/object:Gem::Version
|
170
170
|
version: '0'
|
171
171
|
requirements: []
|
172
|
-
rubygems_version: 3.
|
173
|
-
signing_key:
|
172
|
+
rubygems_version: 3.1.4
|
173
|
+
signing_key:
|
174
174
|
specification_version: 4
|
175
175
|
summary: StatsD instrumentation for Sidekiq
|
176
176
|
test_files: []
|