You've already forked prometheus-fail2ban-exporter
refactor: deprecate database metrics
Update all old database-based metrics to include the `deprecated` text. Add a warning on startup if connecting to the fail2ban database to state that this functionality will be removed in a future release. Rename deprecated methods and variables.
This commit is contained in:
@ -22,7 +22,7 @@ func Parse() *AppSettings {
|
||||
appSettings := &AppSettings{}
|
||||
flag.BoolVar(&appSettings.VersionMode, "version", false, "show version info and exit")
|
||||
flag.IntVar(&appSettings.MetricsPort, "port", 9191, "port to use for the metrics server")
|
||||
flag.StringVar(&appSettings.Fail2BanDbPath, "db", "", "path to the fail2ban sqlite database")
|
||||
flag.StringVar(&appSettings.Fail2BanDbPath, "db", "", "path to the fail2ban sqlite database (deprecated)")
|
||||
flag.StringVar(&appSettings.Fail2BanSocketPath, "socket", "", "path to the fail2ban server socket")
|
||||
|
||||
flag.Parse()
|
||||
|
Reference in New Issue
Block a user