Compare commits

...

1 Commits

Author SHA1 Message Date
Kasey Kirkham
c306f70d5d metric to track batch retries 2024-02-28 17:23:17 -06:00
2 changed files with 7 additions and 0 deletions

View File

@@ -152,6 +152,7 @@ func (b batch) withState(s batchState) batch {
b.scheduled = time.Now()
switch b.state {
case batchErrRetryable:
backfillBatchRetries.Inc()
b.retries += 1
log.WithFields(b.logFields()).Info("Sequencing batch for retry")
case batchInit, batchNil:

View File

@@ -57,6 +57,12 @@ var (
Help: "Number of BeaconBlock values downloaded from peers for backfill.",
},
)
backfillBatchRetries = promauto.NewCounter(
prometheus.CounterOpts{
Name: "backfill_batch_retries",
Help: "Number of times batches have failed with a retryable error.",
},
)
backfillBatchTimeRoundtrip = promauto.NewHistogram(
prometheus.HistogramOpts{
Name: "backfill_batch_time_roundtrip",