Gateway proxy metrics

Gateway proxy metrics

By default, kgateway exposes metrics in Prometheus format for the data plane of each gateway proxy. You can use these metrics to monitor the health and performance of your gateway environment.

View default data plane metrics in Prometheus

The following steps show you how to quickly view the metrics endpoint of the gateway proxy deployment. To integrate the Prometheus metrics into your observability stack, see the OpenTelemetry guide.

  1. Port-forward the gateway deployment on port 19000.

    kubectl -n kgateway-system port-forward deployment/http 19000
  2. Access the gateway metrics by reviewing the Prometheus statistics /stats/prometheus endpoint.

    Example output:

    # TYPE envoy_cluster_external_upstream_rq counter
    envoy_cluster_external_upstream_rq{envoy_response_code="200",envoy_cluster_name="kube_httpbin_httpbin_8000"} 5
    

Gateway proxy metrics reference

For more details about the collected metrics, see the Envoy statistics reference docs.