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() from the constructor's initBlock. Control returns to the JVM only after the Proxy terminates (e.g. process signal, fatal error, or explicit shutdown).

Used as the Main-Class of prometheus-proxy.jar. 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

args

Raw command-line arguments forwarded to ProxyOptions for parsing.