]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/php/resources/fpm.rb
Add pool label to phpfpm exporters to avoid duplicate metrics
[chef.git] / cookbooks / php / resources / fpm.rb
index b63a0c814a2de01e85891fb33bd1019d6670d7a9..13c973580e6fa4ca5e618eeef838df65141c5f5c 100644 (file)
@@ -57,7 +57,8 @@ action :create do
       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