main
JVM entry point for the standalone Proxy process.
Logs the Proxy ASCII banner and version, parses args into a ProxyOptions, constructs a Proxy, and immediately calls startSync(). Control returns to the JVM only after the Proxy terminates (e.g. process signal, fatal error, or explicit shutdown).
A config that can't be loaded, or a setting the options or the Proxy reject (a value of the wrong type or out of range, an unresolved ${…} substitution, a malformed proxy.auth entry), logs the reason and exits the process with code 1, with any credentials in a config URL redacted.
prometheus-proxy.jar starts here, through a launcher that first turns off kotlin-logging's startup message. Unlike Agent.main, the Proxy always loads its built-in reference config when no --config/PROXY_CONFIG is supplied, so there is no exitOnMissingConfig flag to plumb through here.
For embedded use inside another JVM (mirroring Agent.startAsyncAgent), construct a Proxy directly and call startAsync() rather than using this method.
Parameters
Raw command-line arguments forwarded to ProxyOptions for parsing.