Agent Context
Represents a single connected agent on the proxy side.
Each agent connection creates an AgentContext that holds the agent's identity (ID, name, hostname), validity state, activity timestamps, and a queue of pending scrape requests. The proxy writes scrape requests into the queue and the gRPC streaming RPC drains them. When the agent disconnects or is evicted, the context is invalidated and all pending requests are drained and closed.
Parameters
remote Addr
the remote address of the connected agent