Monitoring your gateway is critical for understanding traffic patterns, latency, and system health. Kong Operator provides two ways to collect metrics with Prometheus:
- Direct scraping: Directly scrapes standard Prometheus plugin metrics from the data plane Pods.
- Enriched metrics: Uses the
DataPlaneMetricsExtensionresource to enrich metrics with Kubernetes metadata and re-expose them via Kong Operator’s metrics endpoint.
In this example, we’ll use direct scraping.