Skip to content

Added support for getHealth method, introducing solana_is_healthy, so… #33

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

Conversation

GranderStark
Copy link
Contributor

@GranderStark GranderStark commented Oct 3, 2024

…lana_num_slots_behind

Added support for getHealth rpc method. Introduced solana_is_healthy and solana_num_slots_behind metrics

TBD:

  • tests
  • merge file gethealth.go with client.go

Copy link
Contributor

@SEJeff SEJeff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

getHelth

getHelth

We'd like to get a few refactors (especially #34) in and then accept this. It might require a few small updates stylistically that @johnstonematt is working on.

@SEJeff SEJeff mentioned this pull request Oct 16, 2024
@johnstonematt
Copy link
Contributor

Thinking here, wouldn't it make more sense to add the health-check to the exporter.go section, i.e., to SolanaCollector.Collect(), and let prometheus automatically handle collecting it?

@GranderStark GranderStark force-pushed the feature/add_get_health_num_slots_behind branch from ba35a23 to 0a0782b Compare October 18, 2024 09:17
@johnstonematt johnstonematt changed the base branch from master to get-health October 18, 2024 09:22
@johnstonematt johnstonematt merged commit 2db8436 into asymmetric-research:get-health Oct 18, 2024
1 of 2 checks passed
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.

3 participants