yabeda-sidekiq 0.1.4 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/yabeda/sidekiq/version.rb +1 -1
- data/lib/yabeda/sidekiq.rb +16 -13
- data/yabeda-sidekiq.gemspec +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4c513f6e9028c0bc3a385488105d314a5c7e7ba9ef795bcbd07895d21fe80c8a
|
4
|
+
data.tar.gz: d76ba8c2d976a4ba2356713fc40b9c8ed7720aa8ddd15adc08f5d338a8d06604
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f99e5b2d9a108a659affa0f14d3b0528377485616b6213f2f06eb0c2744d2c6e9d97051a0f56ee4aa1757b1ee4109bda42fd7c66b23f656b4764ce7c06ac039e
|
7
|
+
data.tar.gz: 916fe6c0019e72bbe444cc75a5d3ec8ab27d174eb688e7de121f31b80a1280b522c5c0902dd5839946cd9d3ef9387704126cce295171889b72b0ffc998a8b796
|
data/CHANGELOG.md
CHANGED
@@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
|
|
5
5
|
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
|
6
6
|
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
7
7
|
|
8
|
+
## 0.2.0 - 2020-01-14
|
9
|
+
|
10
|
+
### Changed
|
11
|
+
|
12
|
+
- Added `tags` option to metric declarations for compatibility with yabeda and yabeda-prometheus 0.2. @Envek
|
8
13
|
|
9
14
|
## 0.1.4 - 2019-10-07
|
10
15
|
|
data/lib/yabeda/sidekiq.rb
CHANGED
@@ -18,22 +18,25 @@ module Yabeda
|
|
18
18
|
Yabeda.configure do
|
19
19
|
group :sidekiq
|
20
20
|
|
21
|
-
counter :jobs_enqueued_total, comment: "A counter of the total number of jobs sidekiq enqueued."
|
21
|
+
counter :jobs_enqueued_total, tags: %i[queue worker], comment: "A counter of the total number of jobs sidekiq enqueued."
|
22
22
|
|
23
23
|
next unless ::Sidekiq.server?
|
24
24
|
|
25
|
-
counter :jobs_executed_total, comment: "A counter of the total number of jobs sidekiq executed."
|
26
|
-
counter :jobs_success_total, comment: "A counter of the total number of jobs successfully processed by sidekiq."
|
27
|
-
counter :jobs_failed_total, comment: "A counter of the total number of jobs failed in sidekiq."
|
28
|
-
|
29
|
-
gauge :
|
30
|
-
gauge :
|
31
|
-
gauge :
|
32
|
-
gauge :
|
33
|
-
gauge :
|
34
|
-
gauge :
|
35
|
-
|
36
|
-
|
25
|
+
counter :jobs_executed_total, tags: %i[queue worker], comment: "A counter of the total number of jobs sidekiq executed."
|
26
|
+
counter :jobs_success_total, tags: %i[queue worker], comment: "A counter of the total number of jobs successfully processed by sidekiq."
|
27
|
+
counter :jobs_failed_total, tags: %i[queue worker], comment: "A counter of the total number of jobs failed in sidekiq."
|
28
|
+
|
29
|
+
gauge :jobs_waiting_count, tags: %i[queue], comment: "The number of jobs waiting to process in sidekiq."
|
30
|
+
gauge :active_workers_count, tags: [], comment: "The number of currently running machines with sidekiq workers."
|
31
|
+
gauge :jobs_scheduled_count, tags: [], comment: "The number of jobs scheduled for later execution."
|
32
|
+
gauge :jobs_retry_count, tags: [], comment: "The number of failed jobs waiting to be retried"
|
33
|
+
gauge :jobs_dead_count, tags: [], comment: "The number of jobs exceeded their retry count."
|
34
|
+
gauge :active_processes, tags: [], comment: "The number of active Sidekiq worker processes."
|
35
|
+
gauge :jobs_latency, tags: %i[queue], comment: "The job latency, the difference in seconds since the oldest job in the queue was enqueued"
|
36
|
+
|
37
|
+
histogram :job_runtime, comment: "A histogram of the job execution time.",
|
38
|
+
unit: :seconds, per: :job,
|
39
|
+
tags: %i[queue worker],
|
37
40
|
buckets: LONG_RUNNING_JOB_RUNTIME_BUCKETS
|
38
41
|
|
39
42
|
collect do
|
data/yabeda-sidekiq.gemspec
CHANGED
@@ -22,7 +22,7 @@ Gem::Specification.new do |spec|
|
|
22
22
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
23
23
|
spec.require_paths = ["lib"]
|
24
24
|
|
25
|
-
spec.add_dependency "yabeda"
|
25
|
+
spec.add_dependency "yabeda", "~> 0.2"
|
26
26
|
spec.add_dependency "sidekiq"
|
27
27
|
|
28
28
|
spec.add_development_dependency "bundler", "~> 1.16"
|
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yabeda-sidekiq
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrey Novikov
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-01-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: yabeda
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0'
|
19
|
+
version: '0.2'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '0'
|
26
|
+
version: '0.2'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: sidekiq
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|