sidekiq_queue_metrics 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +11 -0
- data/LICENSE +21 -0
- data/README.md +56 -0
- data/lib/sidekiq_queue_metrics/version.rb +1 -1
- data/sidekiq_queue_metrics.gemspec +1 -1
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 02ff424fdc7f21863eb3d6652d920eba006815a2b955279ed9790c4a8a0e0f80
|
4
|
+
data.tar.gz: 43de8232e85cf8307ecb71f8707a3486b4fd301ade7a45a43d23bee9e3cccbe0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3275a0ef634bea95ac4c1d22dc9761ad19f3153f95d00955b0fc46e3de10fa1b89d72b65a0bf773f25f84333c8b889d2f967839f4dd4fb0a8e935dca80bd6e2d
|
7
|
+
data.tar.gz: ff1eb673e5c72739012d95ff5009f8e87be3d172edfad4662ad8ef108a2d8be02b51af291a15a08ae344942e967db66e0a34a319560a30ebe64d5e6375a3dac3
|
data/.travis.yml
ADDED
data/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2018 Ajit Singh
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,56 @@
|
|
1
|
+
# sidekiq_queue_metrics
|
2
|
+
Records stats of each sidekiq queue and exposes APIs to retrieve them
|
3
|
+
|
4
|
+
## Installation
|
5
|
+
Add this line to your application's Gemfile:
|
6
|
+
```ruby
|
7
|
+
gem 'sidekiq_queue_metrics'
|
8
|
+
```
|
9
|
+
|
10
|
+
## Configuration
|
11
|
+
```ruby
|
12
|
+
require 'sidekiq_queue_metrics'
|
13
|
+
|
14
|
+
Sidekiq.configure_server do |config|
|
15
|
+
Sidekiq::QueueMetrics.init(config)
|
16
|
+
end
|
17
|
+
```
|
18
|
+
|
19
|
+
## Usage
|
20
|
+
Fetch stats of all queues:
|
21
|
+
```ruby
|
22
|
+
Sidekiq::QueueMetrics.fetch
|
23
|
+
```
|
24
|
+
|
25
|
+
Output:
|
26
|
+
```ruby
|
27
|
+
{
|
28
|
+
"mailer_queue" => {"processed" => 5, "failed" => 1, "enqueued" => 2, "in_retry" => 0},
|
29
|
+
"default_queue" => {"processed" => 10, "failed" => 0, "enqueued" => 1, "in_retry" => 1}
|
30
|
+
}
|
31
|
+
```
|
32
|
+
|
33
|
+
## License
|
34
|
+
```LICENSE
|
35
|
+
MIT License
|
36
|
+
|
37
|
+
Copyright (c) 2018 Ajit Singh
|
38
|
+
|
39
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
40
|
+
of this software and associated documentation files (the "Software"), to deal
|
41
|
+
in the Software without restriction, including without limitation the rights
|
42
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
43
|
+
copies of the Software, and to permit persons to whom the Software is
|
44
|
+
furnished to do so, subject to the following conditions:
|
45
|
+
|
46
|
+
The above copyright notice and this permission notice shall be included in all
|
47
|
+
copies or substantial portions of the Software.
|
48
|
+
|
49
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
50
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
51
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
52
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
53
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
54
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
55
|
+
SOFTWARE.
|
56
|
+
```
|
@@ -10,7 +10,7 @@ Gem::Specification.new do |s|
|
|
10
10
|
s.authors = ['Ajit Singh']
|
11
11
|
s.email = 'jeetsingh.ajit@gamil.com'
|
12
12
|
s.license = 'MIT'
|
13
|
-
s.homepage = 'https://github.com/ajitsing/
|
13
|
+
s.homepage = 'https://github.com/ajitsing/sidekiq_queue_metrics'
|
14
14
|
|
15
15
|
s.files = `git ls-files -z`.split("\x0")
|
16
16
|
s.executables = s.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sidekiq_queue_metrics
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ajit Singh
|
@@ -74,8 +74,11 @@ extra_rdoc_files: []
|
|
74
74
|
files:
|
75
75
|
- ".gitignore"
|
76
76
|
- ".rspec"
|
77
|
+
- ".travis.yml"
|
77
78
|
- Gemfile
|
78
79
|
- Gemfile.lock
|
80
|
+
- LICENSE
|
81
|
+
- README.md
|
79
82
|
- lib/sidekiq_queue_metrics.rb
|
80
83
|
- lib/sidekiq_queue_metrics/configuration.rb
|
81
84
|
- lib/sidekiq_queue_metrics/monitor/job_death_monitor.rb
|
@@ -89,7 +92,7 @@ files:
|
|
89
92
|
- spec/lib/sidekiq_queue_metrics/monitor/job_success_monitor_spec.rb
|
90
93
|
- spec/lib/sidekiq_queue_metrics/queue_stats_spec.rb
|
91
94
|
- spec/spec_helper.rb
|
92
|
-
homepage: https://github.com/ajitsing/
|
95
|
+
homepage: https://github.com/ajitsing/sidekiq_queue_metrics
|
93
96
|
licenses:
|
94
97
|
- MIT
|
95
98
|
metadata: {}
|