You've already forked prometheus-fail2ban-exporter
feat: add listen address parameter
Add new -web.listen-address command line parameter, so that the listening interface can be limited. This follows a similar style as the official prometheus-node-exporter project. Update project README with the new parameter.
This commit is contained in:
@ -53,7 +53,7 @@ func main() {
|
||||
if appSettings.VersionMode {
|
||||
printAppVersion()
|
||||
} else {
|
||||
addr := fmt.Sprintf("0.0.0.0:%d", appSettings.MetricsPort)
|
||||
addr := fmt.Sprintf("%s:%d", appSettings.MetricsAddress, appSettings.MetricsPort)
|
||||
|
||||
log.Printf("starting fail2ban exporter at %s", addr)
|
||||
|
||||
|
Reference in New Issue
Block a user