]> git.openstreetmap.org Git - chef.git/commitdiff
Add mailman exporter for prometheus
authorTom Hughes <tom@compton.nu>
Thu, 25 Nov 2021 22:48:30 +0000 (22:48 +0000)
committerTom Hughes <tom@compton.nu>
Thu, 25 Nov 2021 22:48:30 +0000 (22:48 +0000)
cookbooks/mailman/metadata.rb
cookbooks/mailman/recipes/default.rb

index db8f66c693bc1ee6d181419cb2df119359b31166..3ee45fbdbddcfabd6517ea30ca5518508a510527 100644 (file)
@@ -8,3 +8,4 @@ version           "1.0.0"
 supports          "ubuntu"
 depends           "apache"
 depends           "chef"
+depends           "prometheus"
index 2525f9c0440cd5aa45420883be2818b2a2304a1f..d88b18885d93c591bbd82cd4a5b5f1bad7260594 100644 (file)
@@ -20,6 +20,7 @@
 require "securerandom"
 
 include_recipe "apache"
+include_recipe "prometheus"
 
 package %w[
   locales-all
@@ -69,3 +70,8 @@ template "/etc/cron.daily/lists-backup" do
   group "root"
   mode "755"
 end
+
+prometheus_exporter "mailman" do
+  port 8083
+  user "list"
+end