yabeda-sidekiq 0.1.3 → 0.1.4

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
  SHA256:
3
- metadata.gz: 72f1df666e70373b15a7fc54732f14e6701a3fbfdd2a19e5a3703e542c6a13d4
4
- data.tar.gz: c38ed88429527e43edff2d445c8940d8bf52babd272fa5b1b7bbb37865b6ecff
3
+ metadata.gz: 21651b2b4b71d0573f1fb8e97768bd45116ad895ebfbf93122b734e4ebcf00a5
4
+ data.tar.gz: 217140bb32008e2082e1723c05953e36aa2a9f49a4a0b9941ca60ca982e25636
5
5
  SHA512:
6
- metadata.gz: 1d31f1bf0323344baf0e1a2707bd89661c09f14f664dabd8fa9fff347e308538608c9922d91d4f684b2a34d89ca95218dab7f29bfc0b359bd77057e34205a87a
7
- data.tar.gz: 3764a37a9aa8b9ccd715ca049e55af864324fe5927e2496825b1d0f222b63b452dbaa9f8b9e50ce4e29a9b044e5747cc711b4de4f27813a7b4e9796f6419e01a
6
+ metadata.gz: 1644f7bcdd3af5ca75d848c1963bb27a0543b745c1d38cef1160449b0b534d647791d9207c4b6ec882ff6004283f8773bdae41aaaa1ae81bf428c809f3bd0b45
7
+ data.tar.gz: aea64592cb596f91b30fb55228545f2d03499bff97081267e8b028a4b5d4510824b63cdc73d1d4b44824f1000d22ee98b73a756aa6fa2ac41fdf6bb1687844dc
data/CHANGELOG.md ADDED
@@ -0,0 +1,37 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
6
+ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
7
+
8
+
9
+ ## 0.1.4 - 2019-10-07
10
+
11
+ ### Added
12
+
13
+ - Require of core yabeda gem [#4](https://github.com/yabeda-rb/yabeda-sidekiq/pull/4). [@dsalahutdinov]
14
+
15
+ ## 0.1.3 - 2018-10-25
16
+
17
+ ### Fixed
18
+
19
+ - Require of core yabeda gem [#1](https://github.com/yabeda-rb/yabeda-sidekiq/issues/1). @Envek
20
+
21
+ ## 0.1.2 - 2018-10-17
22
+
23
+ ### Changed
24
+
25
+ - Renamed evil-metrics-sidekiq gem to yabeda-sidekiq. @Envek
26
+
27
+ ## 0.1.1 - 2018-10-05
28
+
29
+ ### Changed
30
+
31
+ - Automatic add client and server middlewares to Sidekiq. @Envek
32
+
33
+ ## 0.1.0 - 2018-10-03
34
+
35
+ - Initial release of evil-metrics-sidekiq gem. @Envek
36
+
37
+ [@dsalahutdinov]: https://github.com/dsalahutdinov "Salahutdinov Dmitry"
data/README.md CHANGED
@@ -5,7 +5,7 @@ Built-in metrics for [Sidekiq] monitoring out of the box! Part of the [yabeda] s
5
5
  ## Installation
6
6
 
7
7
  ```ruby
8
- gem 'yabeda-rails'
8
+ gem 'yabeda-sidekiq'
9
9
  # Then add monitoring system adapter, e.g.:
10
10
  # gem 'yabeda-prometheus'
11
11
  ```
@@ -31,6 +31,7 @@ end
31
31
  - Number of jobs have been finished successfully: `sidekiq_jobs_success_total` (segmented by queue and class name)
32
32
  - Number of jobs have been failed: `sidekiq_jobs_failed_total` (segmented by queue and class name)
33
33
  - Time of job run: `sidekiq_job_runtime` (seconds per job execution, segmented by queue and class name)
34
+ - Time of the queue latency `sidekiq_jobs_latency` (the difference in seconds since the oldest job in the queue was enqueued)
34
35
  - Number of jobs in queues: `sidekiq_jobs_waiting_count` (segmented by queue)
35
36
  - Number of scheduled jobs:`sidekiq_jobs_scheduled_count`
36
37
  - Number of jobs in retry set: `sidekiq_jobs_retry_count`
@@ -31,6 +31,8 @@ module Yabeda
31
31
  gauge :jobs_retry_count, comment: "The number of failed jobs waiting to be retried"
32
32
  gauge :jobs_dead_count, comment: "The number of jobs exceeded their retry count."
33
33
  gauge :active_processes, comment: "The number of active Sidekiq worker processes."
34
+ gauge :jobs_latency, comment: "The job latency, the difference in seconds since the oldest job in the queue was enqueued"
35
+
34
36
  histogram :job_runtime, unit: :seconds, per: :job, comment: "A histogram of the job execution time.",
35
37
  buckets: LONG_RUNNING_JOB_RUNTIME_BUCKETS
36
38
 
@@ -46,6 +48,10 @@ module Yabeda
46
48
  sidekiq_active_processes.set({}, stats.processes_size)
47
49
  sidekiq_jobs_retry_count.set({}, stats.retry_size)
48
50
 
51
+ ::Sidekiq::Queue.all.each do |queue|
52
+ sidekiq_jobs_latency.set({ queue: queue.name }, queue.latency)
53
+ end
54
+
49
55
  # That is quite slow if your retry set is large
50
56
  # I don't want to enable it by default
51
57
  # retries_by_queues =
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Yabeda
4
4
  module Sidekiq
5
- VERSION = "0.1.3"
5
+ VERSION = "0.1.4"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yabeda-sidekiq
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrey Novikov
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-10-25 00:00:00.000000000 Z
11
+ date: 2019-10-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: yabeda
@@ -92,6 +92,7 @@ files:
92
92
  - ".rspec"
93
93
  - ".rubocop.yml"
94
94
  - ".travis.yml"
95
+ - CHANGELOG.md
95
96
  - Gemfile
96
97
  - LICENSE.txt
97
98
  - README.md
@@ -122,8 +123,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
122
123
  - !ruby/object:Gem::Version
123
124
  version: '0'
124
125
  requirements: []
125
- rubyforge_project:
126
- rubygems_version: 2.7.6
126
+ rubygems_version: 3.0.3
127
127
  signing_key:
128
128
  specification_version: 4
129
129
  summary: Extensible Prometheus exporter for monitoring your Sidekiq