You've already forked prometheus-fail2ban-exporter
							
							feat: configure tool using environment variables (#17)
Replace CLI parsing functionality with the `kingpin` library to better support configuring the tool with environment variables. Add new environment variables to configure the tool. BREAKING CHANGE: CLI params now require two dashes instead of one (e.g. `--socket`)
This commit is contained in:
		@@ -15,6 +15,6 @@ fi
 | 
			
		||||
# Start the exporter (use exec to support graceful shutdown)
 | 
			
		||||
# Inspired by: https://akomljen.com/stopping-docker-containers-gracefully/
 | 
			
		||||
exec /app/fail2ban-prometheus-exporter \
 | 
			
		||||
    -socket "$socket_path" \
 | 
			
		||||
    -collector.textfile=$textfile_enabled \
 | 
			
		||||
    -collector.textfile.directory="$textfile_dir"
 | 
			
		||||
    --socket "$socket_path" \
 | 
			
		||||
    --collector.textfile=$textfile_enabled \
 | 
			
		||||
    --collector.textfile.directory="$textfile_dir"
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user