2022-08-01 14:43:47 +00:00
|
|
|
package execution
|
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
|
|
|
},
|
|
|
|
)
|
2022-08-31 22:05:50 +00:00
|
|
|
errParseCount = promauto.NewCounter(prometheus.CounterOpts{
|
|
|
|
Name: "execution_parse_error_count",
|
|
|
|
Help: "The number of errors that occurred while parsing execution payload",
|
|
|
|
})
|
|
|
|
errInvalidRequestCount = promauto.NewCounter(prometheus.CounterOpts{
|
|
|
|
Name: "execution_invalid_request_count",
|
|
|
|
Help: "The number of errors that occurred due to invalid request",
|
|
|
|
})
|
|
|
|
errMethodNotFoundCount = promauto.NewCounter(prometheus.CounterOpts{
|
|
|
|
Name: "execution_method_not_found_count",
|
|
|
|
Help: "The number of errors that occurred due to method not found",
|
|
|
|
})
|
|
|
|
errInvalidParamsCount = promauto.NewCounter(prometheus.CounterOpts{
|
|
|
|
Name: "execution_invalid_params_count",
|
|
|
|
Help: "The number of errors that occurred due to invalid params",
|
|
|
|
})
|
|
|
|
errInternalCount = promauto.NewCounter(prometheus.CounterOpts{
|
|
|
|
Name: "execution_internal_error_count",
|
|
|
|
Help: "The number of errors that occurred due to internal error",
|
|
|
|
})
|
|
|
|
errUnknownPayloadCount = promauto.NewCounter(prometheus.CounterOpts{
|
|
|
|
Name: "execution_unknown_payload_count",
|
|
|
|
Help: "The number of errors that occurred due to unknown payload",
|
|
|
|
})
|
|
|
|
errInvalidForkchoiceStateCount = promauto.NewCounter(prometheus.CounterOpts{
|
|
|
|
Name: "execution_invalid_forkchoice_state_count",
|
|
|
|
Help: "The number of errors that occurred due to invalid forkchoice state",
|
|
|
|
})
|
|
|
|
errInvalidPayloadAttributesCount = promauto.NewCounter(prometheus.CounterOpts{
|
|
|
|
Name: "execution_invalid_payload_attributes_count",
|
|
|
|
Help: "The number of errors that occurred due to invalid payload attributes",
|
|
|
|
})
|
|
|
|
errServerErrorCount = promauto.NewCounter(prometheus.CounterOpts{
|
|
|
|
Name: "execution_server_error_count",
|
|
|
|
Help: "The number of errors that occurred due to server error",
|
|
|
|
})
|
2022-07-08 14:10:33 +00:00
|
|
|
reconstructedExecutionPayloadCount = promauto.NewCounter(prometheus.CounterOpts{
|
|
|
|
Name: "reconstructed_execution_payload_count",
|
|
|
|
Help: "Count the number of execution payloads that are reconstructed using JSON-RPC from payload headers",
|
|
|
|
})
|
2023-03-14 15:52:16 +00:00
|
|
|
errRequestTooLargeCount = promauto.NewCounter(prometheus.CounterOpts{
|
|
|
|
Name: "execution_payload_bodies_count",
|
|
|
|
Help: "The number of requested payload bodies is too large",
|
|
|
|
})
|
2022-03-28 22:17:31 +00:00
|
|
|
)
|