-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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 healthy block period checking endpoint #2294
Conversation
Pull Request Test Coverage Report for Build 975dacfc-118a-4ded-8288-0c5e2a987f39
💛 - Coveralls |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, I only left a refactoring suggestion
apps/block_scout_web/lib/block_scout_web/controllers/api/v1/health_controller.ex
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The idea here #2272 was to create a single endpoint to check the healthiness of Blockscout. Checking of stuck blocks #2273 is the first component of this endpoint. We will extend this endpoint in the future with the new metrics. Basically, this endpoint should be bind to:
curl http://localhost:4000/api/v1/health
@vbaranov I made changes according to your comment |
Resolves #2273
Changelog