govuk_app_config 4.3.0 → 4.4.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 +3 -0
- data/govuk_app_config.gemspec +1 -0
- data/lib/govuk_app_config/govuk_prometheus_exporter.rb +13 -0
- data/lib/govuk_app_config/version.rb +1 -1
- data/lib/govuk_app_config.rb +1 -0
- metadata +17 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 076cb83af8162e164922a360a9cff7cdf46d3e2ddf1bf3c83068bb51ae23b306
|
4
|
+
data.tar.gz: 73e0cc6b9753b976481a9d3d8786466142444c8af54834d5fb5c2c1a1b02fa6e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fe96757c73874032419eecc48ed1bfd29ea341ad38521bcad7e2cab727cb8353480aabb4679696802dc6b9576c058a8cbeffd92eed7bcc61e68f102712ae72fc
|
7
|
+
data.tar.gz: 04bad176e09a1ddfd18042813052af7ce6e70f7e5cd2994c38fd08c98ccd8c8467a7c265bb3a9629dd302784f3a2374a677bc060922505fe6cfe9e03b7408450
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
# 4.4.0
|
2
|
+
|
3
|
+
- Add GovukPrometheusModule, to allow for export of prometheus metrics ([#223](https://github.com/alphagov/govuk_app_config/pull/223)).
|
1
4
|
# 4.3.0
|
2
5
|
|
3
6
|
- Remove Speedcurve's LUX from the connect-src policy ([#216](https://github.com/alphagov/govuk_app_config/pull/216)).
|
data/govuk_app_config.gemspec
CHANGED
@@ -21,6 +21,7 @@ Gem::Specification.new do |spec|
|
|
21
21
|
spec.require_paths = %w[lib]
|
22
22
|
|
23
23
|
spec.add_dependency "logstasher", ">= 1.2.2", "< 2.2.0"
|
24
|
+
spec.add_dependency "prometheus_exporter", "~> 2.0.2"
|
24
25
|
spec.add_dependency "puma", "~> 5.0"
|
25
26
|
spec.add_dependency "sentry-rails", "~> 4.5.0"
|
26
27
|
spec.add_dependency "sentry-ruby", "~> 4.5.0"
|
@@ -0,0 +1,13 @@
|
|
1
|
+
require "prometheus_exporter/server"
|
2
|
+
require "prometheus_exporter/middleware"
|
3
|
+
|
4
|
+
module GovukPrometheusExporter
|
5
|
+
def self.configure
|
6
|
+
unless Rails.env == "test"
|
7
|
+
server = PrometheusExporter::Server::WebServer.new bind: "localhost", port: 9394
|
8
|
+
server.start
|
9
|
+
|
10
|
+
Rails.application.middleware.unshift PrometheusExporter::Middleware
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
data/lib/govuk_app_config.rb
CHANGED
@@ -6,6 +6,7 @@ require "govuk_app_config/govuk_i18n"
|
|
6
6
|
# This require is deprecated and should be removed on next major version bump
|
7
7
|
# and should be required by applications directly.
|
8
8
|
require "govuk_app_config/govuk_unicorn"
|
9
|
+
require "govuk_app_config/govuk_prometheus_exporter"
|
9
10
|
|
10
11
|
if defined?(Rails)
|
11
12
|
require "govuk_app_config/govuk_logging"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: govuk_app_config
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.
|
4
|
+
version: 4.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GOV.UK Dev
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-03-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: logstasher
|
@@ -30,6 +30,20 @@ dependencies:
|
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.2.0
|
33
|
+
- !ruby/object:Gem::Dependency
|
34
|
+
name: prometheus_exporter
|
35
|
+
requirement: !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
37
|
+
- - "~>"
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: 2.0.2
|
40
|
+
type: :runtime
|
41
|
+
prerelease: false
|
42
|
+
version_requirements: !ruby/object:Gem::Requirement
|
43
|
+
requirements:
|
44
|
+
- - "~>"
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: 2.0.2
|
33
47
|
- !ruby/object:Gem::Dependency
|
34
48
|
name: puma
|
35
49
|
requirement: !ruby/object:Gem::Requirement
|
@@ -268,6 +282,7 @@ files:
|
|
268
282
|
- lib/govuk_app_config/govuk_healthcheck/sidekiq_redis.rb
|
269
283
|
- lib/govuk_app_config/govuk_i18n.rb
|
270
284
|
- lib/govuk_app_config/govuk_logging.rb
|
285
|
+
- lib/govuk_app_config/govuk_prometheus_exporter.rb
|
271
286
|
- lib/govuk_app_config/govuk_puma.rb
|
272
287
|
- lib/govuk_app_config/govuk_statsd.rb
|
273
288
|
- lib/govuk_app_config/govuk_unicorn.rb
|