prysm-pulse/validator/keymanager/remote-web3signer/metrics.go
james-prysm 2669006694
Web3Signer: Validator Registration (#10964)
* initial commit

* adjusting logic to match web3signer specifications

* making Epoch mandatory

* fixing unit test

* rolling back some changes on slots

* fixing unit tests

* testing enable validator registration

* adding validator registration to configs

* fixing prefix

* fixing shasum

* rolling back e2e validator registration until fully supported

* updating web3signer version

* changing types based on feedback
2022-07-14 15:04:03 -05:00

70 lines
3.2 KiB
Go

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",
})
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",
})
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",
})
validatorRegistrationSignRequestsTotal = promauto.NewCounter(prometheus.CounterOpts{
Name: "remote_web3signer_validator_registration_sign_requests_total",
Help: "Total number of validator registration sign requests",
})
)