agentsclimarketplace

Obol monitoring

Skill ObolNetwork/skills/skills/obol-monitoring

Monitor and diagnose Obol DVT cluster performance using their hosted Grafana (Prometheus metrics + Loki logs)From its SKILL.md

Install
npx -y skills add ObolNetwork/skills --skill obol-monitoring

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

18.0 KB, as published. Nobody here has run it

Obol Cluster Monitoring

Diagnose health issues, duty failures, and performance issues and opportunities across Obol Distributed Validator Technology (DVT) clusters using Grafana datasources (Prometheus for metrics, Loki for logs).

Product Context

What is Charon?

Charon is distributed validator middleware for Ethereum proof-of-stake. A cluster of 4-7 independent nodes each run Charon to coordinate threshold BLS signing for shared validators. If a threshold t of n nodes agree on duty data and sign it, the duty succeeds. Typical configurations: 3-of-4 (fault tolerance 1) or 5-of-7 (fault tolerance 2).

Deployment Topology

Each node in a cluster runs:

  • Execution Client (EL) — Nethermind, Geth, Besu, Erigon (ports 8545/8551)
  • Beacon Node (CL) — Lighthouse, Teku, Prysm, Nimbus, Lodestar, Grandine (port 5052, metrics 5054)
  • Charon — DV middleware (P2P port 3610, monitoring/metrics 3620, validator API 3600)
  • Validator Client (VC) — Lighthouse, Teku, Prysm, Nimbus, Lodestar (connects to Charon's 3600, NOT directly to BN)
  • MEV-boost (optional) — MEV relay selection (port 18550)

Deployed via docker-compose from CDVN or LCDVN repos.

Duty Workflow Pipeline

Every validator duty flows through these stages. A failure at any stage produces a specific reason code:

Scheduler → Fetcher → Consensus (QBFT) → DutyDB → ValidatorAPI → ParSigDB → ParSigEx → SigAgg → AggSigDB → Broadcast
  • Scheduler: Triggers duties at the correct time based on beacon chain state
  • Fetcher: Gets unsigned duty data from the beacon node API
  • Consensus: QBFT (Istanbul BFT) ensures all nodes agree on the same data to sign
  • DutyDB: Stores agreed-upon data, acts as slashing protection
  • ValidatorAPI: Serves data to the VC, receives partial signatures back
  • ParSigDB/ParSigEx: Stores and exchanges partial threshold BLS signatures between peers
  • SigAgg: Aggregates partial signatures when threshold is reached
  • Broadcast: Submits the final aggregated signature to the beacon node

Duty Types & Economic Impact

Duty TypeTimingEconomic ImpactNotes
proposerSlot start (T+0)High — missed block rewardRare but high-value
attesterT + slot_duration/3 (~T+4s)Medium — missed attestation reward + inactivity penaltyMost common duty
sync_message / sync_contributionVariousLow — small sync committee rewardsOnly for validators in sync committee
aggregator / prepare_aggregatorT + 2*slot_duration/3 (~T+8s)None — no direct economic reward or penaltyNon-economic, deprioritize

Slot timing: 12 seconds per slot, 32 slots per epoch (6.4 minutes).

Environment

Set the Grafana API token:

export OBOL_GRAFANA_API_TOKEN="glsa_..."

Scripts

cluster_triage.py — First-Pass Health Check

python3 ${CLAUDE_SKILL_DIR}/scripts/cluster_triage.py "Cluster Name" [--network mainnet] [--hours 1]

Outputs JSON with: cluster config, health status (readyz), versions, consensus performance, per-peer participation rates, duty failure reasons, P2P connectivity, beacon node health, balance summary, and log availability.

duty_analysis.py — Slot-Level Deep Dive

python3 ${CLAUDE_SKILL_DIR}/scripts/duty_analysis.py "Cluster Name" 13867535 [--duty attester] [--network mainnet]

Reconstructs a chronological timeline of consensus events for a specific slot from Loki logs. Shows per-peer: when consensus started, when pre-prepares arrived, round changes, BN call timings, and the final outcome.

fleet_overview.py — Multi-Cluster Fleet View

python3 ${CLAUDE_SKILL_DIR}/scripts/fleet_overview.py [--network mainnet] [--hours 1]

Aggregates across all clusters: version distribution, BN/VC client diversity, failure rates by reason, worst-performing clusters, and Loki log coverage.

Manual Queries (if scripts unavailable)

If the agent cannot execute scripts, use these Prometheus queries directly via the Grafana API:

Cluster health: app_monitoring_readyz{cluster_name="X",cluster_network="mainnet"}

  • Values: 1=ready, 2=BN down, 3=BN syncing, 4=insufficient peers, 5=VC not connected, 7=BN zero peers, 8=BN far behind

Attester failure rate: sum(rate(core_tracker_failed_duties_total{cluster_name="X",duty="attester"}[1h])) / sum(rate(core_tracker_expect_duties_total{cluster_name="X",duty="attester"}[1h]))

Per-peer participation: sum(rate(core_tracker_participation_missed_total{cluster_name="X",duty="attester"}[1h])) by (cluster_peer, peer) * 3600

Failure reasons: sum(rate(core_tracker_failed_duty_reasons_total{cluster_name="X"}[1h])) by (duty, reason) * 3600

Consensus timeouts: sum(rate(core_consensus_timeout_total{cluster_name="X",duty="attester"}[1h])) by (cluster_peer) * 3600

Triage Workflow

When a user reports a cluster issue, follow this sequence:

Step 1: Identify the Cluster

Get the cluster name and network (default: mainnet). Run cluster_triage.py.

Step 2: Check Readyz

If any peer has readyz != 1, that's the first thing to report:

  • 2: Beacon node is down — check BN container/process
  • 3: Beacon node is syncing — wait for sync to complete
  • 4: Quorum peers not connected — check P2P connectivity, firewall, relay URLs
  • 5: Validator client not connected — check VC is running and pointed at Charon port 3600
  • 7: Beacon node has zero peers — BN is network-isolated, check BN P2P config
  • 8: Beacon node is far behind (>320 slots) — BN needs time to sync or has resource issues

Step 3: Check Consensus Performance

Compare attester timeout rate to decision rate. If timeout / (timeout + decisions) > 5%, the cluster has a consensus problem. Check:

  • Which peers have the highest timeout rates (per-peer breakdown)
  • What round decisions happen in (round > 1 means round 1 leader was slow)
  • Consensus duration p99 (should be <2s for attester)

Step 4: Identify Struggling Peers

Look at per-peer participation rates. The peer with the lowest success rate is likely the bottleneck. Common causes:

  • High BN latency (check app_eth2_latency_seconds for attestation_data endpoint) — Teku BNs have ~170ms median, Lighthouse ~5ms
  • Low BN peer count (check app_beacon_node_peers) — low count means blocks arrive late
  • Old charon version — check versions, recommend latest stable
  • Relay-only connections (no direct P2P) — higher latency, check firewall rules

Step 5: Map Failure Reasons to Fixes

Use the failure reason reference below to provide actionable guidance.

Step 6: Deep Dive if Needed

If the issue is intermittent or slot-specific, use duty_analysis.py for a specific failing slot to reconstruct the timeline.

Failure Reason Code Reference

Beacon Node Issues

CodeWhat BrokeWhat To Do
fetch_bn_errorBN API call failed during fetchCheck BN health, syncing status, connectivity. Check app_monitoring_readyz.
broadcast_bn_errorBN rejected the broadcast submissionCheck BN logs, version compatibility, disk space.
not_included_onchainDuty was broadcast but not included on-chainCheck broadcast delay via core_bcast_broadcast_delay_seconds. Investigate BN network health and relay connectivity.

Consensus / P2P Issues

CodeWhat BrokeWhat To Do
no_consensusQBFT consensus didn't completeCheck peer connectivity (p2p_ping_success), P2P latency, firewall rules. If one cluster: likely a slow/offline peer. If many clusters: likely a relay issue.

Local Validator Client Issues

CodeWhat BrokeWhat To Do
no_local_vc_signatureVC didn't submit a partial signatureCheck VC is running, connected to Charon port 3600, keys loaded correctly. Check VC logs.

Peer Signature Issues

CodeWhat BrokeWhat To Do
no_peer_signaturesNo signatures received from any peerAll peers offline or complete P2P failure. Check relay URLs, firewall.
insufficient_peer_signaturesSome but not enough signatures for thresholdIdentify which peers are missing via core_tracker_participation_missed_total.

Proposer Dependency Chain (block proposal failed because RANDAO failed)

CodeWhat BrokeWhat To Do
failed_proposer_randaoPrerequisite RANDAO duty failedFix the RANDAO failure first — likely peer connectivity issue.
proposer_insufficient_randaosNot enough partial RANDAO signaturesSome VCs didn't sign RANDAO. Check VC connectivity.
proposer_zero_randaosZero RANDAO signatures from local VCsLocal VC not signing. Check VC health.
proposer_no_external_randaosNo RANDAO signatures from peersP2P exchange failed. Check peer connectivity.

Aggregator Dependency Chain (non-economic, lower priority)

CodeWhat BrokeWhat To Do
failed_aggregator_selectionPrepare aggregator duty failedNon-economic. Check if underlying attester duty also failed.
insufficient_aggregator_selectionsNot enough partial beacon committee selectionsNon-economic. VC connectivity issue.
zero_aggregator_preparesZero selections from local VCsNon-economic. VC not participating.
no_aggregator_selectionsNo selections received from peersNon-economic. P2P exchange issue.
missing_aggregator_attestationAttestation data unavailable for aggregationThe underlying attester duty failed. Fix attester first.

Sync Committee Issues

CodeWhat BrokeWhat To Do
sync_contribution_no_sync_msgPrerequisite sync message duty failedCheck sync message consensus.
sync_contribution_few_preparesInsufficient sync contribution selectionsVC connectivity.
sync_contribution_zero_preparesZero sync contribution selectionsVC not participating.
sync_contribution_failed_preparePrepare sync contribution failedCheck underlying duty.
sync_contribution_no_external_preparesNo selections from peersP2P exchange.
par_sig_db_inconsistent_syncInconsistent sync committee signaturesKnown limitation — expected in current versions. Not a bug.

Software Bugs (report to Obol)

CodeWhat BrokeWhat To Do
bug_fetch_errorUnexpected fetch errorReport to Obol with version, cluster name, slot.
bug_par_sig_db_inconsistentInconsistent partial signatures (non-sync)Report to Obol.
bug_par_sig_db_externalFailed to store external signaturesReport to Obol.
bug_par_sig_db_internalParSigDB didn't trigger exchangeReport to Obol. May occur due to expiry race.
bug_sig_aggBLS threshold aggregation failedReport to Obol. Inconsistent signed data.
bug_aggregation_errorFailed to store aggregated signatureReport to Obol.
bug_duty_db_errorFailed to store in DutyDBReport to Obol.

Key Metrics Reference

Health & Readiness

  • app_monitoring_readyz — Operational status. Values 1-8 (see Step 2 above).

Duty Success Tracking

  • core_tracker_expect_duties_total{duty="..."} — Total expected duties
  • core_tracker_success_duties_total{duty="..."} — Successfully completed
  • core_tracker_failed_duties_total{duty="..."} — Failed duties
  • core_tracker_failed_duty_reasons_total{duty="...",reason="..."} — By reason code

Per-Peer Participation

  • core_tracker_participation_total{duty="...",peer="..."} — Peer participated
  • core_tracker_participation_missed_total{duty="...",peer="..."} — Peer missed
  • This is the single most useful metric for identifying which peer is the bottleneck.

Consensus

  • core_consensus_timeout_total{duty="...",timer="..."} — Consensus failures (the duty timed out entirely)
  • core_consensus_decided_rounds{duty="..."} — Rounds needed to decide (1 is ideal)
  • core_consensus_duration_seconds{duty="..."} — Time to reach consensus
  • Timer type eager_dlinear = EagerDoubleLinear (default). Round N budget = N seconds from duty start time.

Beacon Node Performance

  • app_eth2_latency_seconds{endpoint="..."} — BN API latency. Key: attestation_data (should be <50ms for Lighthouse, ~170ms for Teku)
  • app_beacon_node_peers — BN's own peer count. <50 is concerning.
  • app_beacon_node_version{version="..."} — BN software version.
  • app_eth2_errors_total{endpoint="..."} — BN API errors by endpoint.

P2P Connectivity

  • p2p_ping_latency_secs{peer="..."} — Latency per peer. <100ms good, >500ms problematic.
  • p2p_ping_success{peer="..."} — 1=connected, 0=not. Best proxy for live connectivity.
  • p2p_peer_connection_types{peer="...",type="...",protocol="..."} — direct (good) or relay (higher latency).

Versions & Configuration

  • app_version{version="..."} — Charon version per peer.
  • core_validatorapi_vc_user_agent{user_agent="..."} — VC client. Missing UA = likely Lighthouse VC.
  • cluster_operators — Authoritative cluster size (from lock file). Use this, NOT count of reporting peers.
  • cluster_threshold — Minimum signatures needed.
  • cluster_validators — Number of validators in cluster.
  • app_feature_flags{feature_flags="..."} — Custom-enabled features. Absence does NOT mean feature is off — stable features (EagerDoubleLinear, ConsensusParticipate, ProposalTimeout, FetchOnlyCommIdx0) are on by default without this metric.

Balance

  • core_scheduler_validator_balance_gwei{pubkey="...",pubkey_full="..."} — Per-validator balance in gwei.
  • Gotcha: All peers report the same pubkey balances. To get cluster total: sum across unique pubkeys from ONE peer, divide by 1e9 for ETH. Do NOT sum across peers.

Broadcast

  • core_bcast_broadcast_total{duty="..."} — Successful broadcasts per duty type.
  • core_bcast_broadcast_delay_seconds{duty="..."} — Delay from slot start to broadcast.

Loki Log Patterns

Base selector: {cluster_name="X",cluster_network="mainnet"}

Timestamp handling: Always parse the embedded ts= field (e.g., ts=2026-03-09T20:53:59.123Z). Loki receipt timestamps can skew 1-2 seconds due to batching. The ts= field is the application-level timestamp.

Log presence detection: Use the Loki /series endpoint with match[]={cluster_name="X"} to check which peers send logs. Do NOT rely on query_range with limit=1.

Key Search Patterns

EventLogQL filter
Slot start|= "Slot ticked"
Consensus start|= "QBFT consensus instance starting"
Pre-prepare received|= "QBFT upon rule triggered"
Round change|= "QBFT round changed"
Consensus decided|= "QBFT consensus decided"
Consensus timeout|= "consensus timeout"
BN call finished|= "Beacon node call finished"
Slow BN call|= "Beacon node call took longer"
Duplicate signatures|= "Ignoring duplicate partial signature"
Signature aggregated|= "Successfully aggregated partial signatures"
Attestation submitted|= "Successfully submitted v2 attestations"

Known Issues & Client Characteristics

BN Client Latency Profiles

Clientattestation_data p50Notes
Lighthouse~5msFast, most common
Teku~170msSignificantly slower, can cause round 1 misses in tight clusters
Prysm~5msFast
Nimbus~5-10msGenerally fast
Lodestar~5msFast
Grandine~5msFast

Consensus Timer Budgets (EagerDoubleLinear, default)

  • Timer uses absolute deadlines based on slot start time
  • Round N has N seconds from duty start time
  • When leader's pre-prepare is received, timer doubles (gives 2N seconds total)
  • Attester duty start = slot_start + 4s, so round 1 deadline = slot_start + 5s, doubled = slot_start + 6s
  • If all peers have fast BNs and good P2P, consensus decides in round 1 within ~100ms

Version Notes

  • Always recommend the latest stable release
  • Pre-v1.9.2: Loki client used an unbuffered channel. Under high log volume, this could stall consensus goroutines and cause timeouts. Upgrade to v1.9.2+ resolves this.
  • Check app_log_loki_dropped_total metric — if non-zero, the Loki buffer is overflowing (better than blocking, but indicates high log volume)

Common Gotchas

  1. Cluster size: Use cluster_operators metric, NOT count of observed peers. Some nodes don't send metrics.
  2. Unknown peers: cluster_operators - observed peers = unknown/offline nodes. Report them explicitly.
  3. Aggregator failures are non-economic: Don't alarm on high aggregator timeout rates. Focus on attester and proposer.
  4. VC user agent missing: Lighthouse VC doesn't send a user-agent header. Infer from absence.
  5. Feature flags absent from metrics: Stable features default on. Only custom-enabled features appear in app_feature_flags.
  6. not_included_onchain: Investigate — check broadcast delay metrics and BN connectivity.
  7. Balance deduplication: All peers report the same validator balances. Sum pubkeys from one peer only.
  8. Loki timestamps: Use embedded ts= field, not Loki receipt timestamp (can skew 1-2s).

External References

Keep looking

Skills are one crate of 607,533. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.