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
Custom service discovery with etcd
Custom service discovery with etcd

Fabian Reinartz Aug 17, 2015 104 views

2
When (not) to use varbit chunks
When (not) to use varbit chunks

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

3
Interview with Scalefastr
Interview with Scalefastr

Brian Brazil Feb 8, 2018 95 views

4
Interview with Canonical
Interview with Canonical

Brian Brazil Nov 16, 2016 91 views

5
Monitoring DreamHack - the World's Largest Digital Festival
Monitoring DreamHack - the World's Largest Digital Festival

DreamHack Network Team Jun 24, 2015 91 views