Metrics reference

Field-level reference for the ConnectionMetric record emitted by the Agent Gateway for every surface request.

The Agent Gateway records a ConnectionMetric entry for every request processed by a surface. These records drive the built-in dashboard, the Monitoring tab on each surface, and the OTLP metrics export.

Core fields

Present on every metric record, regardless of metric type.

FieldTypeDescription
timestampdatetime (UTC)When the request was processed.
channel_config_idstringIdentifier of the surface configuration that processed the request.
sourcestringSource address or agent identifier. For surface requests, typically the caller’s IP address.
destinationstringUpstream target address the gateway forwarded the request to.
statusstringRequest outcome. See Status values.
latency_msinteger (optional)Total end-to-end latency in milliseconds, from request received to response sent.
identity_hashstring (optional)Hash of the agent identity (DID) associated with this request. Present when Identity Management is enabled and a DID was derived.
directionstringWhether this record captures a request or response event. See Direction values.
trace_idstringW3C-compatible trace identifier. Links this metric to the corresponding distributed trace span.
metric_typestringRecord classification. See Metric type values.
correlation_idstring (optional)Caller-provided correlation identifier propagated from the inbound request.
agent_identitystring (optional)Resolved agent DID string, when available. Distinct from identity_hash in that it holds the full DID.
request_bytesinteger (optional)Size of the inbound request body in bytes.
response_bytesinteger (optional)Size of the outbound response body in bytes.
retry_countinteger (optional)Number of retries the gateway performed before the request succeeded or was abandoned. Present when retry is configured and at least one retry occurred.

Status values

ValueMeaning
successRequest was forwarded and a valid response was received from the target.
failedRequest was rejected before forwarding (for example, authentication failure, policy denial, or rate limit).
gateway_faultGateway encountered an error after forwarding the request (for example, target unreachable, timeout, or circuit breaker open).

Direction values

ValueMeaning
requestRecord captures metrics for the inbound leg of the request, from caller to gateway.
responseRecord captures metrics for the outbound leg, from gateway to caller.

Metric type values

ValueMeaning
channelRecord originates from a surface request (A2A, AP2, or MCP protocol).
mcp_proxyRecord originates from an MCP proxy interaction.
  • Observability: Overview of traces, metrics, and logs, including what is exported via OTLP and how the management dashboard visualises per-surface traffic data.