From: Tom Hughes Date: Sun, 21 Nov 2021 12:38:47 +0000 (+0000) Subject: Add fail2ban exporter for prometheus X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/91a0aff06941547c53869de4127c7803947e9e06 Add fail2ban exporter for prometheus --- diff --git a/cookbooks/fail2ban/metadata.rb b/cookbooks/fail2ban/metadata.rb index 93f21f14d..13cc6607f 100644 --- a/cookbooks/fail2ban/metadata.rb +++ b/cookbooks/fail2ban/metadata.rb @@ -7,3 +7,4 @@ description "Configures fail2ban" version "1.0.0" supports "ubuntu" depends "munin" +depends "prometheus" diff --git a/cookbooks/fail2ban/recipes/default.rb b/cookbooks/fail2ban/recipes/default.rb index e0e8e2372..3ad626ff0 100644 --- a/cookbooks/fail2ban/recipes/default.rb +++ b/cookbooks/fail2ban/recipes/default.rb @@ -18,6 +18,7 @@ # include_recipe "munin" +include_recipe "prometheus" package "fail2ban" @@ -42,3 +43,7 @@ service "fail2ban" do end munin_plugin "fail2ban" + +prometheus_exporter "fail2ban" do + port 9635 +end