From 5ebd8c7a942eb01ffbd1ec55976434c35bcd42f7 Mon Sep 17 00:00:00 2001 From: Kien Nguyen Date: Thu, 11 Jul 2024 15:34:52 +0700 Subject: [PATCH] promql rate refer --- prometheus/promql-gotchas.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/prometheus/promql-gotchas.md b/prometheus/promql-gotchas.md index 7eb8d9d..9424d58 100644 --- a/prometheus/promql-gotchas.md +++ b/prometheus/promql-gotchas.md @@ -55,7 +55,10 @@ go_memstats_gc_cpu_fraction > 1.5 * (go_memstats_gc_cpu_fraction offset 1h) ## Rate vs irate vs increase vs idelta -Source: +Source: + +- +- - **rate()**: - Use [first and last data points in the group, divide by query interval](https://github.com/prometheus/prometheus/blob/8849b7dcadc2960c70467734efce35d737be25f5/promql/functions.go#L71).