Project logo
v0.10.1 ||

Fail2ban Prometheus Exporter

Go tool to collect and export metrics on Fail2Ban

Gitlab
Docs
MIT

2021.02.05 2023.06.22


This is a small exporter project to collect various metrics on how fail2ban is running. The goal being to have that data available in Grafana to generate graphs and fire off alerts.

Metrics are collected using the same mechanism the fail2ban-client uses to connect to the fail2ban-server - a unix socket. This ensures metrics are always consistent with the output of the fail2ban-client.

The exporter can run inside a docker container by mounting the fail2ban-server socket in that container. Read the project documentation for instructions on how to set it up!