]> git.openstreetmap.org Git - chef.git/commitdiff
Configure prometheus monitoring for PHP-FPM on nominatim servers
authorTom Hughes <tom@compton.nu>
Sun, 29 Nov 2020 11:26:37 +0000 (11:26 +0000)
committerTom Hughes <tom@compton.nu>
Sun, 29 Nov 2020 11:26:37 +0000 (11:26 +0000)
cookbooks/nominatim/attributes/default.rb
cookbooks/nominatim/recipes/default.rb

index e29fd7931e0eeb174274df5ae3901b0d81d43dab..4e74848cd7dde1967440c1750aad700caefa3cdf 100644 (file)
@@ -16,7 +16,8 @@ default[:nominatim][:fpm_pools] = {
   :www => {
     :port => 8000,
     :pm => "dynamic",
   :www => {
     :port => 8000,
     :pm => "dynamic",
-    :max_children => 60
+    :max_children => 60,
+    :prometheus_port => 9253
   }
 }
 
   }
 }
 
index 285d795f1c1212c5b885e7e5ba4eb6e2b66a079a..42989db718d1bf4dc33ea7ec2c22ff38c5d8d9a8 100644 (file)
@@ -388,6 +388,7 @@ node[:nominatim][:fpm_pools].each do |name, data|
     pm_min_spare_servers 10
     pm_max_spare_servers 20
     pm_max_requests 10000
     pm_min_spare_servers 10
     pm_max_spare_servers 20
     pm_max_requests 10000
+    prometheus_port data[:prometheus_port]
   end
 end
 
   end
 end