]> git.openstreetmap.org Git - chef.git/commitdiff
Add fail2ban exporter for prometheus
authorTom Hughes <tom@compton.nu>
Sun, 21 Nov 2021 12:38:47 +0000 (12:38 +0000)
committerTom Hughes <tom@compton.nu>
Sun, 21 Nov 2021 12:38:47 +0000 (12:38 +0000)
cookbooks/fail2ban/metadata.rb
cookbooks/fail2ban/recipes/default.rb

index 93f21f14d0e8c5edb433eff775452eec8ed784c0..13cc6607face3c5757db9508b3eb1664fc0c5c1f 100644 (file)
@@ -7,3 +7,4 @@ description       "Configures fail2ban"
 version           "1.0.0"
 supports          "ubuntu"
 depends           "munin"
+depends           "prometheus"
index e0e8e2372748a3d581a357b824972ad4f8bc52ae..3ad626ff021588e2f183b118edea44d2be57d1d4 100644 (file)
@@ -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