MAIF / izanami

Izanami is a centralized versatile feature flag solution, well suited for micro service architectures.
https://maif.github.io/izanami/
Apache License 2.0
189 stars 43 forks source link

Add more information for healthcheck #662

Closed yacine-1 closed 4 months ago

yacine-1 commented 2 years ago

It took me a long time to detect that the database connection was broken while frontend was working fine and the argocd deployment was healthy.

As mentioned in #153, I need a health endpoint to check if the backend and the database connection are ok (and optionally the version tag) without authentication.

When connected, api/_health endpoint returns "{}" but this information is not enough.

The documentation is not clear about this...

sipr-invivo commented 4 months ago

Hello there,

Do you know whether this is fixed with the v2 rework?

Thanks! 🙏

ptitFicus commented 4 months ago

Hi @sipr-invivo, it's not yet, however I will take care of it next week !

sipr-invivo commented 4 months ago

@ptitFicus Awesome, glad to hear that, thanks!

ptitFicus commented 4 months ago

Hi,

I just released 2.4.2 that provides database health status information in health endpoint.

I didn't update swagger yet (I forgot :s), however the idea is that the "database" field from response payload is true while database is reachable, and false otherwise. Morever endpoint will return 500 if database is not healthy.

Let me know if you need anything else !

Best regards