News Infrastructure

GKE Adds Built-In PromQL Support for Autoscaling Pods

Google Cloud adds native PromQL queries to GKE's autoscaler, letting workloads scale on Cloud Monitoring metrics without third-party adapters.

Google Kubernetes Engine now lets its autoscaler read Prometheus metrics directly using PromQL queries, skipping the external adapters teams previously needed. Google Cloud says the feature works through the Horizontal Pod Autoscaler (HPA), the GKE tool that adds or removes pods based on measured demand, and pulls data straight from Cloud Monitoring via Google Managed Service for Prometheus.

Previously, scaling on metrics like Pub/Sub queue depth or response-time percentiles required deploying adapters such as the Stackdriver Custom Metrics Adapter or the Prometheus adapter. Google Cloud says these added operational overhead, extra failure points in the autoscaling loop, and complex identity permission setups between Kubernetes and Cloud service accounts.

The new setup extends an existing AutoscalingMetric resource, letting users define a PromQL query and reference it directly in a standard HorizontalPodAutoscaler configuration. Google Cloud says the underlying controller runs on the GKE control plane and only activates a system pod on user nodes when a PromQL metric is actively in use, avoiding idle resource costs.

The capability is currently in preview and supports Prometheus metrics stored in Cloud Monitoring. Google Cloud says it plans to add support for self-hosted Prometheus servers as the feature moves toward general availability.

Source: Google Cloud announcement.