Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Command Line Options

FlagDescriptionDefault
--targets <file> / -f <file>Path to configuration fileRequired
--port <port>Port to listen on3000
--watchEnable configuration file watching for hot-reloadingtrue
--metricsEnable Prometheus metrics endpointtrue
--metrics-port <port>Port for Prometheus metrics9090
--metrics-prefix <prefix>Prefix for metric namesonwards

Examples

Start with defaults:

cargo run -- -f config.json

Custom port, metrics disabled:

cargo run -- -f config.json --port 8080 --metrics false

Custom metrics configuration:

cargo run -- -f config.json --metrics-port 9100 --metrics-prefix gateway