39133d0a76
Add support for connecting the exporter directly to the fail2ban server's socket to send requests and receive data. The path to the socket file is optional and specified on startup. Export a new metric based on the response of the `ping` command sent to the fail2ban server. The metric is set to 1 if the server responds with `pong` and 0 in any other case. This metric is only shown if the path to the socket file was provided on startup.
10 lines
212 B
Modula-2
10 lines
212 B
Modula-2
module fail2ban-prometheus-exporter
|
|
|
|
go 1.15
|
|
|
|
require (
|
|
github.com/kisielk/og-rek v1.1.0
|
|
github.com/mattn/go-sqlite3 v1.14.6
|
|
github.com/nlpodyssey/gopickle v0.1.0
|
|
github.com/prometheus/client_golang v1.9.0
|
|
)
|