ProxyHttpRoutes

HTTP routing logic for the proxy's Ktor server.

Defines the routes that handle incoming Prometheus scrape requests and service discovery. For each scrape request, resolves the path to one or more AgentContext instances, dispatches scrape requests through the gRPC stream, awaits responses, and merges results from consolidated agents. Handles OpenMetrics # EOF deduplication when merging.

See also

Functions

Link copied to clipboard
fun Routing.handleRequests(proxy: Proxy)
Link copied to clipboard
Link copied to clipboard
internal suspend fun submitScrapeRequest(agentContext: AgentContext, proxy: Proxy, path: String, encodedQueryParams: String, request: ApplicationRequest): ScrapeRequestResponse