For the complete documentation index, see llms.txt. Markdown versions of all docs pages are available by appending .md to any docs URL.
Metrics overview
Learn how agentgateway exposes control plane and data plane metrics and how to collect them in the enterprise stack.
Metrics are numerical measurements collected at regular intervals that describe the state and behavior of a system. In a gateway environment, metrics tell you how many requests are being processed, how long they take, how many fail, how much memory the process uses, and whether the control plane is keeping up with configuration changes. Without metrics, you rely on guesswork to detect problems, diagnose slowdowns, or prove that an issue is resolved.
Agentgateway emits metrics automatically on two separate ports, one for the control plane and one for the data plane. No additional configuration is required to enable them. You can access either endpoint immediately after installation by port-forwarding to the respective pod and sending a request to the /metrics path.
| Plane | Component | Default port | Path |
|---|---|---|---|
| Control plane | deployment/enterprise-agentgateway | 9092 | /metrics |
| Data plane | Per Gateway, such as the example deploy/agentgateway-proxy | 15020 | /metrics |
Both endpoints return metrics in the OpenMetrics format. All agentgateway metrics use the agentgateway_ prefix. For the full list of available metrics, see Control plane metrics and Data plane metrics.
Access raw metrics
Inspect metrics directly from either endpoint with kubectl and curl without installing any monitoring tools.
View control plane metrics.
- Port-forward the controller deployment.
kubectl port-forward -n agentgateway-system deployment/enterprise-agentgateway 9092:9092 - Query the metrics endpoint.
curl http://localhost:9092/metrics
- Port-forward the controller deployment.
View data plane metrics.
- Port-forward the proxy deployment.
kubectl port-forward -n agentgateway-system deploy/agentgateway-proxy 15020:15020 - Query the metrics endpoint.
curl http://localhost:15020/metrics
- Port-forward the proxy deployment.
View metrics in the management UI
When you install the management UI for Solo Enterprise for agentgateway, the enterprise OTel collector automatically scrapes the control and data plane metrics endpoints and stores the data in ClickHouse. No additional configuration is required. The management UI reads directly from ClickHouse to display metric data for your agentgateway environment.
Port-forward the UI pod.
kubectl port-forward service/enterprise-agentgateway-ui -n agentgateway-system 4000:80Send a few requests to your gateway proxy.
Review the Dashboard and verify that you can see data populated in the panels, such as Requests by path and Errors over time.


Optional: Log in to ClickHouse.
- Get the ClickHouse username and password from the
enterprise-agentgateway-clickhouse-authsecret.export CH_USER=$(kubectl get secret enterprise-agentgateway-clickhouse-auth -n agentgateway-system -o jsonpath='{.data.username}' | base64 -d) export CH_PASS=$(kubectl get secret enterprise-agentgateway-clickhouse-auth -n agentgateway-system -o jsonpath='{.data.password}' | base64 -d) - Log in to ClickHouse.
kubectl exec -it -n agentgateway-system enterprise-agentgateway-clickhouse-shard0-0 -- \ clickhouse-client --user ${CH_USER} --password ${CH_PASS}
- Get the ClickHouse username and password from the
Query the metrics tables. Metrics are stored across several tables depending on their type. Use the following examples to get started.
List all counter metrics being collected.
SELECT DISTINCT MetricName FROM agentgateway.otel_metrics_sum ORDER BY MetricName;Query recent request count values.
SELECT MetricName, TimeUnix, Value, Attributes FROM agentgateway.otel_metrics_sum WHERE MetricName = 'agentgateway_requests_total' ORDER BY TimeUnix DESC LIMIT 20;List all histogram metrics such as request latency.
SELECT DISTINCT MetricName FROM agentgateway.otel_metrics_histogram ORDER BY MetricName;Query histogram data for a specific metric.
SELECT MetricName, TimeUnix, Count, Sum, Attributes FROM agentgateway.otel_metrics_histogram WHERE MetricName LIKE 'agentgateway_%' ORDER BY TimeUnix DESC LIMIT 20;