From a52fe0648265d9779c6199108fe7a57faad811f7 Mon Sep 17 00:00:00 2001 From: Katya Ryazantseva Date: Tue, 17 Feb 2026 15:23:12 +0100 Subject: [PATCH 1/2] feat: Add Devnet-3 metrics --- metrics.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/metrics.md b/metrics.md index ef3510b..69fe822 100644 --- a/metrics.md +++ b/metrics.md @@ -42,6 +42,13 @@ |`lean_attestation_validation_time_seconds`| Histogram | Time taken to validate attestation | On validate attestation | | 0.005, 0.01, 0.025, 0.05, 0.1, 1 | ✅ | ✅ | ✅ | □ | | `lean_fork_choice_reorgs_total` | Counter | Total number of fork choice reorgs | On fork choice reorg | | | □ | □ | □ | □ | | `lean_fork_choice_reorg_depth` | Histogram | Depth of fork choice reorgs (in blocks) | On fork choice reorg | | 1, 2, 3, 5, 7, 10, 20, 30, 50, 100 | □ | □ | □ | □ | +| `lean_gossip_signatures_count` | Gauge | Current number of gossip signatures in fork-choice store | On gossip signatures update | | | □ | □ | □ | □ | +| `lean_latest_new_aggregated_payloads_count` | Gauge | Current number of new aggregated payloads | On new aggregated payloads update | | | □ | □ | □ | □ | +| `lean_latest_known_aggregated_payloads_count` | Gauge | Current number of known aggregated payloads | On known aggregated payloads update | | | □ | □ | □ | □ | +| `lean_committee_signatures_aggregation_time_seconds` | Histogram | Time taken to aggregate committee signatures | On committee signatures aggregation | | 0.005, 0.01, 0.025, 0.05, 0.1, 0.25, 0.5, 0.75, 1 | □ | □ | □ | □ | +|`lean_committee_aggregated_attestations_total`| Counter | total number of aggregated attestations produced by committee aggregation | On committee signatures aggregation | | | □ | □ | □ | □ | + + ## State Transition Metrics @@ -62,6 +69,7 @@ | Name | Type | Usage | Sample collection event | Labels | Lantern | Qlean | Ream | Zeam | |--------|-------|-------|-------------------------|--------|----------|----------|----------|----------| |`lean_validators_count`| Gauge | Number of validators managed by a node | On scrape | | ✅ | ✅ | ✅ | ✅ | +|`lean_is_aggregator`| Gauge | Validator's `is_aggregator` status. True=1, False=0 | On change `is_aggregator` | | □ | □ | □ | □ | ## Network Metrics @@ -69,4 +77,6 @@ |--------|-------|-------|-------------------------|--------|----------|----------|----------|----------| |`lean_connected_peers`| Gauge | Number of connected peers | On scrape | client=lantern,qlean,ream,zeam | □ | 📝 | ✅ | □ | |`lean_peer_connection_events_total`| Counter | Total number of peer connection events | On peer connection | direction=inbound,outbound
result=success,timeout,error | □ | □ | 📝 | □ | -|`lean_peer_disconnection_events_total`| Counter | Total number of peer disconnection events | On peer disconnection | direction=inbound,outbound
reason=timeout,remote_close,local_close,error | □ | □ | 📝 | □ | \ No newline at end of file +|`lean_peer_disconnection_events_total`| Counter | Total number of peer disconnection events | On peer disconnection | direction=inbound,outbound
reason=timeout,remote_close,local_close,error | □ | □ | 📝 | □ | +|`lean_committee_attestation_subnet`| Gauge | Current commitee's attestation subnet | On node start | | □ | □ | □ | □ | +|`lean_committee_attestation_subnets_count`| Gauge | Number of commitee's attestation subnets, `ATTESTATION_COMMITTEE_COUNT` | On node start | | □ | □ | □ | □ | \ No newline at end of file From 6c6fac193e06e0456f97bb23bbde5a51f2d32219 Mon Sep 17 00:00:00 2001 From: Katya Ryazantseva Date: Tue, 17 Feb 2026 15:50:19 +0100 Subject: [PATCH 2/2] feat: add individual signatures metrics --- metrics.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/metrics.md b/metrics.md index 69fe822..317fda5 100644 --- a/metrics.md +++ b/metrics.md @@ -22,12 +22,15 @@ |--------|-------|-------|-------------------------|--------|---------|----------|----------|----------|----------| | `lean_pq_sig_attestation_signing_time_seconds` | Histogram | Time taken to sign an attestation | On each attestation signing | | 0.005, 0.01, 0.025, 0.05, 0.1, 1 | □ | □ | ✅ | □ | | `lean_pq_sig_attestation_verification_time_seconds` | Histogram | Time taken to verify an attestation signature | On each `signature.verify()` on an attestation | | 0.005, 0.01, 0.025, 0.05, 0.1, 1 | □ | □ | ✅ | □ | -| `lean_pq_sig_aggregated_signatures_total` | Counter | Total number of aggregated signatures | On `build_attestation_signatures()` | | 0.005, 0.01, 0.025, 0.05, 0.1, 1 | □ | □ | □ | □ | | `lean_pq_sig_attestations_in_aggregated_signatures_total` | Counter | Total number of attestations included into aggregated signatures | On `build_attestation_signatures()` | | 0.005, 0.01, 0.025, 0.05, 0.1, 1 | □ | □ | □ | □ | | `lean_pq_sig_attestation_signatures_building_time_seconds` | Histogram | Time taken to verify an aggregated attestation signature | On `build_attestation_signatures()` | | 0.005, 0.01, 0.025, 0.05, 0.1, 1 | □ | □ | □ | □ | | `lean_pq_sig_aggregated_signatures_verification_time_seconds` | Histogram | Time taken to verify an aggregated attestation signature | On validate aggregated signature | | 0.005, 0.01, 0.025, 0.05, 0.1, 1 | □ | □ | □ | □ | +| `lean_pq_sig_aggregated_signatures_total` | Counter | Total number of aggregated signatures | On `build_attestation_signatures()` | | | □ | □ | □ | □ | | `lean_pq_sig_aggregated_signatures_valid_total`| Counter | Total number of valid aggregated signatures | On validate aggregated signature | | | □ | □ | □ | □ | | `lean_pq_sig_aggregated_signatures_invalid_total`| Counter | Total number of invalid aggregated signatures | On validate aggregated signature | | | □ | □ | □ | □ | +| `lean_pq_sig_individual_signatures_total` | Counter | Total number of individual attestation signatures | On gossip attestation | | | □ | □ | □ | □ | +| `lean_pq_sig_individual_signatures_valid_total`| Counter | Total number of valid individual attestation signatures | On gossip attestation | | | □ | □ | □ | □ | +| `lean_pq_sig_individual_signatures_invalid_total`| Counter | Total number of invalid individual attestation signatures | On gossip attestation | | | □ | □ | □ | □ | ## Fork-Choice Metrics