X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/22c56e55a0fde97621ef0e8b86b5be2122ae02a2..794cc957324de66edab45373053be3e601090f1f:/cookbooks/php/resources/fpm.rb?ds=inline diff --git a/cookbooks/php/resources/fpm.rb b/cookbooks/php/resources/fpm.rb index 49df4effe..13c973580 100644 --- a/cookbooks/php/resources/fpm.rb +++ b/cookbooks/php/resources/fpm.rb @@ -53,9 +53,12 @@ action :create do if new_resource.prometheus_port prometheus_exporter "phpfpm" do port new_resource.prometheus_port + restrict_address_families "AF_UNIX" service service_name + group "www-data" command "server" - options "--phpfpm.scrape-uri=#{scrape_uri}" + options "--phpfpm.scrape-uri=#{scrape_uri} --phpfpm.fix-process-count" + labels "pool" => new_resource.pool end else prometheus_exporter "phpfpm" do