You've already forked prometheus-fail2ban-exporter
feat: export metrics for failed/banned counts
Add new metric to track the total number of jails configured in fail2ban. Add new metrics for the current and total number of filter failures for each jail, as well as the current/total number of banned IPs per jail. The new metrics are collected by sending the `status [jail]` command to the fail2ban server and parsing the response data.
This commit is contained in:
@ -10,6 +10,7 @@ import (
|
||||
const (
|
||||
commandTerminator = "<F2B_END_COMMAND>"
|
||||
pingCommand = "ping"
|
||||
statusCommand = "status"
|
||||
socketReadBufferSize = 1024
|
||||
)
|
||||
|
||||
|
Reference in New Issue
Block a user