]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/exim/recipes/default.rb
Configure exim exporter for prometheus
[chef.git] / cookbooks / exim / recipes / default.rb
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