]> git.openstreetmap.org Git - chef.git/commitdiff
Configure exim exporter for prometheus
authorTom Hughes <tom@compton.nu>
Thu, 29 Oct 2020 20:29:00 +0000 (20:29 +0000)
committerTom Hughes <tom@compton.nu>
Thu, 29 Oct 2020 20:29:00 +0000 (20:29 +0000)
cookbooks/exim/metadata.rb
cookbooks/exim/recipes/default.rb

index 962e483c3fa9d324ba938311e0c6fa747ebcc881..cd9da2c453c5459e25d63507affc55ab69014b12 100644 (file)
@@ -10,4 +10,5 @@ depends           "accounts"
 depends           "apache"
 depends           "munin"
 depends           "networking"
+depends           "prometheus"
 depends           "ssl"
index 994e9454b5caa1d5e093dc4c176927698daef855..f1c9ddf22bb2269e7806531f299eab238027756a 100644 (file)
@@ -19,6 +19,7 @@
 
 include_recipe "munin"
 include_recipe "networking"
+include_recipe "prometheus"
 
 package %w[
   exim4
@@ -210,6 +211,10 @@ end
 munin_plugin "exim_mailqueue"
 munin_plugin "exim_mailstats"
 
+prometheus_exporter "exim" do
+  port 9636
+end
+
 if node[:exim][:smarthost_name]
   node[:exim][:daemon_smtp_ports].each do |port|
     firewall_rule "accept-inbound-smtp-#{port}" do