Skip to content
agentgateway has joined the Agentic AI FoundationLearn more

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

Page as Markdown

View and reference control plane metrics that are emitted by the agentgateway controller.

The agentgateway control plane exposes Prometheus-compatible metrics on port 9092. These metrics reflect the health and activity of the Kubernetes controller, such as how many resources have been reconciled, how long reconciliations take, and whether the controller is keeping the XDS snapshot in sync 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

  1. Port-forward the control plane deployment.

    kubectl port-forward -n agentgateway-system deployment/agentgateway 9092:9092
  2. Query the metrics endpoint.

    curl http://localhost:9092/metrics

    Example output:

    # HELP agentgateway_controller_reconciliations_total Total number of controller reconciliations
    # TYPE agentgateway_controller_reconciliations_total counter
    agentgateway_controller_reconciliations_total{controller="gateway",result="success"} 1
    agentgateway_controller_reconciliations_total{controller="gatewayclass",result="success"} 2
    agentgateway_controller_reconciliations_total{controller="gatewayclass-provisioner",result="success"} 2
    
  3. Enable 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.

NameTypeLabelsHelp
agentgateway_controller_reconcile_duration_secondshistogramcontroller, name, namespaceReconcile duration for controller
agentgateway_controller_reconciliations_runninggaugecontroller, name, namespaceNumber of reconciliations currently running
agentgateway_controller_reconciliations_totalcountercontroller, name, namespace, resultTotal number of controller reconciliations
agentgateway_xds_auth_rq_failure_totalcounterTotal number of failed xDS auth requests
agentgateway_xds_auth_rq_success_totalcounterTotal number of successful xDS auth requests
agentgateway_xds_auth_rq_totalcounterTotal number of xDS auth requests
agentgateway_xds_rejects_totalcounterTotal number of xDS responses rejected by agentgateway proxy
Was this page helpful?
Agentgateway assistant

Ask me anything about agentgateway configuration, features, or usage.

Note: AI-generated content might contain errors; please verify and test all returned information.

Tip: one topic per conversation gives the best results. Use the + button in the chat header to start a new conversation.

Switching topics? Starting a new conversation improves accuracy.
↑↓ navigate select esc dismiss

What could be improved?

Your feedback helps us improve assistant answers and identify docs gaps we should fix.

Need more help? Join us on Discord: https://discord.gg/y9efgEmppm

Want to use your own agent? Add the Solo MCP server to query our docs directly. Get started here: https://search.solo.io/.