bc-prometheus-ruby 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 241fdef72c1f9ef4b6e7ec916acf0fcf2b3556117a49068b7422c891934d8e23
|
4
|
+
data.tar.gz: 5496a08a0f5554885741f716685d7cd4397c66b780d4abe005ebca4ab990c365
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 26b165726cdb9ab946d84b7c590a3662174cfa1b142664b55b017c9b191ad690d4f887612e387bca7152814dd5705916ceb7f1b0996f8260bce0e50924013f0d
|
7
|
+
data.tar.gz: b9fa2af6115e37ac1321bff60d11ea199c15c872b7bd359aa2b13f62598ac94849f28e7afa7d849d85cfd1b89d6d42a1aa443a48299a0a96269b74d5167538a4
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,12 @@ Changelog for the bc-prometheus-ruby gem.
|
|
2
2
|
|
3
3
|
### Pending Release
|
4
4
|
|
5
|
+
### 0.5.0
|
6
|
+
|
7
|
+
- Add configuration to disable the Railtie that activates the web instrumentor automatically. This allows applications to choose how and when this is initialized.
|
8
|
+
- Bump prometheus_exporter gem
|
9
|
+
- Start testing against Ruby 3.0
|
10
|
+
|
5
11
|
### 0.4.0
|
6
12
|
|
7
13
|
- Add configuration to control Thin web server thread pool size. Note that the default number of threads is changing from 20 to 3. You can configure this using an environment variable or initializer.
|
data/README.md
CHANGED
@@ -49,6 +49,7 @@ After requiring the main file, you can further configure with:
|
|
49
49
|
| server_port | The port to run the exporter on | `9394` | `ENV['PROMETHEUS_SERVER_PORT']` |
|
50
50
|
| server_thread_pool_size | The number of threads used for the exporter server | `3` | `ENV['PROMETHEUS_SERVER_THREAD_POOL_SIZE']` |
|
51
51
|
| process_name | What the current process name is (used in logging) | `"unknown"` | `ENV['PROCESS']` |
|
52
|
+
| railtie_disabled | Opt out flag for Railtie; use `Bigcommerce::Prometheus::Instrumentors::Web.new(app: Rails.application).start` in your app's code to start it up yourself | `0` | `ENV['PROMETHEUS_DISABLE_RAILTIE']` |
|
52
53
|
|
53
54
|
## Custom Collectors
|
54
55
|
|
data/bc-prometheus-ruby.gemspec
CHANGED
@@ -43,6 +43,6 @@ Gem::Specification.new do |spec|
|
|
43
43
|
spec.add_development_dependency 'simplecov', '>= 0.16'
|
44
44
|
|
45
45
|
spec.add_runtime_dependency 'bigcommerce-multitrap', '~> 0.1'
|
46
|
-
spec.add_runtime_dependency 'prometheus_exporter', '~> 0.
|
46
|
+
spec.add_runtime_dependency 'prometheus_exporter', '~> 0.7'
|
47
47
|
spec.add_runtime_dependency 'thin', '~> 1.7'
|
48
48
|
end
|
@@ -51,7 +51,10 @@ module Bigcommerce
|
|
51
51
|
resque_collectors: [],
|
52
52
|
resque_type_collectors: [],
|
53
53
|
web_collectors: [],
|
54
|
-
web_type_collectors: []
|
54
|
+
web_type_collectors: [],
|
55
|
+
|
56
|
+
# Additional configuration
|
57
|
+
railtie_disabled: ENV.fetch('PROMETHEUS_DISABLE_RAILTIE', 0).to_i.positive?
|
55
58
|
}.freeze
|
56
59
|
|
57
60
|
attr_accessor *VALID_CONFIG_KEYS.keys
|
@@ -23,7 +23,7 @@ module Bigcommerce
|
|
23
23
|
#
|
24
24
|
class Railtie < ::Rails::Railtie
|
25
25
|
initializer 'zzz.bc_prometheus_ruby.configure_rails_initialization' do |app|
|
26
|
-
Bigcommerce::Prometheus::Instrumentors::Web.new(app: app).start
|
26
|
+
Bigcommerce::Prometheus::Instrumentors::Web.new(app: app).start unless ::Bigcommerce::Prometheus.railtie_disabled
|
27
27
|
end
|
28
28
|
end
|
29
29
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bc-prometheus-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shaun McCormick
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-03-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler-audit
|
@@ -142,14 +142,14 @@ dependencies:
|
|
142
142
|
requirements:
|
143
143
|
- - "~>"
|
144
144
|
- !ruby/object:Gem::Version
|
145
|
-
version: '0.
|
145
|
+
version: '0.7'
|
146
146
|
type: :runtime
|
147
147
|
prerelease: false
|
148
148
|
version_requirements: !ruby/object:Gem::Requirement
|
149
149
|
requirements:
|
150
150
|
- - "~>"
|
151
151
|
- !ruby/object:Gem::Version
|
152
|
-
version: '0.
|
152
|
+
version: '0.7'
|
153
153
|
- !ruby/object:Gem::Dependency
|
154
154
|
name: thin
|
155
155
|
requirement: !ruby/object:Gem::Requirement
|