mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-26 14:09:41 -08:00
Observe delta in seconds prometheus_tsdb_sample_ooo_delta
Signed-off-by: Vishal Nadagouda <vishalmn1996@gmail.com>
This commit is contained in:
parent
86d3d5fec6
commit
96ba6831ae
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue