diff --git a/beacon-chain/core/epoch/BUILD.bazel b/beacon-chain/core/epoch/BUILD.bazel index 1b1fc26027..da950d9da3 100644 --- a/beacon-chain/core/epoch/BUILD.bazel +++ b/beacon-chain/core/epoch/BUILD.bazel @@ -19,8 +19,6 @@ go_library( "//proto/prysm/v1alpha1:go_default_library", "//proto/prysm/v1alpha1/attestation:go_default_library", "@com_github_pkg_errors//:go_default_library", - "@com_github_prometheus_client_golang//prometheus:go_default_library", - "@com_github_prometheus_client_golang//prometheus/promauto:go_default_library", ], ) diff --git a/beacon-chain/core/epoch/epoch_processing.go b/beacon-chain/core/epoch/epoch_processing.go index 7c9616e925..828e2795d4 100644 --- a/beacon-chain/core/epoch/epoch_processing.go +++ b/beacon-chain/core/epoch/epoch_processing.go @@ -10,8 +10,6 @@ import ( "sort" "github.com/pkg/errors" - "github.com/prometheus/client_golang/prometheus" - "github.com/prometheus/client_golang/prometheus/promauto" "github.com/prysmaticlabs/prysm/v3/beacon-chain/core/helpers" "github.com/prysmaticlabs/prysm/v3/beacon-chain/core/time" "github.com/prysmaticlabs/prysm/v3/beacon-chain/core/validators" @@ -23,13 +21,6 @@ import ( "github.com/prysmaticlabs/prysm/v3/proto/prysm/v1alpha1/attestation" ) -var ( - activationQueueCount = promauto.NewGauge(prometheus.GaugeOpts{ - Name: "activation_queue_count", - Help: "Number of validators in the activation queue", - }) -) - // sortableIndices implements the Sort interface to sort newly activated validator indices // by activation epoch and by index number. type sortableIndices struct { @@ -128,7 +119,6 @@ func ProcessRegistryUpdates(ctx context.Context, state state.BeaconState) (state activationQ = append(activationQ, types.ValidatorIndex(idx)) } } - activationQueueCount.Set(float64(len(activationQ))) sort.Sort(sortableIndices{indices: activationQ, validators: vals}) diff --git a/beacon-chain/core/validators/BUILD.bazel b/beacon-chain/core/validators/BUILD.bazel index f704629fe7..31b0c50703 100644 --- a/beacon-chain/core/validators/BUILD.bazel +++ b/beacon-chain/core/validators/BUILD.bazel @@ -18,8 +18,6 @@ go_library( "//proto/prysm/v1alpha1:go_default_library", "//time/slots:go_default_library", "@com_github_pkg_errors//:go_default_library", - "@com_github_prometheus_client_golang//prometheus:go_default_library", - "@com_github_prometheus_client_golang//prometheus/promauto:go_default_library", ], ) diff --git a/beacon-chain/core/validators/validator.go b/beacon-chain/core/validators/validator.go index 08f34c99e6..d24d17637a 100644 --- a/beacon-chain/core/validators/validator.go +++ b/beacon-chain/core/validators/validator.go @@ -8,8 +8,6 @@ import ( "context" "github.com/pkg/errors" - "github.com/prometheus/client_golang/prometheus" - "github.com/prometheus/client_golang/prometheus/promauto" "github.com/prysmaticlabs/prysm/v3/beacon-chain/core/helpers" "github.com/prysmaticlabs/prysm/v3/beacon-chain/core/time" "github.com/prysmaticlabs/prysm/v3/beacon-chain/state" @@ -20,13 +18,6 @@ import ( "github.com/prysmaticlabs/prysm/v3/time/slots" ) -var ( - exitQueueCount = promauto.NewGauge(prometheus.GaugeOpts{ - Name: "exit_queue_count", - Help: "Number of validators in the exit queue", - }) -) - // InitiateValidatorExit takes in validator index and updates // validator with correct voluntary exit parameters. // @@ -68,7 +59,6 @@ func InitiateValidatorExit(ctx context.Context, s state.BeaconState, idx types.V if err != nil { return nil, err } - exitQueueCount.Set(float64(len(exitEpochs))) exitEpochs = append(exitEpochs, helpers.ActivationExitEpoch(time.CurrentEpoch(s))) // Obtain the exit queue epoch as the maximum number in the exit epochs array.