Proxy Http Service
internal class ProxyHttpService(proxy: Proxy, val httpPort: Int, isTestMode: Boolean) : GenericIdleService(source)
HTTP server that serves Prometheus scrape requests.
Runs a Ktor CIO embedded server on a configurable port. Incoming HTTP GET requests are routed by ProxyHttpRoutes to the appropriate agent via gRPC, and the scraped metrics are returned to Prometheus. Also serves the optional service discovery endpoint.
Parameters
proxy
the parent Proxy instance
http Port
the HTTP listen port for Prometheus scrape requests
is Test Mode
when true, suppresses verbose logging during tests