Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add beacon node count metrics #6371

Merged
merged 1 commit into from
Jul 6, 2024

Conversation

jhett12321
Copy link
Contributor

The validator client provides a useful summary of beacon node health in the slot start log entries.

image

This PR exposes these node count values as a new validator metric, so they can be used as potential health checks.

# HELP validator_client_node_counts Number of connected beacon nodes and their status
# TYPE validator_client_node_counts gauge
validator_client_node_counts{status="bad"} 0.0
validator_client_node_counts_created{status="bad"} 1718820863.0
validator_client_node_counts{status="good"} 2.0
validator_client_node_counts_created{status="good"} 1718820863.0
validator_client_node_counts{status="viable"} 0.0
validator_client_node_counts_created{status="viable"} 1718820863.0

Copy link

Unit Test Results

         9 files  ±0    1 328 suites  ±0   32m 52s ⏱️ -51s
  4 998 tests ±0    4 650 ✔️ ±0  348 💤 ±0  0 ±0 
20 850 runs  ±0  20 446 ✔️ ±0  404 💤 ±0  0 ±0 

Results for commit 242d6fe. ± Comparison against base commit f30f670.

@tersec tersec merged commit 3f051e9 into status-im:unstable Jul 6, 2024
10 checks passed
@jhett12321 jhett12321 deleted the node-counts-metrics branch July 9, 2024 20:01
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.

2 participants