]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/squid/recipes/default.rb
Enable prometheus monitoring for more PHP-FPM sites
[chef.git] / cookbooks / squid / recipes / default.rb
index e04a216e8d120b386eae1b4ef81a351755a559bd..deeff85b6373c5d1ba3657930fd32ba6b6b01c3e 100644 (file)
@@ -19,6 +19,7 @@
 
 include_recipe "apt"
 include_recipe "munin"
+include_recipe "prometheus"
 
 if node[:squid][:version] >= 3
   apt_package "squid" do
@@ -152,3 +153,8 @@ end
 munin_plugin "squid_delay_pools_noreferer" do
   action :delete
 end
+
+prometheus_exporter "squid" do
+  port 9301
+  listen_switch "listen"
+end