Subquery Support
Prometheus Blog

Subquery Support


Summary

Prometheus 2.7 introduces subqueries, allowing for range queries within a query – a previously unavailable feature. This eliminates the need to create recording rules for complex calculations like combining rates with different resolutions, saving time and reducing frustration. Subqueries function like an embedded `/query_range` API call, returning a range vector and enabling more dynamic and efficient PromQL expressions, though excessive use may impact performance and should be optimized with recording rules when possible.
Read the Original Article

This article originally appeared on Prometheus Blog.

Read Full Article on Original Site

Popular from Prometheus Blog

1
Modernizing Prometheus: Native Storage for Composite Types
Modernizing Prometheus: Native Storage for Composite Types

@bwplotka Feb 14, 2026 12 views

2
Uncached I/O in Prometheus
Uncached I/O in Prometheus

@machine424 Mar 5, 2026 11 views

3
Introducing the Experimental info() Function
Introducing the Experimental info() Function

Arve Knudsen Dec 16, 2025 11 views

4
Announcing Prometheus 3.0
Announcing Prometheus 3.0

The Prometheus Team Nov 14, 2024 11 views

5
Our commitment to OpenTelemetry
Our commitment to OpenTelemetry

@Gouthamve Mar 13, 2024 11 views