For the complete documentation index, see llms.txt. Markdown versions of all docs pages are available by appending .md to any docs URL.
Control plane metrics
Verified : Code examples on this page have been automatically tested and verified.View and reference control plane metrics that are emitted by the agentgateway controller.
The agentgateway control plane exposes Prometheus-compatible metrics on port 9092. The metrics track resource reconciliation counts and XDS synchronization with the proxy.
Control plane metrics cannot be customized. To set up automatic scraping of these metrics with Prometheus, see Enable metrics scraping.
View control plane metrics
Port-forward the control plane deployment.
kubectl port-forward -n agentgateway-system deployment/agentgateway 9092:9092Query the metrics endpoint.
curl http://localhost:9092/metricsExample output:
# HELP agentgateway_controller_reconciliations_total Total number of controller reconciliations # TYPE agentgateway_controller_reconciliations_total counter agentgateway_controller_reconciliations_total{controller="gateway",result="error"} 14 agentgateway_controller_reconciliations_total{controller="gateway",result="success"} 62 agentgateway_controller_reconciliations_total{controller="gatewayclass",result="success"} 2Enable metrics scraping for control plane metrics with the OTel stack so that you can export and visualize metrics in monitoring tools, such as Prometheus and Grafana. For more information, see Scrape metrics for querying and visualization.
Control plane metrics reference
Review the metrics that are emitted by the agentgateway control plane.
The agentgateway_controller_reconciliations_total counter has only the controller and result labels. For the gateway controller, the counter includes only Gateways whose GatewayClass the agentgateway controller manages.
| Name | Type | Labels | Help |
|---|---|---|---|
| agentgateway_cert_expiry_seconds | gauge | Expiry timestamp (Unix seconds) of the current xDS serving certificate | |
| agentgateway_cert_rotation_errors_total | counter | Total number of failed xDS certificate rotations | |
| agentgateway_cert_rotation_total | counter | Total number of successful xDS certificate rotations | |
| agentgateway_controller_reconciliations_total | counter | controller, result | Total number of controller reconciliations |
| agentgateway_xds_auth_rq_failure_total | counter | Total number of failed xDS auth requests | |
| agentgateway_xds_auth_rq_success_total | counter | Total number of successful xDS auth requests | |
| agentgateway_xds_auth_rq_total | counter | Total number of xDS auth requests | |
| agentgateway_xds_rejects_total | counter | Total number of xDS responses rejected by agentgateway proxy | |
| agentgateway_xds_warnings_total | counter | Total number of xDS responses with configuration warnings from agentgateway proxy |