From 96ba6831ae02a4dae43e507d5931612abfb12d8f Mon Sep 17 00:00:00 2001 From: Vishal N Date: Tue, 21 Feb 2023 18:37:27 +0530 Subject: [PATCH] Observe delta in seconds prometheus_tsdb_sample_ooo_delta Signed-off-by: Vishal Nadagouda --- tsdb/head_append.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tsdb/head_append.go b/tsdb/head_append.go index 33cfc0eb3..8a622fafe 100644 --- a/tsdb/head_append.go +++ b/tsdb/head_append.go @@ -367,7 +367,7 @@ func (a *headAppender) Append(ref storage.SeriesRef, lset labels.Labels, t int64 } s.Unlock() if delta > 0 { - a.head.metrics.oooHistogram.Observe(float64(delta)) + a.head.metrics.oooHistogram.Observe(float64(delta) / 1000) } if err != nil { switch err {