Proxy

constructor(options: ProxyOptions, proxyPort: Int = options.proxyPort, inProcessServerName: String = "", testMode: Boolean = false, initBlock: Proxy.() -> Unit? = null)(source)

Parameters

options

Configuration options for the proxy, typically loaded from command line or config files

proxyPort

Port for the HTTP service that Prometheus scrapes. Defaults to value in options.

inProcessServerName

Optional in-process server name for testing scenarios. When specified, the proxy will create an in-process gRPC server instead of a network server.

testMode

Whether to run in test mode. Test mode may disable certain features or use different defaults suitable for testing environments.

initBlock

Optional initialization block executed after construction but before startup. Useful for custom configuration or testing setup.