fix missing metrics label on attetation fail (#4917)

Co-authored-by: garyschulteog <30323939+garyschulteog@users.noreply.github.com>
This commit is contained in:
garyschulte 2020-02-20 19:28:55 -08:00 committed by GitHub
parent 39aa791dcc
commit 597b21c40a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -83,7 +83,7 @@ func (v *validator) SubmitAggregateAndProof(ctx context.Context, slot uint64, pu
if err != nil {
log.Errorf("Could not submit slot signature to beacon node: %v", err)
if v.emitAccountMetrics {
validatorAggFailVec.WithLabelValues().Inc()
validatorAggFailVec.WithLabelValues(fmtKey).Inc()
}
return
}