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
When (not) to use varbit chunks
When (not) to use varbit chunks

Björn “Beorn” Rabenstein May 8, 2016 61 views

2
Announcing Prometheus 3.0
Announcing Prometheus 3.0

The Prometheus Team Nov 14, 2024 25 views

3
Interview with Hostinger
Interview with Hostinger

Brian Brazil Feb 6, 2019 25 views

4
Practical Anomaly Detection
Practical Anomaly Detection

Brian Brazil Jun 18, 2015 25 views

5
Interview with Weaveworks
Interview with Weaveworks

Brian Brazil Feb 20, 2017 24 views