mercure icon indicating copy to clipboard operation
mercure copied to clipboard

feat: Add a health check endpoint

Open Xusifob opened this issue 1 year ago • 3 comments

Hello everyone;

I am currently using a mercure server on AWS and would like to add a health check so that if the server does not reply it can be shut down and rebuilt automatically.

I can not use the /.well-known/mercure endpoint as I am using authentification to access the topics.

Would it be possible to access a /.well-known/health_check that returns a HTTP 200 with some information about the server's health.

Xusifob avatar Sep 11 '23 08:09 Xusifob

👋 I think it's missing in the documentation, but there is already an healthcheck endpoint on /healthz which returns an empty HTTP 200.

cvergne avatar Sep 12 '23 09:09 cvergne

Thanks for the reply

Is there a repository with documentation so I can update it ? I did not find any

Xusifob avatar Sep 13 '23 10:09 Xusifob

The documentation is in this repo: https://github.com/dunglas/mercure/tree/main/docs

dunglas avatar Sep 13 '23 10:09 dunglas

PR is open #891

maxhelias avatar Apr 06 '24 03:04 maxhelias