Repository navigation
app: add addr label to beacon node version - #4847
Merged
Merged
Conversation
… label Adds app_eth2_bn_requests_total, app_eth2_bn_errors_total and app_eth2_bn_first_total with endpoint and addr labels, recorded per beacon node inside provide, and an addr label on app_beacon_node_version. eth2wrap.BeaconNodeLabel keeps only scheme://host[:port], truncates to 64 characters, suffixes collisions with #n and caps distinct values at 16 (then "other"). The SSE listener uses it for its existing addr label so values join across metrics. Existing app_eth2_* metrics are unchanged. category: feature ticket: none
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4847 +/- ##
=======================================
Coverage 67.84% 67.84%
=======================================
Files 255 255
Lines 33846 33846
=======================================
+ Hits 22963 22964 +1
+ Misses 10882 10881 -1
Partials 1 1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
KaloyanTanev
approved these changes
Nov 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Adds an
addrlabel toapp_beacon_node_version. Its value is the redacted beacon node address that the SSE metrics already use for theiraddrlabel.The SSE metrics already measure each beacon node separately, labelled by
addr:app_beacon_node_sse_head_delayapp_beacon_node_sse_block_processing_timeThe version gauge only has
beacon_id, the beacon node's libp2p peer ID, which the SSE metrics don't carry. So when a node has several beacon nodes, there's no way to tell which client is the slow one without matching log lines to addresses by hand. Withaddron both, one query does it:The label uses
log.RedactURL(addr, true), so values and redaction are exactly the same as the existing SSE labels. Cardinality is bounded by the configured--beacon-node-endpoints.category: feature
ticket: none