fix(p2p): populate relay_connections, gate ping metrics to cluster peers - #576
fix(p2p): populate relay_connections, gate ping metrics to cluster peers#576iamquang95 wants to merge 1 commit into
Conversation
|
Claude finished @emlautarom1's task in 4m 28s —— View job Review — PR #576
Both fixes are correct and match the Go source. I verified the cited Charon references directly:
Nice catch that this also un-breaks CI is green on this branch (7/7). I could not run FindingsAll of these are non-blocking. 1. Pre-existing, not introduced here, but it undercuts the same health check this PR is fixing. 2. Related parity gap: no series at all for a never-connected cluster peer Charon emits 3.
4. The extracted helper switches from the old explicit 5. The E2E test can't distinguish "gated" from "ping metrics entirely broken" — The client is built with 6. Minor flakiness surface in the same test The loop waits for both Nits
Overall: LGTM. The Charon parity is verified, the state-machine coverage in |
Two
p2pmetric fixes for the Grafana dashboard:p2p_ping_latency_secs/ping_success/ping_error_totalwere emitted for every pinged peer, so the relay server appeared as a phantom cluster peer onmax(p2p_ping_success) by (peer). All three are now gated to known cluster peers (Charon'sClusterPeerIDsallowlist).p2p_relay_connectionshad no writer. It is now set fromRelayManager—1while a reservation is held,0otherwise.