Skip to content
Latest (currently 2026.10.2) has the newest features, bug fixes, and CVE patches of Solo Enterprise for agentgateway.

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

Page as Markdown

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.

PlaneComponentDefault portPath
Control planedeployment/enterprise-agentgateway9092/metrics
Data planePer Gateway, such as the example deploy/agentgateway-proxy15020/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.

  1. View control plane metrics.

    1. Port-forward the controller deployment.
      kubectl port-forward -n agentgateway-system deployment/enterprise-agentgateway 9092:9092
    2. Query the metrics endpoint.
      curl http://localhost:9092/metrics
  2. View data plane metrics.

    1. Port-forward the proxy deployment.
      kubectl port-forward -n agentgateway-system deploy/agentgateway-proxy 15020:15020
    2. Query the metrics endpoint.
      curl http://localhost:15020/metrics

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.

  1. Port-forward the UI pod.

    kubectl port-forward service/enterprise-agentgateway-ui -n agentgateway-system 4000:80
  2. Open the management UI.

  3. Send a few requests to your gateway proxy.

  4. Review the Dashboard and verify that you can see data populated in the panels, such as Requests by path and Errors over time.

  5. Optional: Log in to ClickHouse.

    1. Get the ClickHouse username and password from the enterprise-agentgateway-clickhouse-auth secret.
      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)
    2. Log in to ClickHouse.
      kubectl exec -it -n agentgateway-system enterprise-agentgateway-clickhouse-shard0-0 -- \
        clickhouse-client --user ${CH_USER} --password ${CH_PASS}
  6. 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;

Learn more