Repository navigation
Conversation
|
any reasons why these info cannot exposed in |
|
I did consider exposing this via Uptime is a runtime value that may be polled frequently, and putting it under Keeping runtime status lightweight and separate felt cleaner, but I’m happy to |
|
first off, the secondly, the goal of an API (application programming interface) is not to be readable, otherwise it should be called Human Interface. there are already
grafana and |
|
Thanks for the detailed feedback — that makes sense. I agree that My intent was mainly to expose a lightweight runtime signal (uptime / online I’m happy to adapt this in whatever direction maintainers prefer — whether that |
This PR adds a lightweight
/v1/metricsendpoint that exposes basic serverstatus information in JSON format.
The endpoint reports:
The existing
/metricsendpoint remains unchanged and continues to providePrometheus-format performance metrics. The new endpoint is intended for
human-readable status checks and operational debugging, similar in spirit to
/v1/health, but with uptime information included.Changes are limited to
tools/server/and do not affect inference or requesthandling paths.