From 5965ce211517c8fb9aa7805c443c088dd4b83e93 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Thu, 29 Oct 2020 20:29:00 +0000 Subject: [PATCH] Configure exim exporter for prometheus --- cookbooks/exim/metadata.rb | 1 + cookbooks/exim/recipes/default.rb | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/cookbooks/exim/metadata.rb b/cookbooks/exim/metadata.rb index 962e483c3..cd9da2c45 100644 --- a/cookbooks/exim/metadata.rb +++ b/cookbooks/exim/metadata.rb @@ -10,4 +10,5 @@ depends "accounts" depends "apache" depends "munin" depends "networking" +depends "prometheus" depends "ssl" diff --git a/cookbooks/exim/recipes/default.rb b/cookbooks/exim/recipes/default.rb index 994e9454b..f1c9ddf22 100644 --- a/cookbooks/exim/recipes/default.rb +++ b/cookbooks/exim/recipes/default.rb @@ -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 -- 2.39.5