add block time to crypto api #134
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds a new health check endpoint to monitor the synchronization status of each cryptocurrency on the server. This endpoint is designed for alerting systems to detect when blockchain sync has stopped for an extended period.
Motivation
While the existing /metrics endpoint provides monitoring capabilities, it has some limitations:
The Prometheus format is difficult to parse for custom alerting scripts
The endpoint occasionally returns 500 errors with raw error text, making automated monitoring unreliable
Due to difficulties in setting up a complete testing environment, this PR has not been fully tested. I would appreciate code review and testing from maintainers before merging.
Please feel free to suggest any changes or improvements. Thank you for your consideration.