sidekiq-monitoring 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/sidekiq-monitoring.rb +6 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 05f7351c183eb78e67ae33854d1ea42ec2ade1de
|
4
|
+
data.tar.gz: 00409f8a0d8aa2b4238cdb1a4bc5f95f90d135ab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1bd24caaf8940b5c6fb7b0286ee4c1f1683e4c6511694ba7d7d5c0973e3282e2c779c691b8c78f015cec3be317ea6242a058b997fb34b4d6b3c7440f8dbfe54e
|
7
|
+
data.tar.gz: 6dc9c5d2b9a35985feb190662a74369d8e9255e624894ec48354610eb405c9cc78c477f4b195e002feac4231bdad8900269dbe373b602c2bafa17d7cb7c2186b
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.1
|
data/lib/sidekiq-monitoring.rb
CHANGED
@@ -17,7 +17,7 @@ class SidekiqMonitoring < Sinatra::Base
|
|
17
17
|
|
18
18
|
get '/sidekiq_queues' do
|
19
19
|
content_type :json
|
20
|
-
MultiJson.dump SidekiqMonitoring::Global.new(@@thresholds)
|
20
|
+
MultiJson.dump SidekiqMonitoring::Global.new(@@thresholds, @@latency_thresholds)
|
21
21
|
end
|
22
22
|
|
23
23
|
module Monitorable
|
@@ -58,6 +58,8 @@ class SidekiqMonitoring < Sinatra::Base
|
|
58
58
|
'jid' => jid,
|
59
59
|
'worker_class' => worker_class,
|
60
60
|
'elapsed_time' => elapsed_time,
|
61
|
+
'warning_threshold' => warning_threshold,
|
62
|
+
'critical_threshold' => critical_threshold,
|
61
63
|
'status' => status,
|
62
64
|
'process_id' => process_id
|
63
65
|
}
|
@@ -98,6 +100,9 @@ class SidekiqMonitoring < Sinatra::Base
|
|
98
100
|
'size' => size,
|
99
101
|
'warning_threshold' => warning_threshold,
|
100
102
|
'critical_threshold' => critical_threshold,
|
103
|
+
'latency_warning_threshold' => warning_latency_threshold,
|
104
|
+
'latency_critical_threshold' => critical_latency_threshold,
|
105
|
+
'latency' => latency,
|
101
106
|
'status' => status
|
102
107
|
}
|
103
108
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sidekiq-monitoring
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeremy Carlier
|
8
8
|
autorequire:
|
9
9
|
bindir: ''
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-03-
|
11
|
+
date: 2016-03-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sinatra
|