Observe delta in seconds prometheus_tsdb_sample_ooo_delta

Signed-off-by: Vishal Nadagouda <vishalmn1996@gmail.com>
This commit is contained in:
Vishal N 2023-02-21 18:37:27 +05:30 committed by Vishal Nadagouda
parent 86d3d5fec6
commit 96ba6831ae

View file

@ -367,7 +367,7 @@ func (a *headAppender) Append(ref storage.SeriesRef, lset labels.Labels, t int64
} }
s.Unlock() s.Unlock()
if delta > 0 { if delta > 0 {
a.head.metrics.oooHistogram.Observe(float64(delta)) a.head.metrics.oooHistogram.Observe(float64(delta) / 1000)
} }
if err != nil { if err != nil {
switch err { switch err {