Remove activation/exit queue metrics (#11389)

* Remove activation/exit queue metrics

* Gaz

* Rm unused vars

Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
This commit is contained in:
terencechain 2022-09-01 12:11:25 -07:00 committed by GitHub
parent 65bf3d0fa8
commit 8627fe72e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 0 additions and 24 deletions

View File

@ -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",
],
)

View File

@ -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})

View File

@ -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",
],
)

View File

@ -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.