mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-11 04:00:05 +00:00
Enhance block arrival delay metrics by adding a gauge (#11897)
* Enhance block arrival delay metrics * Remove histograms * Revert histogram * Rm new line --------- Co-authored-by: Nishant Das <nishdas93@gmail.com>
This commit is contained in:
parent
0d01debe9a
commit
9e15316351
@ -89,6 +89,10 @@ var (
|
|||||||
Buckets: []float64{100, 250, 500, 750, 1000, 1500, 2000, 4000, 8000, 12000, 16000, 20000, 24000},
|
Buckets: []float64{100, 250, 500, 750, 1000, 1500, 2000, 4000, 8000, 12000, 16000, 20000, 24000},
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
arrivalBlockPropagationGauge = promauto.NewGauge(prometheus.GaugeOpts{
|
||||||
|
Name: "block_arrival_latency_milliseconds_gauge",
|
||||||
|
Help: "Captures blocks propagation time. Blocks arrival in milliseconds",
|
||||||
|
})
|
||||||
|
|
||||||
// Attestation processing granular error tracking.
|
// Attestation processing granular error tracking.
|
||||||
attBadBlockCount = promauto.NewCounter(prometheus.CounterOpts{
|
attBadBlockCount = promauto.NewCounter(prometheus.CounterOpts{
|
||||||
|
@ -352,6 +352,7 @@ func captureArrivalTimeMetric(genesisTime uint64, currentSlot primitives.Slot) e
|
|||||||
}
|
}
|
||||||
ms := prysmTime.Now().Sub(startTime) / time.Millisecond
|
ms := prysmTime.Now().Sub(startTime) / time.Millisecond
|
||||||
arrivalBlockPropagationHistogram.Observe(float64(ms))
|
arrivalBlockPropagationHistogram.Observe(float64(ms))
|
||||||
|
arrivalBlockPropagationGauge.Set(float64(ms))
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user