]> git.openstreetmap.org Git - chef.git/commitdiff
Add squid exporter
authorTom Hughes <tom@compton.nu>
Tue, 22 Sep 2020 17:24:41 +0000 (17:24 +0000)
committerTom Hughes <tom@compton.nu>
Tue, 22 Sep 2020 17:24:41 +0000 (17:24 +0000)
cookbooks/squid/metadata.rb
cookbooks/squid/recipes/default.rb

index 2e0c9a4ab36eeaaf924174897e9c6a19a78de33c..07b04b8f381765d0b9ccae9914dbbb080a9d96d1 100644 (file)
@@ -8,4 +8,5 @@ version           "1.0.0"
 supports          "ubuntu"
 depends           "apt"
 depends           "munin"
+depends           "prometheus"
 depends           "systemd"
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