2022-02-01 18:28:41 +00:00
|
|
|
package remote_web3signer
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/prometheus/client_golang/prometheus"
|
|
|
|
"github.com/prometheus/client_golang/prometheus/promauto"
|
|
|
|
)
|
|
|
|
|
|
|
|
var (
|
|
|
|
signRequestsTotal = promauto.NewCounter(prometheus.CounterOpts{
|
|
|
|
Name: "remote_web3signer_sign_requests_total",
|
|
|
|
Help: "Total number of sign requests",
|
|
|
|
})
|
|
|
|
erroredResponsesTotal = promauto.NewCounter(prometheus.CounterOpts{
|
|
|
|
Name: "remote_web3signer_errored_responses_total",
|
|
|
|
Help: "Total number of errored responses when calling web3signer",
|
|
|
|
})
|
|
|
|
blockSignRequestsTotal = promauto.NewCounter(prometheus.CounterOpts{
|
|
|
|
Name: "remote_web3signer_block_sign_requests_total",
|
|
|
|
Help: "Total number of block sign requests",
|
|
|
|
})
|
|
|
|
aggregationSlotSignRequestsTotal = promauto.NewCounter(prometheus.CounterOpts{
|
|
|
|
Name: "remote_web3signer_aggregation_slot_requests_total",
|
|
|
|
Help: "Total number of aggregation slot requests",
|
|
|
|
})
|
|
|
|
aggregateAndProofSignRequestsTotal = promauto.NewCounter(prometheus.CounterOpts{
|
|
|
|
Name: "remote_web3signer_aggregate_and_proof_sign_requests_total",
|
|
|
|
Help: "Total number of aggregate and proof sign requests",
|
|
|
|
})
|
|
|
|
attestationSignRequestsTotal = promauto.NewCounter(prometheus.CounterOpts{
|
|
|
|
Name: "remote_web3signer_attestation_sign_requests_total",
|
|
|
|
Help: "Total number of attestation sign requests",
|
|
|
|
})
|
|
|
|
blockV2SignRequestsTotal = promauto.NewCounter(prometheus.CounterOpts{
|
|
|
|
Name: "remote_web3signer_block_v2_sign_requests_total",
|
|
|
|
Help: "Total number of block v2 sign requests",
|
|
|
|
})
|
2022-05-18 15:20:20 +00:00
|
|
|
blockV3SignRequestsTotal = promauto.NewCounter(prometheus.CounterOpts{
|
|
|
|
Name: "remote_web3signer_block_v3_sign_requests_total",
|
|
|
|
Help: "Total number of block v3 sign requests",
|
|
|
|
})
|
|
|
|
blindedblockV3SignRequestsTotal = promauto.NewCounter(prometheus.CounterOpts{
|
|
|
|
Name: "remote_web3signer_blinded_block_v3_sign_requests_total",
|
|
|
|
Help: "Total number of blinded block v3 sign requests",
|
|
|
|
})
|
2022-02-01 18:28:41 +00:00
|
|
|
randaoRevealSignRequestsTotal = promauto.NewCounter(prometheus.CounterOpts{
|
|
|
|
Name: "remote_web3signer_randao_reveal_sign_requests_total",
|
|
|
|
Help: "Total number of randao reveal sign requests",
|
|
|
|
})
|
|
|
|
voluntaryExitSignRequestsTotal = promauto.NewCounter(prometheus.CounterOpts{
|
|
|
|
Name: "remote_web3signer_voluntary_exit_sign_requests_total",
|
|
|
|
Help: "Total number of voluntary exit sign requests",
|
|
|
|
})
|
|
|
|
syncCommitteeMessageSignRequestsTotal = promauto.NewCounter(prometheus.CounterOpts{
|
|
|
|
Name: "remote_web3signer_sync_committee_message_sign_requests_total",
|
|
|
|
Help: "Total number of sync committee message sign requests",
|
|
|
|
})
|
|
|
|
syncCommitteeSelectionProofSignRequestsTotal = promauto.NewCounter(prometheus.CounterOpts{
|
|
|
|
Name: "remote_web3signer_sync_committee_selection_proof_sign_requests_total",
|
|
|
|
Help: "Total number of sync committee selection proof sign requests",
|
|
|
|
})
|
|
|
|
syncCommitteeContributionAndProofSignRequestsTotal = promauto.NewCounter(prometheus.CounterOpts{
|
|
|
|
Name: "remote_web3signer_sync_committee_contribution_and_proof_sign_requests_total",
|
|
|
|
Help: "Total number of sync committee contribution and proof sign requests",
|
|
|
|
})
|
|
|
|
)
|