2020-08-27 22:29:59 +00:00
|
|
|
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},
|
|
|
|
},
|
|
|
|
)
|
2022-09-01 01:26:19 +00:00
|
|
|
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",
|
|
|
|
},
|
|
|
|
)
|
2020-08-27 22:29:59 +00:00
|
|
|
)
|