Skip to content
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

Is there /health check for this REST API? #24

Closed
muhyilmaz opened this issue Jul 6, 2023 · 2 comments
Closed

Is there /health check for this REST API? #24

muhyilmaz opened this issue Jul 6, 2023 · 2 comments

Comments

@muhyilmaz
Copy link

I want to check this rest api with /health get query. Can we do?

@kdejaeger
Copy link

There seems to be a /health and /version endpoint.

@arizon-dread
Copy link
Collaborator

You can use either the / or the /version as health endpoints (if you just want to check if it's up, like for Kubernetes liveness probe)

sample output:

curl http://localhost:9000/
{"Pools":"1","State":"STATE: VALID PRIMARY","Threads":"THREADS: live 1  idle 0 max 10 idle-timeout 30","Memstats":"MEMSTATS: heap N/A mmap N/A used N/A free N/A releasable N/A pools 1 pools_used 1367.780M pools_total 1367.827M","Queue":"QUEUE: 0 items"}
...
curl http://localhost:9000/version
{ "Clamav": "1.4.1", "Signature": "27494" , "Signature_date": "Sat Dec 21 10:37:14 2024" }

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

3 participants