Open niklasad1 opened 1 year ago
Hey, is anyone still working on this? Due to the inactivity this issue has been automatically marked as stale. It will be closed if no further activity occurs. Thank you for your contributions.
Wasn't there somewhere a discussion around this RPC? And that people should just prometheus to do this? If we want this pr, we should put it into the spec.
This is not a JSON RPC API and therefore don't belong to the new JSON RPC API spec.
I don't think we have another HTTP requests spec, which will only contain /health
and this
The CI pipeline was cancelled due to failure one of the required jobs. Job name: cargo-check-benches Logs: https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/3298764
Yeah, I agree with @xlc that this isn't strictly related to the RPC API but it was so simple to add it to the JSON-RPC server as system_health
already has the data which makes it trivial to implement.
Whether these health
and readiness
APIs should be on the RPC server or prometheus server is worth discussing though
EDIT: The new RPC spec will remove the system_health API, so maybe doing it on top of number of peers is the way forward..
bot rebase
Rebased
Close #1017
Ideally, we should move
/health
and/health/readiness
to the prometheus server but because it's was quite easy to implement on the RPC server and that RPC server already exposes/health
.Manual tests on a polkadot node syncing: