sidekiq_prometheus 1.4.0 → 1.5.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 +17 -0
- data/lib/sidekiq_prometheus/job_metrics.rb +2 -1
- data/lib/sidekiq_prometheus/metrics.rb +1 -1
- data/lib/sidekiq_prometheus/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 49989dd6e8b4c7c651f70d69e674630900cf5eb3150c4be85df6becb83fc1d18
|
4
|
+
data.tar.gz: c42b2eac238eaa7c435628962872c750c08b1430a8166219de0343c4fe987fa5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 23702691b261c1f0ea0984cccca1267cb5ad3be7a3ebd0ea4c7591d12bb9403e5104cedc372b023f440e080a71ff5c432022f35527ff1e898dba5d07a36ab056
|
7
|
+
data.tar.gz: 84197b360bbe8c54da5c1e83911643a274a132164bf699d2f8672fbc908e93216918dc405f829f919f9a27fbbaf25d4bed26ff132428f29d14599a5eed1f1d73
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,22 @@
|
|
1
1
|
CHANGELOG
|
2
2
|
|
3
|
+
|
4
|
+
<a name="v1.5.0"></a>
|
5
|
+
## [v1.5.0](https://github.com/fastly/sidekiq-prometheus/compare/v1.4.0...v1.5.0) (2021-08-02)
|
6
|
+
|
7
|
+
### Pull Requests
|
8
|
+
|
9
|
+
* Merge pull request [#23](https://github.com/fastly/sidekiq-prometheus/issues/23) from fastly/rainy/add-error-class-label
|
10
|
+
|
11
|
+
|
12
|
+
<a name="v1.4.0"></a>
|
13
|
+
## [v1.4.0](https://github.com/fastly/sidekiq-prometheus/compare/v1.3.0...v1.4.0) (2021-03-30)
|
14
|
+
|
15
|
+
### Pull Requests
|
16
|
+
|
17
|
+
* Merge pull request [#21](https://github.com/fastly/sidekiq-prometheus/issues/21) from Kevinrob/patch-1
|
18
|
+
|
19
|
+
|
3
20
|
<a name="v1.3.0"></a>
|
4
21
|
## [v1.3.0](https://github.com/fastly/sidekiq-prometheus/compare/v1.2.0...v1.3.0) (2021-03-26)
|
5
22
|
|
@@ -30,7 +30,8 @@ class SidekiqPrometheus::JobMetrics
|
|
30
30
|
|
31
31
|
result
|
32
32
|
rescue StandardError => e
|
33
|
-
|
33
|
+
err_label = { :error_class => e.class.to_s }
|
34
|
+
registry[:sidekiq_job_failed].increment(labels: err_label.merge(labels))
|
34
35
|
raise e
|
35
36
|
ensure
|
36
37
|
registry[:sidekiq_job_count].increment(labels: labels)
|
@@ -64,7 +64,7 @@ module SidekiqPrometheus::Metrics
|
|
64
64
|
{ name: :sidekiq_job_failed,
|
65
65
|
type: :counter,
|
66
66
|
docstring: 'Count of failed Sidekiq jobs',
|
67
|
-
labels: JOB_LABELS, },
|
67
|
+
labels: JOB_LABELS + [:error_class], },
|
68
68
|
{ name: :sidekiq_job_success,
|
69
69
|
type: :counter,
|
70
70
|
docstring: 'Count of successful Sidekiq jobs',
|
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.5.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: 2021-
|
12
|
+
date: 2021-08-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -182,7 +182,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
182
182
|
- !ruby/object:Gem::Version
|
183
183
|
version: '0'
|
184
184
|
requirements: []
|
185
|
-
rubygems_version: 3.
|
185
|
+
rubygems_version: 3.1.6
|
186
186
|
signing_key:
|
187
187
|
specification_version: 4
|
188
188
|
summary: Prometheus Instrumentation for Sidekiq
|