prometheus-fail2ban-exporter/src
Hector 526b1c7272 fix: update banned metrics to exclude expired bans
Update the database query counting the number of banned IPs to filter out
any bans that have already expired. An expired ban is defined as a ban
where the "time of ban" plus the "duration of ban" is less than the
current time.
This is necessary because bans that have expired are not automatically
removed from the database and will cause metrics to diverge from the counts
reported by `fail2ban-client`.
2021-08-27 16:29:01 +01:00
..
cfg chore: move all source files to new folder 2021-02-08 18:49:48 +00:00
db fix: update banned metrics to exclude expired bans 2021-08-27 16:29:01 +01:00
exporter.go feat: new metric to track error counts 2021-04-07 21:46:41 +01:00
go.mod chore: move all source files to new folder 2021-02-08 18:49:48 +00:00
go.sum chore: move all source files to new folder 2021-02-08 18:49:48 +00:00