Merge pull request #12004 from vishalnad/main

Observe delta in seconds prometheus_tsdb_sample_ooo_delta
This commit is contained in:
Ganesh Vernekar 2023-02-21 19:32:53 +05:30 committed by GitHub
commit bfcf69b4a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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 {