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
Interview with iAdvize
Interview with iAdvize

Brian Brazil • May 17, 2017 • 118 views

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

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

3
Custom service discovery with etcd
Custom service discovery with etcd

Fabian Reinartz • Aug 17, 2015 • 118 views

4
Interview with Scalefastr
Interview with Scalefastr

Brian Brazil • Feb 8, 2018 • 114 views

5
Interview with Canonical
Interview with Canonical

Brian Brazil • Nov 16, 2016 • 112 views