mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-11 12:10:05 +00:00
edb98cf499
* gazelle * tests passing * use the same engine client * pass * initialize in right place * erge * build * imports * ensure engine checks work * pass powchain tests * powchain tests pass * deepsource * fix up node issues * gaz * endpoint use * baz * b * conf * lint * gaz * move to start function * test pass
31 lines
956 B
Go
31 lines
956 B
Go
package powchain
|
|
|
|
import (
|
|
"github.com/prometheus/client_golang/prometheus"
|
|
"github.com/prometheus/client_golang/prometheus/promauto"
|
|
)
|
|
|
|
var (
|
|
newPayloadLatency = promauto.NewHistogram(
|
|
prometheus.HistogramOpts{
|
|
Name: "new_payload_v1_latency_milliseconds",
|
|
Help: "Captures RPC latency for newPayloadV1 in milliseconds",
|
|
Buckets: []float64{1, 2, 5, 10, 20, 50, 100, 200, 500, 1000},
|
|
},
|
|
)
|
|
getPayloadLatency = promauto.NewHistogram(
|
|
prometheus.HistogramOpts{
|
|
Name: "get_payload_v1_latency_milliseconds",
|
|
Help: "Captures RPC latency for newPayloadV1 in milliseconds",
|
|
Buckets: []float64{1, 2, 5, 10, 20, 50, 100, 200, 500, 1000},
|
|
},
|
|
)
|
|
forkchoiceUpdatedLatency = promauto.NewHistogram(
|
|
prometheus.HistogramOpts{
|
|
Name: "forkchoice_updated_v1_latency_milliseconds",
|
|
Help: "Captures RPC latency for newPayloadV1 in milliseconds",
|
|
Buckets: []float64{1, 2, 5, 10, 20, 50, 100, 200, 500, 1000},
|
|
},
|
|
)
|
|
)
|