2022-04-01 18:04:24 +00:00
|
|
|
package powchain
|
2022-03-28 22:17:31 +00:00
|
|
|
|
|
|
|
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",
|
2022-06-08 20:12:54 +00:00
|
|
|
Buckets: []float64{25, 50, 100, 200, 500, 1000, 2000, 4000},
|
2022-03-28 22:17:31 +00:00
|
|
|
},
|
|
|
|
)
|
|
|
|
getPayloadLatency = promauto.NewHistogram(
|
|
|
|
prometheus.HistogramOpts{
|
|
|
|
Name: "get_payload_v1_latency_milliseconds",
|
2022-05-24 19:17:17 +00:00
|
|
|
Help: "Captures RPC latency for getPayloadV1 in milliseconds",
|
2022-06-08 20:12:54 +00:00
|
|
|
Buckets: []float64{25, 50, 100, 200, 500, 1000, 2000, 4000},
|
2022-03-28 22:17:31 +00:00
|
|
|
},
|
|
|
|
)
|
|
|
|
forkchoiceUpdatedLatency = promauto.NewHistogram(
|
|
|
|
prometheus.HistogramOpts{
|
|
|
|
Name: "forkchoice_updated_v1_latency_milliseconds",
|
2022-05-24 19:17:17 +00:00
|
|
|
Help: "Captures RPC latency for forkchoiceUpdatedV1 in milliseconds",
|
2022-06-08 20:12:54 +00:00
|
|
|
Buckets: []float64{25, 50, 100, 200, 500, 1000, 2000, 4000},
|
2022-03-28 22:17:31 +00:00
|
|
|
},
|
|
|
|
)
|
|
|
|
)
|