govuk_app_config 9.20.7 → 9.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6d890061b1990db044c89f4c31fed65e51d998eed2f04244583d1847ef0ff529
4
- data.tar.gz: d0b005ebc90dff57236d3333c90deb2e1a1109db9fdc13948467e31eab811c46
3
+ metadata.gz: 9c22a97238f5209bfd19e03115c7bd12d6fa85111e24f1a850f599cbd6e13a25
4
+ data.tar.gz: b428022bcb672a10e8c64974c8710482bb7dee0cdb6905c930cb7a2d43418330
5
5
  SHA512:
6
- metadata.gz: a55c37c0f123e51a001b1f565bbf785afa7b9b7ee33ffa92ac3aaf3b976ed3cbbf8e3c181734feb5a0d966662d37a9d2c3692dea73727072c49f2b1bbc64558c
7
- data.tar.gz: 37cf53f1c027503cb0603475c4ea9c46fe421559388f045867fa25233b90353ec6c500b9030dd08d2585c5ed219bc82cdf942f4e27e4847d6ad251c72a00a44d
6
+ metadata.gz: d578a4ead56f43a869121b5a40ea52502741f8d8ae27d32e8507b93f5340971b59555d42b36ed3f6870e06e1ecd835420270618b8a7bc206abae43100e371554
7
+ data.tar.gz: c3148eaad2bddb8a311f785213db5fa81b1562b4317332383bcc3e4b6ec6b5074079ce25856652bc1c7c7a857bcfc5abcd089c0d17820cb1a7c92119a03f9043
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 9.21.0
2
+
3
+ * Add Prometheus monitoring of Puma processes
4
+
1
5
  # 9.20.7
2
6
 
3
7
  * Implemented workaround for Logstasher initializer conflict under Rails 8.1
@@ -1,3 +1,5 @@
1
+ require "prometheus_exporter/instrumentation"
2
+
1
3
  module GovukPuma
2
4
  def self.configure_rails(config)
3
5
  config.port ENV.fetch("PORT", 3000)
@@ -35,6 +37,13 @@ module GovukPuma
35
37
  ENV["BUNDLE_GEMFILE"] = "#{ENV['GOVUK_APP_ROOT']}/Gemfile"
36
38
  end
37
39
 
40
+ config.after_worker_boot do
41
+ unless PrometheusExporter::Instrumentation::Puma.started?
42
+ PrometheusExporter::Instrumentation::Puma.start
43
+ end
44
+ PrometheusExporter::Instrumentation::Process.start(type: "puma_worker")
45
+ end
46
+
38
47
  # Allow puma to be restarted by `rails restart` command.
39
48
  config.plugin :tmp_restart
40
49
  end
@@ -1,3 +1,3 @@
1
1
  module GovukAppConfig
2
- VERSION = "9.20.7".freeze
2
+ VERSION = "9.21.0".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: govuk_app_config
3
3
  version: !ruby/object:Gem::Version
4
- version: 9.20.7
4
+ version: 9.21.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - GOV.UK Dev