From c43c759191e34459dc74587f6c3a750cbe332563 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sun, 29 Nov 2020 11:26:37 +0000 Subject: [PATCH] Configure prometheus monitoring for PHP-FPM on nominatim servers --- cookbooks/nominatim/attributes/default.rb | 3 ++- cookbooks/nominatim/recipes/default.rb | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/cookbooks/nominatim/attributes/default.rb b/cookbooks/nominatim/attributes/default.rb index e29fd7931..4e74848cd 100644 --- a/cookbooks/nominatim/attributes/default.rb +++ b/cookbooks/nominatim/attributes/default.rb @@ -16,7 +16,8 @@ default[:nominatim][:fpm_pools] = { :www => { :port => 8000, :pm => "dynamic", - :max_children => 60 + :max_children => 60, + :prometheus_port => 9253 } } diff --git a/cookbooks/nominatim/recipes/default.rb b/cookbooks/nominatim/recipes/default.rb index 285d795f1..42989db71 100644 --- a/cookbooks/nominatim/recipes/default.rb +++ b/cookbooks/nominatim/recipes/default.rb @@ -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 + prometheus_port data[:prometheus_port] end end -- 2.39.5