https://github.com/lfuelling/fail2ban-exporter
Fail2Ban Prometheus exporter.
https://github.com/lfuelling/fail2ban-exporter
fail2ban prometheus prometheus-exporter
Last synced: 3 months ago
JSON representation
Fail2Ban Prometheus exporter.
- Host: GitHub
- URL: https://github.com/lfuelling/fail2ban-exporter
- Owner: lfuelling
- Created: 2019-08-14T23:49:22.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-03-20T04:58:37.000Z (over 2 years ago)
- Last Synced: 2025-03-17T14:52:51.674Z (7 months ago)
- Topics: fail2ban, prometheus, prometheus-exporter
- Language: Java
- Size: 83 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Fail2Ban Exporter
This is a Prometheus exporter for Fail2Ban.
It uses `fail2ban-client` to scrape information and serves it via HTTP on port 9635.
## Usage
1. Clone this repo, `cd` into it
2. Build: `$ mvn clean install`
3. Configure: `$ vi src/main/resources/application.properties`
4. Run: `$ java -jar target/fail2ban-exporter--jar-with-dependencies.jar`When using `server.metrics.sudo=true`, be sure to add ` ALL(ALL) NOPASSWD: /usr/bin/fail2ban-client` to your sudoers file.
This project is based on [this exporter](https://github.com/jangrewe/prometheus-fail2ban-exporter) which generates a `.prom` file instead of serving HTTP.