sidekiq_prometheus 1.9.0 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.travis.yml +3 -0
- data/CHANGELOG.md +13 -0
- data/lib/sidekiq_prometheus/periodic_metrics.rb +6 -1
- data/lib/sidekiq_prometheus/version.rb +1 -1
- data/lib/sidekiq_prometheus.rb +4 -0
- data/sidekiq_6.gemfile +10 -0
- data/sidekiq_7.gemfile +10 -0
- data/sidekiq_prometheus.gemspec +3 -2
- metadata +17 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e41a25aa249fbd72437fef36b40b8ff0328a31ebb588a3e6be32b66d4af8bb37
|
4
|
+
data.tar.gz: 79093b2be152a84f528a17e36866f49db59812dc3789d81dbda8fe7d7f2d6974
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b6018610e3dbf12324a123ad27f681771d93099a898ba454e9715cca4fa40fc9bccc96f3506ebd3df06501410ac3f4c8f838acbc207580a95f01c1e49187aa32
|
7
|
+
data.tar.gz: 765360b4f3e748592828c414a95afae77c30846569e0fa4dee21aae40af530dab2caf13b119befb2c0086b39c4b3e9c9a4c8a9e8b7417c89a05f1949fbf6ede1
|
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,18 @@
|
|
1
1
|
CHANGELOG
|
2
2
|
|
3
|
+
<a name="v1.9.0"></a>
|
4
|
+
## [v1.9.0](https://github.com/fastly/sidekiq-prometheus/compare/v1.8.3...v1.9.0) (2023-08-23)
|
5
|
+
|
6
|
+
## What's Changed
|
7
|
+
* Adds info about sidekiq_job_over_limit metric to README by @ricardogpsf in https://github.com/fastly/sidekiq-prometheus/pull/38
|
8
|
+
* Allow label sets initialization while registering metrics by @davidbrusius in https://github.com/fastly/sidekiq-prometheus/pull/40
|
9
|
+
|
10
|
+
## New Contributors
|
11
|
+
* @ricardogpsf made their first contribution in https://github.com/fastly/sidekiq-prometheus/pull/38
|
12
|
+
* @davidbrusius made their first contribution in https://github.com/fastly/sidekiq-prometheus/pull/40
|
13
|
+
|
14
|
+
**Full Changelog**: https://github.com/fastly/sidekiq-prometheus/compare/v1.8.3...v1.9.0
|
15
|
+
|
3
16
|
<a name="v1.8.3"></a>
|
4
17
|
## [v1.8.3](https://github.com/fastly/sidekiq-prometheus/compare/v1.8.2...v1.8.3) (2023-01-30)
|
5
18
|
|
@@ -12,6 +12,7 @@
|
|
12
12
|
|
13
13
|
begin
|
14
14
|
require "sidekiq/component"
|
15
|
+
require "redis"
|
15
16
|
rescue LoadError
|
16
17
|
end
|
17
18
|
|
@@ -113,7 +114,11 @@ class SidekiqPrometheus::PeriodicMetrics
|
|
113
114
|
# Records metrics from Redis
|
114
115
|
def report_redis_metrics
|
115
116
|
redis_info = begin
|
116
|
-
|
117
|
+
if SidekiqPrometheus.sidekiq_seven?
|
118
|
+
Sidekiq.default_configuration.redis_info
|
119
|
+
else
|
120
|
+
Sidekiq.redis_info
|
121
|
+
end
|
117
122
|
rescue Redis::BaseConnectionError
|
118
123
|
nil
|
119
124
|
end
|
data/lib/sidekiq_prometheus.rb
CHANGED
data/sidekiq_6.gemfile
ADDED
data/sidekiq_7.gemfile
ADDED
data/sidekiq_prometheus.gemspec
CHANGED
@@ -28,7 +28,8 @@ Gem::Specification.new do |spec|
|
|
28
28
|
spec.add_development_dependency "standard"
|
29
29
|
|
30
30
|
spec.add_runtime_dependency "prometheus-client", ">= 2.0"
|
31
|
-
spec.add_runtime_dependency "rack"
|
32
|
-
spec.add_runtime_dependency "
|
31
|
+
spec.add_runtime_dependency "rack", "< 3.0"
|
32
|
+
spec.add_runtime_dependency "redis"
|
33
|
+
spec.add_runtime_dependency "sidekiq", "> 5.1"
|
33
34
|
spec.add_runtime_dependency "webrick"
|
34
35
|
end
|
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:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lukas Eklund
|
@@ -97,6 +97,20 @@ dependencies:
|
|
97
97
|
version: '2.0'
|
98
98
|
- !ruby/object:Gem::Dependency
|
99
99
|
name: rack
|
100
|
+
requirement: !ruby/object:Gem::Requirement
|
101
|
+
requirements:
|
102
|
+
- - "<"
|
103
|
+
- !ruby/object:Gem::Version
|
104
|
+
version: '3.0'
|
105
|
+
type: :runtime
|
106
|
+
prerelease: false
|
107
|
+
version_requirements: !ruby/object:Gem::Requirement
|
108
|
+
requirements:
|
109
|
+
- - "<"
|
110
|
+
- !ruby/object:Gem::Version
|
111
|
+
version: '3.0'
|
112
|
+
- !ruby/object:Gem::Dependency
|
113
|
+
name: redis
|
100
114
|
requirement: !ruby/object:Gem::Requirement
|
101
115
|
requirements:
|
102
116
|
- - ">="
|
@@ -116,9 +130,6 @@ dependencies:
|
|
116
130
|
- - ">"
|
117
131
|
- !ruby/object:Gem::Version
|
118
132
|
version: '5.1'
|
119
|
-
- - "<"
|
120
|
-
- !ruby/object:Gem::Version
|
121
|
-
version: '7.0'
|
122
133
|
type: :runtime
|
123
134
|
prerelease: false
|
124
135
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -126,9 +137,6 @@ dependencies:
|
|
126
137
|
- - ">"
|
127
138
|
- !ruby/object:Gem::Version
|
128
139
|
version: '5.1'
|
129
|
-
- - "<"
|
130
|
-
- !ruby/object:Gem::Version
|
131
|
-
version: '7.0'
|
132
140
|
- !ruby/object:Gem::Dependency
|
133
141
|
name: webrick
|
134
142
|
requirement: !ruby/object:Gem::Requirement
|
@@ -168,6 +176,8 @@ files:
|
|
168
176
|
- lib/sidekiq_prometheus/metrics.rb
|
169
177
|
- lib/sidekiq_prometheus/periodic_metrics.rb
|
170
178
|
- lib/sidekiq_prometheus/version.rb
|
179
|
+
- sidekiq_6.gemfile
|
180
|
+
- sidekiq_7.gemfile
|
171
181
|
- sidekiq_prometheus.gemspec
|
172
182
|
homepage: https://github.com/fastly/sidekiq-prometheus
|
173
183
|
licenses:
|