fix non-totalized validator metric (#3297)

...when running on host with many validators, this explodes
This commit is contained in:
Jacek Sieka 2022-01-19 15:20:48 +01:00 committed by GitHub
parent 717147f021
commit e4939538cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -584,8 +584,8 @@ proc registerAttestationInBlock*(
inclusion_lag = (blck.slot - data.slot) - MIN_ATTESTATION_INCLUSION_DELAY
epoch = data.slot.epoch
validator_monitor_attestation_in_block_total.inc(1, ["block", id])
validator_monitor_attestation_in_block_delay_slots.set(inclusion_lag.int64, ["block", id])
validator_monitor_attestation_in_block_total.inc(1, ["block", metricId])
validator_monitor_attestation_in_block_delay_slots.set(inclusion_lag.int64, ["block", metricId])
info "Attestation included in block",
attestation_data = shortLog(data),
@ -682,7 +682,7 @@ proc registerSyncAggregateInBlock*(
pubkey: ValidatorPubKey) =
self.withMonitor(pubkey):
let id = monitor.id
validator_monitor_sync_committee_message_in_block_total.inc(1, ["block", id])
validator_monitor_sync_committee_message_in_block_total.inc(1, ["block", metricId])
info "Sync signature included in block",
head = beacon_block_root, slot = slot, validator = id