Skip to content

Health endpoint not documented and returns empty result - could return something like "READY" or "INITIALIZING" #943

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

Open
Nachtfalkeaw opened this issue May 2, 2025 · 2 comments

Comments

@Nachtfalkeaw
Copy link

Hello,

the configuration explains that there exists an endpoint. However I did not find the exact page and tried with /health /state /status until I foud /ready
However the result is empty - I would expect something like

  • ready
  • starting
  • stopping
    or whatever

config:

health:
  address: 127.0.0.1
  port: 8888

Result:

[root@u999fmlab001l flp]# curl 127.0.0.1:8888/ready
{}
[root@u999fmlab001l flp]#
@jotak
Copy link
Member

jotak commented May 5, 2025

Yeah that's undocumented and honestly I'm not sure you'll get a lot from these endpoints, they have been implemented but mostly unused.
We use actually heptiolabs/healthcheck library: https://github.com/vmware-archive/healthcheck?tab=readme-ov-file#http-endpoints

So you can query /ready like you did, or /live.
By default, only the HTTP status code is returned by the probe, so use curl -i for instance. Or use /ready?full=1 to get the json content

@Nachtfalkeaw
Copy link
Author

I was more confused that I have to Set to Open Ports, one for metrics and the other for health Check. Not Sure If Prometheus öfters a health Check Endpoint, too and the other config can be removed.

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

No branches or pull requests

2 participants