mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-25 12:57:18 +00:00
bcaae1c440
* atts performance and blocks * idiomatic observe * all attestation related errors * block metrics * db metrics * metrics func * rem old metrics * naming * rem metric * rem unneeded * fix * fix up * rev * fix * rem
29 lines
697 B
Go
29 lines
697 B
Go
package stategen
|
|
|
|
import (
|
|
"github.com/prometheus/client_golang/prometheus"
|
|
"github.com/prometheus/client_golang/prometheus/promauto"
|
|
)
|
|
|
|
var (
|
|
replayBlockCount = promauto.NewHistogram(
|
|
prometheus.HistogramOpts{
|
|
Name: "replay_blocks_count",
|
|
Help: "The number of blocks to replay to generate a state",
|
|
Buckets: []float64{64, 256, 1024, 2048, 4096},
|
|
},
|
|
)
|
|
replayBlocksSummary = promauto.NewSummary(
|
|
prometheus.SummaryOpts{
|
|
Name: "replay_blocks_milliseconds",
|
|
Help: "Time it took to replay blocks",
|
|
},
|
|
)
|
|
replayToSlotSummary = promauto.NewSummary(
|
|
prometheus.SummaryOpts{
|
|
Name: "replay_to_slot_milliseconds",
|
|
Help: "Time it took to replay to slot",
|
|
},
|
|
)
|
|
)
|