Agent Http Service
Scrapes actual metrics endpoints via HTTP and builds ScrapeResults.
When the proxy dispatches a scrape request, this service fetches the target URL using a Ktor HttpClient obtained from HttpClientCache. Handles response parsing, gzip compression for large payloads, content-length limits, timeout/retry logic, and authentication header forwarding. Returns ScrapeResults that are sent back to the proxy over gRPC.
Parameters
agent
the parent Agent instance