{"repo":"hctrdev/fail2ban-prometheus-exporter","free":true,"listed":false,"github":"https://github.com/hctrdev/fail2ban-prometheus-exporter","clone":"git clone https://github.com/hctrdev/fail2ban-prometheus-exporter.git","description":"[MIRROR] Collect and export metrics on Fail2Ban","language":"Go","stars":84,"topics":["prometheus","fail2ban","metrics","go","golang","grafana","monitoring"],"license":"MIT","category":"analytics","readme_excerpt":"Fail2Ban Prometheus Exporter Collect metrics from a running fail2ban instance. Table of Contents 1. Quick Start 2. Metrics 3. Configuration 4. Building from source 5. Textfile metrics 6. Troubleshooting 1. Quick Start The exporter can be run as a standalone binary or a docker container. 1.1. Standalone The following command will start collecting metrics from the /var/run/fail2ban/fail2ban.sock file and expose them on port 9191 . Binary files for each release can be found on the releases page. There is also an example systemd service file included in the repository. This is a starting point to run the exporter as a service. 1.2. Docker Docker run Docker compose Use the :latest tag to get the latest stable release. See the registry page for all available tags. NOTE: While it is possible to mount the fail2ban.sock file directly, it is recommended to mount the parent folder instead. The .sock file is deleted by fail2ban on shutdown and re-created on startup and this causes problems for the docker mount. See this reply for more details. 2. Metrics The exporter exposes the following metrics: All metric names are prefixed with f2b Metric Description Example ------------------------------ ------------------------------------------------------------------------------------ ----------------------------------------------------- up Returns 1 if the exporter is up and running f2b up 1 errors Count the number of errors since startup by type errors{type=\"socket conn\"} Errors connecting to t","default_branch":null,"files":null,"tree":[],"storefront":"/r/hctrdev","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/hctrdev/fail2ban-prometheus-exporter/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}