Skip to content

Commit 2f68dcb

Browse files
committed
Apply reviewer feedback
Signed-off-by: Arve Knudsen <[email protected]>
1 parent 4358dfc commit 2f68dcb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

blog/posts/2025-11-14-introducing-info-function.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,15 @@ During this overlap period, your join query finds **two distinct matching `targe
5858

5959
This could in practice mean your dashboards break and your alerts stop firing when infrastructure changes are happening, perhaps precisely when you would need visibility the most.
6060

61+
```promql
6162
sum by (k8s_cluster_name, http_status_code) (
6263
info(rate(http_server_request_duration_seconds_count[2m]))
6364
)
6465
```
6566

6667
Much more comprehensible, no?
67-
The real magic happens under the hood though: **`info()` automatically selects the time series with the latest sample**, eliminating churn-related join failures entirely.
68+
Note that this call to `info()` returns all data labels from `target_info`, but it doesn't matter because we aggregate them away with `sum`.
69+
As regards solving the churn problem, the real magic happens under the hood: **`info()` automatically selects the time series with the latest sample**, eliminating churn-related join failures entirely.
6870

6971
### Basic Syntax
7072

0 commit comments

Comments
 (0)