feat: export new version metric (#12)

Add a new `f2b_version` metric that includes the version of the fail2ban
server and the exporter.
Add a new socket command to get back the fail2ban server version.
This commit is contained in:
Hector
2021-09-10 06:13:56 +00:00
parent d9f1ee33c8
commit fba9ee2809
3 changed files with 39 additions and 0 deletions

View File

@ -11,6 +11,7 @@ const (
commandTerminator = "<F2B_END_COMMAND>"
pingCommand = "ping"
statusCommand = "status"
versionCommand = "version"
socketReadBufferSize = 1024
)