https://github.com/bigouden/fail2ban-exporter
Fail2ban Prometheus Exporter
https://github.com/bigouden/fail2ban-exporter
alerting devops docker metrics monitoring observability prometheus prometheus-exporter
Last synced: about 1 month ago
JSON representation
Fail2ban Prometheus Exporter
- Host: GitHub
- URL: https://github.com/bigouden/fail2ban-exporter
- Owner: Bigouden
- Created: 2022-11-13T08:57:02.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-06-01T12:07:06.000Z (about 1 year ago)
- Last Synced: 2025-07-17T11:00:50.969Z (11 months ago)
- Topics: alerting, devops, docker, metrics, monitoring, observability, prometheus, prometheus-exporter
- Language: Python
- Size: 44.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Fail2Ban Exporter
## Quick Start
```bash
DOCKER_BUILDKIT=1 docker build -t fail2ban-exporter .
docker run -dit --name fail2ban-exporter --user root -v /run/fail2ban/fail2ban.sock:/run/fail2ban/fail2ban.sock fail2ban-exporter
```
## Metrics
```bash
# HELP fail2ban_currently_failed_total Fail2Ban Currently Failed Since Start
# TYPE fail2ban_currently_failed_total counter
fail2ban_currently_failed{jail="authelia",job="fail2ban-exporter"} 0.0
# HELP fail2ban_total_failed_total Fail2Ban Total Failed Since Start
# TYPE fail2ban_total_failed_total counter
fail2ban_total_failed{jail="authelia",job="fail2ban-exporter"} 0.0
# HELP fail2ban_currently_banned_total Fail2Ban Currently Banned
# TYPE fail2ban_currently_banned_total counter
fail2ban_currently_banned{jail="authelia",job="fail2ban-exporter"} 0.0
# HELP fail2ban_total_banned_total Fail2Ban Total Banned
# TYPE fail2ban_total_banned_total counter
fail2ban_total_banned{jail="authelia",job="fail2ban-exporter"} 0.0
# HELP fail2ban_currently_failed_total Fail2Ban Currently Failed Since Start
# TYPE fail2ban_currently_failed_total counter
fail2ban_currently_failed{jail="sshd",job="fail2ban-exporter"} 4.0
# HELP fail2ban_total_failed_total Fail2Ban Total Failed Since Start
# TYPE fail2ban_total_failed_total counter
fail2ban_total_failed{jail="sshd",job="fail2ban-exporter"} 738.0
# HELP fail2ban_currently_banned_total Fail2Ban Currently Banned
# TYPE fail2ban_currently_banned_total counter
fail2ban_currently_banned{jail="sshd",job="fail2ban-exporter"} 1270.0
# HELP fail2ban_total_banned_total Fail2Ban Total Banned
# TYPE fail2ban_total_banned_total counter
fail2ban_total_banned{jail="sshd",job="fail2ban-exporter"} 1333.0
# HELP fail2ban_currently_failed_total Fail2Ban Currently Failed Since Start
# TYPE fail2ban_currently_failed_total counter
fail2ban_currently_failed{jail="traefik",job="fail2ban-exporter"} 60.0
# HELP fail2ban_total_failed_total Fail2Ban Total Failed Since Start
# TYPE fail2ban_total_failed_total counter
fail2ban_total_failed{jail="traefik",job="fail2ban-exporter"} 97.0
# HELP fail2ban_currently_banned_total Fail2Ban Currently Banned
# TYPE fail2ban_currently_banned_total counter
fail2ban_currently_banned{jail="traefik",job="fail2ban-exporter"} 21.0
# HELP fail2ban_total_banned_total Fail2Ban Total Banned
# TYPE fail2ban_total_banned_total counter
fail2ban_total_banned{jail="traefik",job="fail2ban-exporter"} 21.0
```