]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/php/resources/fpm.rb
palulukon: Allow access to AWS IP metadata NTP service
[chef.git] / cookbooks / php / resources / fpm.rb
index f8cc208b51d0cf69c3580f7dd497b1575f195da6..13c973580e6fa4ca5e618eeef838df65141c5f5c 100644 (file)
@@ -55,8 +55,10 @@ action :create do
       port new_resource.prometheus_port
       restrict_address_families "AF_UNIX"
       service service_name
       port new_resource.prometheus_port
       restrict_address_families "AF_UNIX"
       service service_name
+      group "www-data"
       command "server"
       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
     end
   else
     prometheus_exporter "phpfpm" do