sidekiq_utils 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3a7e47a5026491abde5ec05f98a1eb4d6546296e
4
- data.tar.gz: 9c985fc8163eacc76b3affed9ee3c227b63926ca
3
+ metadata.gz: ab8e9d3a88cd0aab0b51bc4ef8a30cb2524c2a97
4
+ data.tar.gz: a61dc62b16fc3e057553bd643d9a31c6206e1206
5
5
  SHA512:
6
- metadata.gz: 867766b64a1183768e58c48a32eb24e9868969ffbf5b93ce392c305be877df93c965f28251242c1cf9f420595b3b1876cf7ae04525a5669e9dd449822544f589
7
- data.tar.gz: 84d4d0e2074dd029b44fb2992863b22b894c8129b7deefae15e3ebff5925b519a6a9ac54813f853aee6e9dec4313c05086431ced428fcccb3aa2c617b65e35e6
6
+ metadata.gz: ea2fbdcc90c514610236d08ce9dca73546cf7779d83c668843939af279240b6274865e5cb2939f98e1093f8a1c8fed0776b7d1cdeaf47644e80126396478b092
7
+ data.tar.gz: 3ad39b02be6c048606a285b6fd5f774c46e74a824163cb2404108592295046f1bd5382bcb95f6f9c37910bfcd043feaa22c3b87ddf6084a2af7c16362384fba8
data/README.md CHANGED
@@ -144,6 +144,33 @@ This will add a "Job counts" tab to your Sidekiq admin which will display the cu
144
144
 
145
145
  Please note that the accuracy of these numbers is not guaranteed as it is non-trivial to keep a running count. However, this is a useful tool when you are inspecting a very long queue.
146
146
 
147
+ ## Latency monitor
148
+
149
+ This will monitor queue latency and report to Slack channels if the latency exceeds the configured threshold.
150
+
151
+ ### Configuration
152
+
153
+ Create a `config/sidekiq_utils.yml` file in your project:
154
+ ```
155
+ repeat_alert_every: 60 # repeat identical alerts every x minutes
156
+ alert_thresholds: # in minutes
157
+ default: 10
158
+ high: 5
159
+ low: 60
160
+ slack:
161
+ username: 'Sidekiq alerts'
162
+ icon: 'alarm_clock'
163
+ team: 'foobar'
164
+ token: 'xxx'
165
+ channels_to_alert:
166
+ - "#ops-alerts"
167
+ - "#sidekiq-alerts"
168
+ ```
169
+
170
+ ### Usage
171
+
172
+ Simply call `SidekiqUtils::LatencyAlert.check!` at regular intervals.
173
+
147
174
  ## Memory monitor
148
175
 
149
176
  This automatically checks memory usage before and after a worker is run and keeps track of which jobs consistently leak memory. Please note that this is very approximate. It also requires you running one worker process single-threaded with `-c 1`. It slows down jobs processed by that worker considerably.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.2
1
+ 1.0.3
@@ -2,16 +2,16 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Juwelier::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: sidekiq_utils 1.0.2 ruby lib
5
+ # stub: sidekiq_utils 1.0.3 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "sidekiq_utils".freeze
9
- s.version = "1.0.2"
9
+ s.version = "1.0.3"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib".freeze]
13
13
  s.authors = ["Magnus von Koeller".freeze]
14
- s.date = "2017-12-08"
14
+ s.date = "2017-12-12"
15
15
  s.description = "Tools that make working with a major Sidekiq installation more fun.".freeze
16
16
  s.email = "magnus@angel.co".freeze
17
17
  s.extra_rdoc_files = [
@@ -41,12 +41,12 @@ Gem::Specification.new do |s|
41
41
  "lib/sidekiq_utils/middleware/server/memory_monitor.rb",
42
42
  "lib/sidekiq_utils/middleware/server/throughput_monitor.rb",
43
43
  "lib/sidekiq_utils/redis_monitor_storage.rb",
44
- "lib/sidekiq_utils/views/job_counts.erb",
45
- "lib/sidekiq_utils/views/memory.erb",
46
- "lib/sidekiq_utils/views/throughput.erb",
47
44
  "lib/sidekiq_utils/web_extensions/job_counter.rb",
48
45
  "lib/sidekiq_utils/web_extensions/memory_monitor.rb",
49
46
  "lib/sidekiq_utils/web_extensions/throughput_monitor.rb",
47
+ "lib/sidekiq_utils/web_extensions/views/job_counts.erb",
48
+ "lib/sidekiq_utils/web_extensions/views/memory.erb",
49
+ "lib/sidekiq_utils/web_extensions/views/throughput.erb",
50
50
  "sidekiq_utils.gemspec"
51
51
  ]
52
52
  s.homepage = "http://github.com/venturehacks/sidekiq_angels".freeze
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sidekiq_utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Magnus von Koeller
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-12-08 00:00:00.000000000 Z
11
+ date: 2017-12-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sidekiq
@@ -124,12 +124,12 @@ files:
124
124
  - lib/sidekiq_utils/middleware/server/memory_monitor.rb
125
125
  - lib/sidekiq_utils/middleware/server/throughput_monitor.rb
126
126
  - lib/sidekiq_utils/redis_monitor_storage.rb
127
- - lib/sidekiq_utils/views/job_counts.erb
128
- - lib/sidekiq_utils/views/memory.erb
129
- - lib/sidekiq_utils/views/throughput.erb
130
127
  - lib/sidekiq_utils/web_extensions/job_counter.rb
131
128
  - lib/sidekiq_utils/web_extensions/memory_monitor.rb
132
129
  - lib/sidekiq_utils/web_extensions/throughput_monitor.rb
130
+ - lib/sidekiq_utils/web_extensions/views/job_counts.erb
131
+ - lib/sidekiq_utils/web_extensions/views/memory.erb
132
+ - lib/sidekiq_utils/web_extensions/views/throughput.erb
133
133
  - sidekiq_utils.gemspec
134
134
  homepage: http://github.com/venturehacks/sidekiq_angels
135
135
  licenses: