yabeda-sidekiq 0.1.4 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 21651b2b4b71d0573f1fb8e97768bd45116ad895ebfbf93122b734e4ebcf00a5
4
- data.tar.gz: 217140bb32008e2082e1723c05953e36aa2a9f49a4a0b9941ca60ca982e25636
3
+ metadata.gz: 4c513f6e9028c0bc3a385488105d314a5c7e7ba9ef795bcbd07895d21fe80c8a
4
+ data.tar.gz: d76ba8c2d976a4ba2356713fc40b9c8ed7720aa8ddd15adc08f5d338a8d06604
5
5
  SHA512:
6
- metadata.gz: 1644f7bcdd3af5ca75d848c1963bb27a0543b745c1d38cef1160449b0b534d647791d9207c4b6ec882ff6004283f8773bdae41aaaa1ae81bf428c809f3bd0b45
7
- data.tar.gz: aea64592cb596f91b30fb55228545f2d03499bff97081267e8b028a4b5d4510824b63cdc73d1d4b44824f1000d22ee98b73a756aa6fa2ac41fdf6bb1687844dc
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
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Yabeda
4
4
  module Sidekiq
5
- VERSION = "0.1.4"
5
+ VERSION = "0.2.0"
6
6
  end
7
7
  end
@@ -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
- gauge :jobs_waiting_count, comment: "The number of jobs waiting to process in sidekiq."
29
- gauge :active_workers_count, comment: "The number of currently running machines with sidekiq workers."
30
- gauge :jobs_scheduled_count, comment: "The number of jobs scheduled for later execution."
31
- gauge :jobs_retry_count, comment: "The number of failed jobs waiting to be retried"
32
- gauge :jobs_dead_count, comment: "The number of jobs exceeded their retry count."
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
-
36
- histogram :job_runtime, unit: :seconds, per: :job, comment: "A histogram of the job execution time.",
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
@@ -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.1.4
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: 2019-10-07 00:00:00.000000000 Z
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