Skip to content

feat(metrics): add Prometheus metrics support for beacon client - #1527

Draft
tosynthegeek wants to merge 3 commits into
ReamLabs:masterfrom
tosynthegeek:feat/bn-metrics
Draft

feat(metrics): add Prometheus metrics support for beacon client#1527
tosynthegeek wants to merge 3 commits into
ReamLabs:masterfrom
tosynthegeek:feat/bn-metrics

Conversation

@tosynthegeek

Copy link
Copy Markdown
Collaborator

What was wrong?

The beacon node had no Prometheus metrics, ream-metrics was wired into the lean client only, BeaconNodeConfig had no metrics flag, and there was no way to expose a /metrics endpoint. This blocked Kurtosis integration, since the ethereum-package config wires every CL participant's metrics port into a shared Prometheus/Grafana stack via Dora. See #1526.

How was it fixed?

  • Added a Prometheus metrics HTTP endpoint to the beacon node, with configurable address/port exposed via CLI flags.

  • Added beacon metrics into the beacon node's fork choice, gossipsub validation, engine API, networking, and KZG/DAS paths, implementing the beacon-metrics interop spec plus the PeerDAS gossip-verification, KZG-batch, reconstruction, and Fulu engine_getBlobsV2/V3 metrics.

  • Added beaconMetrics.json, a Grafana dashboard covering all wired metrics.

Some metrics have been added but not wired as there areno underlying implementation to hook into yet.

beacon_custody_groups_backfilled, beacon_partial_message_*, beacon_useful_full_columns_received_total,
beacon_fast_confirmation_*

To-Do

* Implement core beacon metrics (head slot, epochs, active validators, reorgs, deposits)

* Expose configurable metrics address and port in the beacon node CLI

* Integrate with Grafana dashboard via `beaconMetrics.json`

* Update ream_launcher.star + Kurtosis integration

Closes ReamLabs#1526
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant