From ec60cab2bf0f64c8f0ee707db1b1ca3a9329dfd5 Mon Sep 17 00:00:00 2001 From: james-prysm <90280386+james-prysm@users.noreply.github.com> Date: Wed, 26 Jul 2023 11:09:24 -0500 Subject: [PATCH] Bugfix: Metrics adding fix pending validators balance (#12665) --- validator/client/metrics.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/validator/client/metrics.go b/validator/client/metrics.go index f1db1971d..5c63f0aa9 100644 --- a/validator/client/metrics.go +++ b/validator/client/metrics.go @@ -246,7 +246,7 @@ func (v *validator) LogValidatorGainsAndLosses(ctx context.Context, slot primiti if v.emitAccountMetrics { for _, missingPubKey := range resp.MissingValidators { fmtKey := fmt.Sprintf("%#x", missingPubKey) - ValidatorBalancesGaugeVec.WithLabelValues(fmtKey).Set(float64(params.BeaconConfig().MaxEffectiveBalance)) + ValidatorBalancesGaugeVec.WithLabelValues(fmtKey).Set(float64(params.BeaconConfig().MaxEffectiveBalance) / float64(params.BeaconConfig().GweiPerEth)) } }