hectorjsmith / fail2ban-prometheus-exporter Goto Github PK
View Code? Open in Web Editor NEW[MIRROR] Collect and export metrics on Fail2Ban
Home Page: https://gitlab.com/hectorjsmith/fail2ban-prometheus-exporter
License: MIT License
[MIRROR] Collect and export metrics on Fail2Ban
Home Page: https://gitlab.com/hectorjsmith/fail2ban-prometheus-exporter
License: MIT License
Hi @hectorjsmith,
Thank you for you work.
I download the binary file, and i launch it on my client prometheus with fail2ban.
I import the .json file on my graphana server but i have an empty dashboard ..
Thanks for this exporter, easy to setup and low resource usage.
It would be cool to export coordinates of banned IP addresses to make a map like this:
https://grafana.com/grafana/dashboards/16125-fail2ban/
Hi,
presently, there isn't any curl or wget binary. It's not possible to do a healthcheck like that :
healthcheck:
test: ["CMD-SHELL", "wget --no-verbose --tries=1 http://localhost:9191/ -q -O /dev/null || exit 1"]
interval: 1m
timeout: 10s
start_period: 30s
And if you add wget, why not add healthcheck directly on DockerFile ?
Not sure if this is helpful but if someone wanted to run the binary as a systemD process
[Unit]
Description=Fail2ban Exporter
After=fail2ban.service
Requires=fail2ban.service
[Service]
ExecStart=/opt/fail2ban_exporter/fail2ban_exporter --collector.f2b.socket=/var/run/fail2ban/fail2ban.sock --web.listen-address=":9191"
Type=simple
Restart=always
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.