You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
lean_attestation_aggregate_coverage_validators is defined with a subnet label, but only the subnet=combined total is ever emitted. The per-subnet breakdown (subnet=subnet_N) is reserved in the metric definition and not yet populated.
See the TODO in crates/blockchain/src/coverage.rs in cov_record, where set_attestation_aggregate_coverage_validators(section, "combined", ...) is called.
What's needed
cov_record already computes has_subnet (a per-subnet occupancy bitmap derived from vid % committee_count), but only reports the aggregate count. To populate the per-subnet series, emit one set_attestation_aggregate_coverage_validators(section, "subnet_<i>", count_i) per subnet alongside the existing subnet=combined total.
Notes
Watch label cardinality: series = sections × (subnets + 1). Bounded by ATTESTATION_COMMITTEE_COUNT, so it stays small, but worth confirming.
Docs already flag this gap in docs/metrics.md (Attestation Aggregate Coverage section).
changed the title [-]metrics: emit per-subnet breakdown for attestation aggregate coverage[/-][+]Emit per-subnet attestation aggregate coverage[/+]on May 28, 2026
Activity
chore: link per-subnet coverage TODO to tracking issue #398
[-]metrics: emit per-subnet breakdown for attestation aggregate coverage[/-][+]Emit per-subnet attestation aggregate coverage[/+]conache commentedon May 28, 2026
@MegaRedHand I would love to take a look on this issue! Could you assign it to me?
MegaRedHand commentedon May 29, 2026
Sure! Go ahead!
Add per-subnet attestation aggreagte count coverage to metrics (#406)