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 63 views

2
Announcing Prometheus 3.0
Announcing Prometheus 3.0

The Prometheus Team Nov 14, 2024 29 views

3
Custom service discovery with etcd
Custom service discovery with etcd

Fabian Reinartz Aug 17, 2015 29 views

5
Interview with Hostinger
Interview with Hostinger

Brian Brazil Feb 6, 2019 28 views