sidekiq_prometheus 1.7.0 → 1.8.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 +30 -1
- data/lib/sidekiq_prometheus/job_metrics.rb +7 -2
- data/lib/sidekiq_prometheus/metrics.rb +4 -0
- data/lib/sidekiq_prometheus/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 564b12c7284161a3350d677f809da15ca5d70b0b2a9eb5303970639cb85aeedb
|
4
|
+
data.tar.gz: 99c3995589218b36b0016d7585bedf17a4ac783fdfa4efb306b5bffbd8c6e766
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 261e2cc263e08cf1d5784c63a2af38855db615f995f5d66f5b8c8c837e80fe22c0a5f2c6a85671c7bc1c4144a5b5ca816916088a77281ffd5e099ebf1da07a23
|
7
|
+
data.tar.gz: 6bccef33e7d74236fdad77eb93072f02804e838c5dc6760b26e7ed624667b1a73d0ebce1170469ce60345d2fed43bb1c2fab615e202c6fe4a76388b11d8e6054
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,21 @@
|
|
1
1
|
CHANGELOG
|
2
2
|
|
3
|
+
<a name="v1.7.0"></a>
|
4
|
+
## [v1.7.0](https://github.com/fastly/sidekiq-prometheus/compare/v1.6.0...v1.7.0) (2022-09-29)
|
5
|
+
|
6
|
+
### Bug Fixes
|
7
|
+
|
8
|
+
* s/metrics_server_logging_enabled/metrics_server_logger_enabled/
|
9
|
+
|
10
|
+
### Features
|
11
|
+
|
12
|
+
* add Sidekiq::Stats processes_size to the periodic metrics
|
13
|
+
|
14
|
+
### Pull Requests
|
15
|
+
|
16
|
+
* Merge pull request [#30](https://github.com/fastly/sidekiq-prometheus/issues/30) from fastly/add_processes_size
|
17
|
+
|
18
|
+
|
3
19
|
<a name="v1.6.0"></a>
|
4
20
|
## [v1.6.0](https://github.com/fastly/sidekiq-prometheus/compare/v1.5.0...v1.6.0) (2021-08-03)
|
5
21
|
|
@@ -46,8 +62,9 @@ CHANGELOG
|
|
46
62
|
|
47
63
|
### Pull Requests
|
48
64
|
|
49
|
-
* Merge pull request [#
|
65
|
+
* Merge pull request [#18](https://github.com/fastly/sidekiq-prometheus/issues/18) from jetpks/release-120
|
50
66
|
* Merge pull request [#15](https://github.com/fastly/sidekiq-prometheus/issues/15) from silicakes/master
|
67
|
+
* Merge pull request [#17](https://github.com/fastly/sidekiq-prometheus/issues/17) from jetpks/add-option-to-disable-metrics-server
|
51
68
|
|
52
69
|
<a name="v1.1.0"></a>
|
53
70
|
## [v1.1.0](https://github.com/fastly/sidekiq-prometheus/compare/v1.0.1...v1.1.0) (2020-02-12)
|
@@ -63,6 +80,14 @@ CHANGELOG
|
|
63
80
|
* Merge pull request [#11](https://github.com/fastly/sidekiq-prometheus/issues/11) from rossjones/patch-1
|
64
81
|
* Merge pull request [#12](https://github.com/fastly/sidekiq-prometheus/issues/12) from fastly/hr
|
65
82
|
|
83
|
+
<a name="v1.0.1"></a>
|
84
|
+
## [v1.0.1](https://github.com/fastly/sidekiq-prometheus/compare/v0.9.2...v1.0.1) (2019-10-30)
|
85
|
+
|
86
|
+
### Pull Requests
|
87
|
+
|
88
|
+
* Merge pull request [#9](https://github.com/fastly/sidekiq-prometheus/issues/9) from we4tech/features/update-prometheus-client
|
89
|
+
|
90
|
+
|
66
91
|
<a name="v1.0.0"></a>
|
67
92
|
## [v1.0.0](https://github.com/fastly/sidekiq-prometheus/compare/v0.9.1...v1.0.0) (2019-10-24)
|
68
93
|
|
@@ -71,6 +96,10 @@ CHANGELOG
|
|
71
96
|
* Merge pull request [#9](https://github.com/fastly/sidekiq-prometheus/issues/9) from we4tech/features/update-prometheus-client
|
72
97
|
|
73
98
|
|
99
|
+
<a name="v0.9.2"></a>
|
100
|
+
## [v0.9.2](https://github.com/fastly/sidekiq-prometheus/compare/v1.0.0...v0.9.2) (2019-10-30)
|
101
|
+
|
102
|
+
|
74
103
|
<a name="v0.9.1"></a>
|
75
104
|
## [v0.9.1](https://github.com/fastly/sidekiq-prometheus/compare/v0.9.0...v0.9.1) (2019-07-08)
|
76
105
|
|
@@ -30,8 +30,13 @@ class SidekiqPrometheus::JobMetrics
|
|
30
30
|
|
31
31
|
result
|
32
32
|
rescue StandardError => e
|
33
|
-
|
34
|
-
|
33
|
+
if e.class.to_s == 'Sidekiq::Limiter::OverLimit'
|
34
|
+
registry[:sidekiq_job_over_limit].increment(labels: labels)
|
35
|
+
else
|
36
|
+
err_label = { :error_class => e.class.to_s }
|
37
|
+
registry[:sidekiq_job_failed].increment(labels: err_label.merge(labels))
|
38
|
+
end
|
39
|
+
|
35
40
|
raise e
|
36
41
|
ensure
|
37
42
|
registry[:sidekiq_job_count].increment(labels: labels)
|
@@ -72,6 +72,10 @@ module SidekiqPrometheus::Metrics
|
|
72
72
|
type: :counter,
|
73
73
|
docstring: 'Count of successful Sidekiq jobs',
|
74
74
|
labels: JOB_LABELS, },
|
75
|
+
{ name: :sidekiq_job_over_limit,
|
76
|
+
type: :counter,
|
77
|
+
docstring: 'Count of over limit Sidekiq jobs',
|
78
|
+
labels: JOB_LABELS, },
|
75
79
|
].freeze
|
76
80
|
SIDEKIQ_GC_METRIC = {
|
77
81
|
name: :sidekiq_job_allocated_objects,
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sidekiq_prometheus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lukas Eklund
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2022-
|
12
|
+
date: 2022-10-04 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|